Package org.apache.jackrabbit.rmi.client
Class ClientProperty
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientItem
-
- org.apache.jackrabbit.rmi.client.ClientProperty
-
@Deprecated public class ClientProperty extends ClientItem implements Property
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemotePropertyinterface. This class makes a remote property locally available using the JCRPropertyinterface.- See Also:
Property,RemoteProperty
-
-
Field Summary
-
Fields inherited from interface javax.jcr.Property
JCR_ACTIVITY, JCR_AUTOCREATED, JCR_BASE_VERSION, JCR_CHILD_VERSION_HISTORY, JCR_CONFIGURATION, JCR_CONTENT, JCR_COPIED_FROM, JCR_CREATED, JCR_CREATED_BY, JCR_CURRENT_LIFECYCLE_STATE, JCR_DATA, JCR_DEFAULT_PRIMARY_TYPE, JCR_DEFAULT_VALUES, JCR_DESCRIPTION, JCR_ENCODING, JCR_FROZEN_MIXIN_TYPES, JCR_FROZEN_PRIMARY_TYPE, JCR_FROZEN_UUID, JCR_HAS_ORDERABLE_CHILD_NODES, JCR_HOST, JCR_ID, JCR_IS_ABSTRACT, JCR_IS_CHECKED_OUT, JCR_IS_MIXIN, JCR_LANGUAGE, JCR_LAST_MODIFIED, JCR_LAST_MODIFIED_BY, JCR_LIFECYCLE_POLICY, JCR_LOCK_IS_DEEP, JCR_LOCK_OWNER, JCR_MANDATORY, JCR_MERGE_FAILED, JCR_MIMETYPE, JCR_MIXIN_TYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODE_TYPE_NAME, JCR_ON_PARENT_VERSION, JCR_PATH, JCR_PORT, JCR_PREDECESSORS, JCR_PRIMARY_ITEM_NAME, JCR_PRIMARY_TYPE, JCR_PROTECTED, JCR_PROTOCOL, JCR_REPOSITORY, JCR_REQUIRED_PRIMARY_TYPES, JCR_REQUIRED_TYPE, JCR_ROOT, JCR_SAME_NAME_SIBLINGS, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_TITLE, JCR_UUID, JCR_VALUE_CONSTRAINTS, JCR_VERSION_HISTORY, JCR_VERSIONABLE_UUID, JCR_WORKSPACE
-
-
Constructor Summary
Constructors Constructor Description ClientProperty(Session session, RemoteProperty remote, LocalAdapterFactory factory)Deprecated.Creates a local adapter for the given remote property.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(ItemVisitor visitor)Deprecated.Calls theItemVisitor.visit(Propertymethod of the given visitor.BinarygetBinary()Deprecated.Returns the binary value of this property.booleangetBoolean()Deprecated.Returns the boolean value of this property.CalendargetDate()Deprecated.Returns the date value of this property.BigDecimalgetDecimal()Deprecated.Returns the decimal value of this property.PropertyDefinitiongetDefinition()Deprecated.doublegetDouble()Deprecated.Returns the double value of this property.longgetLength()Deprecated.long[]getLengths()Deprecated.longgetLong()Deprecated.Returns the long value of this property.NodegetNode()Deprecated.Returns the reference value of this property.PropertygetProperty()Deprecated.InputStreamgetStream()Deprecated.Returns the binary value of this property.StringgetString()Deprecated.Returns the string value of this property.intgetType()Deprecated.ValuegetValue()Deprecated.Value[]getValues()Deprecated.booleanisMultiple()Deprecated.voidsetValue(boolean value)Deprecated.Sets the boolean value of this property.voidsetValue(double value)Deprecated.Sets the double value of this property.voidsetValue(long value)Deprecated.Sets the long value of this property.voidsetValue(InputStream value)Deprecated.Sets the binary value of this property.voidsetValue(String value)Deprecated.Sets the string value of this property.voidsetValue(String[] strings)Deprecated.voidsetValue(BigDecimal value)Deprecated.Sets the decimal value of this property.voidsetValue(Calendar value)Deprecated.Sets the date value of this property.voidsetValue(Binary value)Deprecated.Sets the binary value of this property.voidsetValue(Node value)Deprecated.Sets the reference value of this property.voidsetValue(Value value)Deprecated.voidsetValue(Value[] values)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientItem
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.Item
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
-
-
-
-
Constructor Detail
-
ClientProperty
public ClientProperty(Session session, RemoteProperty remote, LocalAdapterFactory factory)
Deprecated.Creates a local adapter for the given remote property.- Parameters:
session- current sessionremote- remote propertyfactory- local adapter factory
-
-
Method Detail
-
accept
public void accept(ItemVisitor visitor) throws RepositoryException
Deprecated.Calls theItemVisitor.visit(Propertymethod of the given visitor. Does not contact the remote property, but the visitor may invoke other methods that do contact the remote property. Accepts the visitor to visit this item.NodeandPropertysubclasses should override this method to call the appropriateItemVisitormethods, as the default implementation does nothing.- Specified by:
acceptin interfaceItem- Overrides:
acceptin classClientItem- Throws:
RepositoryException
-
getBoolean
public boolean getBoolean() throws RepositoryExceptionDeprecated.Returns the boolean value of this property. Implemented as getValue().getBoolean().- Specified by:
getBooleanin interfaceProperty- Throws:
RepositoryException
-
getDate
public Calendar getDate() throws RepositoryException
Deprecated.Returns the date value of this property. Implemented as getValue().getDate().- Specified by:
getDatein interfaceProperty- Throws:
RepositoryException
-
getDouble
public double getDouble() throws RepositoryExceptionDeprecated.Returns the double value of this property. Implemented as getValue().getDouble().- Specified by:
getDoublein interfaceProperty- Throws:
RepositoryException
-
getLong
public long getLong() throws RepositoryExceptionDeprecated.Returns the long value of this property. Implemented as getValue().getLong().- Specified by:
getLongin interfaceProperty- Throws:
RepositoryException
-
getBinary
public Binary getBinary() throws RepositoryException
Deprecated.Returns the binary value of this property. Implemented as getValue().getBinary().- Specified by:
getBinaryin interfaceProperty- Throws:
RepositoryException
-
getDecimal
public BigDecimal getDecimal() throws RepositoryException
Deprecated.Returns the decimal value of this property. Implemented as getValue().getDecimal().- Specified by:
getDecimalin interfaceProperty- Throws:
RepositoryException
-
getStream
public InputStream getStream() throws RepositoryException
Deprecated.Returns the binary value of this property. Implemented as getValue().getStream().- Specified by:
getStreamin interfaceProperty- Throws:
RepositoryException
-
getString
public String getString() throws RepositoryException
Deprecated.Returns the string value of this property. Implemented as getValue().getString().- Specified by:
getStringin interfaceProperty- Throws:
RepositoryException
-
getValue
public Value getValue() throws RepositoryException
Deprecated.- Specified by:
getValuein interfaceProperty- Throws:
RepositoryException
-
getValues
public Value[] getValues() throws RepositoryException
Deprecated.- Specified by:
getValuesin interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(boolean value) throws RepositoryExceptionDeprecated.Sets the boolean value of this property. Implemented as setValue(new BooleanValue(value)).- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(Calendar value) throws RepositoryException
Deprecated.Sets the date value of this property. Implemented as setValue(new DateValue(value)).- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(double value) throws RepositoryExceptionDeprecated.Sets the double value of this property. Implemented as setValue(new DoubleValue(value)).- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(InputStream value) throws RepositoryException
Deprecated.Sets the binary value of this property. Implemented as setValue(new BinaryValue(value)).- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(long value) throws RepositoryExceptionDeprecated.Sets the long value of this property. Implemented as setValue(new LongValue(value)).- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(Binary value) throws RepositoryException
Deprecated.Sets the binary value of this property.- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(BigDecimal value) throws RepositoryException
Deprecated.Sets the decimal value of this property.- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(Node value) throws RepositoryException
Deprecated.Sets the reference value of this property. Implemented as setValue(new ReferenceValue(value)).- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(String value) throws RepositoryException
Deprecated.Sets the string value of this property. Implemented as setValue(new StringValue(value)).- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(String[] strings) throws RepositoryException
Deprecated.- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(Value value) throws RepositoryException
Deprecated.- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
setValue
public void setValue(Value[] values) throws RepositoryException
Deprecated.- Specified by:
setValuein interfaceProperty- Throws:
RepositoryException
-
getNode
public Node getNode() throws RepositoryException
Deprecated.Returns the reference value of this property. Implemented by converting the reference value to an UUID string and using the current session to look up the referenced node.- Specified by:
getNodein interfaceProperty- Throws:
RepositoryException
-
getProperty
public Property getProperty() throws RepositoryException
Deprecated.- Specified by:
getPropertyin interfaceProperty- Throws:
RepositoryException
-
getLength
public long getLength() throws RepositoryExceptionDeprecated.- Specified by:
getLengthin interfaceProperty- Throws:
RepositoryException
-
getLengths
public long[] getLengths() throws RepositoryExceptionDeprecated.- Specified by:
getLengthsin interfaceProperty- Throws:
RepositoryException
-
getDefinition
public PropertyDefinition getDefinition() throws RepositoryException
Deprecated.- Specified by:
getDefinitionin interfaceProperty- Throws:
RepositoryException
-
getType
public int getType() throws RepositoryExceptionDeprecated.- Specified by:
getTypein interfaceProperty- Throws:
RepositoryException
-
isMultiple
public boolean isMultiple() throws RepositoryExceptionDeprecated.- Specified by:
isMultiplein interfaceProperty- Throws:
RepositoryException
-
-