|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.repository.infomodel.bean.ResourceContent
public class ResourceContent
The Repository's representation of file data. The data can be stored within the Repository or it can also be linked externally through a reference to a URI. External content is not managed by the Repository, and in such cases the size attribute will be set to zero.
Field Summary | |
---|---|
static int |
ATTRIBUTE_CONTENT_URI
Contains the attribute identifier value which represents the content URI. |
static int |
ATTRIBUTE_DATA
Contains the attribute identifier value which represents the content data. |
static int |
ATTRIBUTE_MIME_TYPE
Contains the attribute identifier value which represents the content MIME type. |
static int |
ATTRIBUTE_SIZE
Contains the attribute identifier value which represents the content size. |
static int |
OBJECT_TYPE_RESOURCE_CONTENT
Contains the object type value which represents ResourceContent instances. |
Constructor Summary | |
---|---|
ResourceContent()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
getContentUri()
Retrieves the URI that points to the location of the external content. |
java.util.Date |
getCreateTime()
Retrieves the time at which this resource content was first written to the Repository. |
Document |
getDataDocument()
Retrieves a Document representation of the bytes
stored in the data. |
java.lang.String |
getMimeType()
Retrieves the MIME type of the data. |
long |
getOid()
Retrieves this object's numerical identifier. |
int |
getSize()
Retrieves the byte count of the data. |
java.util.Date |
getUpdateTime()
Retrieves the time at which this resource content was last modified. |
boolean |
isProjected(int attribute)
Determines whether the supplied attribute or composed object is projected. |
void |
setContentUri(java.lang.String contentUri)
Sets the URI that points to the location of external content. |
void |
setCreateTime(java.util.Date createTime)
Sets the time at which this resource content was first written to the Repository. |
void |
setDataDocument(Document dataDocument)
Sets the byte source for this ResourceContent's data. |
void |
setMimeType(java.lang.String mimeType)
Sets the MIME type of the data. |
void |
setOid(long oid)
Sets this object's numerical identifier. |
void |
setRepositoryLoadProfile(RepositoryLoadProfile loadProfile)
Sets the Repository load profile for this resource content. |
void |
setSize(int size)
Sets the byte count of the data. |
void |
setUpdateTime(java.util.Date updateTime)
Sets the time at which this resource content was last modified. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OBJECT_TYPE_RESOURCE_CONTENT
public static final int ATTRIBUTE_DATA
public static final int ATTRIBUTE_MIME_TYPE
public static final int ATTRIBUTE_SIZE
public static final int ATTRIBUTE_CONTENT_URI
Constructor Detail |
---|
public ResourceContent()
Method Detail |
---|
public void setRepositoryLoadProfile(RepositoryLoadProfile loadProfile)
RepositoryLoadProfile
.
loadProfile
- The Repository load profile for this resource content.public boolean isProjected(int attribute)
attribute
- Any one of the LOAD_*
constants.
true
if the supplied attribute or composed object is
projected, false
otherwise.public long getOid()
public void setOid(long oid)
oid
- This object's numerical identifier.public Document getDataDocument()
Document
representation of the bytes
stored in the data.
Document
representation of the bytes stored
in the data.public void setDataDocument(Document dataDocument)
Resource
is written to the
Repository.
dataDocument
- public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType
- A String
indicating the MIME type of the data.public int getSize()
public void setSize(int size)
size
- A non-negative, integer value representing the byte count of
the data.public java.lang.String getContentUri()
public void setContentUri(java.lang.String contentUri)
contentUri
- the URI that points to the location of external content.public java.util.Date getUpdateTime()
public void setUpdateTime(java.util.Date updateTime)
updateTime
- The time at which this resource content was last
modified.public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
createTime
- The time at which this resource content was first written
to the Repository.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |