|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.versioning.VersionedACSObject
com.arsdigita.cms.ContentItem
com.arsdigita.cms.Asset
Assets are extra content associated with a content item. An image, for instance, may be an asset of a news article.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
DESCRIPTION
|
static String |
MIME_TYPE
|
static String |
NAME
|
static String |
versionId
|
Fields inherited from class com.arsdigita.cms.ContentItem |
ANCESTORS, AUDITING, CHILDREN, CONTENT_SECTION, CONTENT_TYPE, DRAFT, DRAFT_VERSION, LANGUAGE, LIVE, PARENT, PENDING, VERSION, VERSIONS |
Fields inherited from class com.arsdigita.versioning.VersionedACSObject |
IS_DELETED, MASTER |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE |
Constructor Summary | |
|
Asset()
|
|
Asset(com.arsdigita.persistence.DataObject obj)
|
|
Asset(com.arsdigita.persistence.OID oid)
Constructor. |
protected |
Asset(String type)
|
Method Summary | |
String |
getBaseDataObjectType()
|
String |
getDescription()
|
com.arsdigita.mimetypes.MimeType |
getMimeType()
|
void |
setDescription(String value)
A description of what this asset represents. |
void |
setMimeType(com.arsdigita.mimetypes.MimeType value)
|
abstract void |
writeToFile(File file)
Write the content of this asset to a file. |
Methods inherited from class com.arsdigita.versioning.VersionedACSObject |
applyTag, applyUniqueTag, autoPropagateMaster, getMaster, getRolledBackTo, getTransactions, getTransactions, isMaster, isRolledBack, isSubtype, permanentlyDelete, propagateMaster, recordAttributeChange, rollBackTo, rollBackTo, rollForward, save, setMaster, trackChanges |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID |
Methods inherited from class com.arsdigita.domain.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, clear, delete, disconnect, equals, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
public static final String NAME
public static final String DESCRIPTION
public static final String MIME_TYPE
Constructor Detail |
public Asset()
public Asset(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
DataObject
is retrieved
from the persistent storage mechanism with an OID
specified by oid.
oid
- The OID
for the retrieved
DataObject
.public Asset(com.arsdigita.persistence.DataObject obj)
protected Asset(String type)
Method Detail |
public String getBaseDataObjectType()
getBaseDataObjectType
in class ContentItem
public String getDescription()
public void setDescription(String value)
value
- The description to storepublic com.arsdigita.mimetypes.MimeType getMimeType()
public void setMimeType(com.arsdigita.mimetypes.MimeType value)
public abstract void writeToFile(File file) throws IOException
file
- The file on the server to write to.
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |