com.adobe.repository.infomodel.bean
Class ResourceProperty

java.lang.Object
  extended by com.adobe.repository.infomodel.bean.ResourceProperty
All Implemented Interfaces:
java.io.Serializable

public class ResourceProperty
extends java.lang.Object
implements java.io.Serializable

A dynamic property.

The supported properties are:

NamespaceNameRead-onlyNullable
repositoryidYesN/A
repositorylidYesN/A
repositorynameYesN/A
repositoryheadYesN/A
repositorydescriptionNoYes
repositoryobject_typeYesN/A
repositorymajor_versionYesN/A
repositoryminor_versionYesN/A
repositoryowner_user_idYesN/A
repositoryobject_statusNoNo
repositorycustom_statusNoYes
repositorydeployment_statusNoNo
repositorycreated_byYesN/A
repositorye_tagYesN/A
repositorycreate_timeYesN/A
repositoryupdate_timeYesN/A
repositorycontent_uriNoYes
repositorycontent_lengthNoNo
repositorymime_typeNoYes
webdavcreationdateYesN/A
webdavdisplaynameYesN/A
webdavgetcontentlanguageYesN/A
webdavgetcontentlengthYesN/A
webdavgetcontenttypeYesN/A
webdavgetetagYesN/A
webdavgetlastmodifiedYesN/A

The properties defined in the WebDAV specification but not defined in the Repository's webdav namespace are

See Also:
Serialized Form

Field Summary
static int ATTRIBUTE_NAME
          Contains the attribute identifier value which represents the name.
static int ATTRIBUTE_NAMESPACE
          Contains the attribute identifier value which represents the namespace.
static int ATTRIBUTE_RESOURCE_ID
          Contains the attribute identifier value which represents the resource identifier.
static int ATTRIBUTE_VALUE
          Contains the attribute identifier value which represents the property value.
static int OBJECT_TYPE_RESOURCEPROPERTY
          Contains the object type value which represents ResourceProperty instances.
static java.lang.String RESERVED_NAMESPACE_REPOSITORY
          A namespace constant for ResourceProperties in the repository namespace.
static java.lang.String RESERVED_NAMESPACE_WEBDAV
          A namespace constant for ResourceProperties in the WebDAV namespace.
 
Constructor Summary
ResourceProperty()
          Default constructor.
 
Method Summary
 java.util.Date getCreateTime()
          Retrieves the time at which this resource property was first written to the Repository.
 java.lang.String getName()
          Retrieves this resource property's name.
 java.lang.String getNamespace()
          Retrieves this resource property's namespace.
 long getOid()
          Retrieves the numerical object identifier for this instance.
 Id getResourceId()
          Retrieves the resource identifier.
 java.util.Date getUpdateTime()
          Retrieves the time at which this resource property was last modified.
 java.lang.String getValue()
          Retrieves this resource property's value.
 boolean isProjected(int attribute)
          Determines whether the supplied attribute or composed object is projected.
 void setCreateTime(java.util.Date createTime)
          Sets the time at which this resource property was first written to the Repository.
 void setName(java.lang.String name)
          Sets this resource property's name.
 void setNamespace(java.lang.String namespace)
          Sets this resource property's namespace.
 void setOid(long oid)
          Sets this resource property's numerical object identifier.
 void setRepositoryLoadProfile(RepositoryLoadProfile loadProfile)
          Sets the Repository load profile for this resource property.
 void setResourceId(Id resourceId)
          Sets the resource property's Id.
 void setUpdateTime(java.util.Date updateTime)
          Sets the time at which this resource property was last modified.
 void setValue(java.lang.String value)
          Sets this resource property's value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESERVED_NAMESPACE_REPOSITORY

public static final java.lang.String RESERVED_NAMESPACE_REPOSITORY
A namespace constant for ResourceProperties in the repository namespace.

See Also:
Constant Field Values

RESERVED_NAMESPACE_WEBDAV

public static final java.lang.String RESERVED_NAMESPACE_WEBDAV
A namespace constant for ResourceProperties in the WebDAV namespace.

See Also:
Constant Field Values

OBJECT_TYPE_RESOURCEPROPERTY

public static final int OBJECT_TYPE_RESOURCEPROPERTY
Contains the object type value which represents ResourceProperty instances.

See Also:
Constant Field Values

ATTRIBUTE_RESOURCE_ID

public static final int ATTRIBUTE_RESOURCE_ID
Contains the attribute identifier value which represents the resource identifier.

See Also:
Constant Field Values

ATTRIBUTE_NAME

public static final int ATTRIBUTE_NAME
Contains the attribute identifier value which represents the name.

See Also:
Constant Field Values

ATTRIBUTE_NAMESPACE

public static final int ATTRIBUTE_NAMESPACE
Contains the attribute identifier value which represents the namespace.

See Also:
Constant Field Values

ATTRIBUTE_VALUE

public static final int ATTRIBUTE_VALUE
Contains the attribute identifier value which represents the property value.

See Also:
Constant Field Values
Constructor Detail

ResourceProperty

public ResourceProperty()
Default constructor.

Method Detail

setRepositoryLoadProfile

public void setRepositoryLoadProfile(RepositoryLoadProfile loadProfile)
Sets the Repository load profile for this resource property. The load profile which defines the object types and attributes to be returned from (projected in) a Repository query. For more information, see RepositoryLoadProfile.

Parameters:
loadProfile - The Repository load profile for this resource property.

isProjected

public boolean isProjected(int attribute)
Determines whether the supplied attribute or composed object is projected.

Parameters:
attribute - Any one of the LOAD_* constants.
Returns:
true if the supplied attribute or composed object is projected, false otherwise.

getOid

public long getOid()
Retrieves the numerical object identifier for this instance.

Returns:
The numerical object identifier for this instance.

setOid

public void setOid(long oid)
Sets this resource property's numerical object identifier. Do not use this method: the specified value will be ignored by the server.

Parameters:
oid - A positive integer representing this resource property's numerical object identifier.

getResourceId

public Id getResourceId()
Retrieves the resource identifier.

Returns:
The resource identifier.

setResourceId

public void setResourceId(Id resourceId)
Sets the resource property's Id.

Parameters:
resourceId - The resource property's Id.

getName

public java.lang.String getName()
Retrieves this resource property's name.

Returns:
A non-null String containing this resource property's name.

setName

public void setName(java.lang.String name)
Sets this resource property's name.

Parameters:
name - A non-null String representing this resource property's name. It must be unique within its namespace.

getNamespace

public java.lang.String getNamespace()
Retrieves this resource property's namespace.

Returns:
A non-null String containing this resource property's namespace.

setNamespace

public void setNamespace(java.lang.String namespace)
Sets this resource property's namespace.

Parameters:
namespace - A non-null String representing this resource property's namespace.

getValue

public java.lang.String getValue()
Retrieves this resource property's value.

Returns:
A non-null String containing this resource property's value.

setValue

public void setValue(java.lang.String value)
Sets this resource property's value.

Parameters:
value - A non-null string representing this resource property's value.

getUpdateTime

public java.util.Date getUpdateTime()
Retrieves the time at which this resource property was last modified.

Returns:
The time at which this resource property was last modified.

setUpdateTime

public void setUpdateTime(java.util.Date updateTime)
Sets the time at which this resource property was last modified.

Parameters:
updateTime - The time at which this resource property was last modified.

getCreateTime

public java.util.Date getCreateTime()
Retrieves the time at which this resource property was first written to the Repository.

Returns:
The time at which this resource property was first written to the Repository.

setCreateTime

public void setCreateTime(java.util.Date createTime)
Sets the time at which this resource property was first written to the Repository.

Parameters:
createTime - The time at which this resource property was first written to the Repository.