|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.cms.dispatcher.ResourceType
A DomainObject that represents an type of resource.
Common resource types include XML resource and streaming data.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
versionId
|
Constructor Summary | |
ResourceType()
|
|
ResourceType(com.arsdigita.persistence.DataObject obj)
|
|
ResourceType(com.arsdigita.persistence.OID oid)
|
|
ResourceType(String type)
|
Method Summary | |
Resource |
createInstance(String className)
Creates a new resource object of this type. |
static ResourceType |
createResourceType(String id,
String baseClass,
String label)
Creates a new resourceType object. |
static ResourceType |
createResourceType(String id,
String baseClass,
String label,
String description)
Creates a new resourceType object. |
static ResourceType |
findResourceType(String id)
|
String |
getBaseClassName()
|
String |
getDescription()
|
String |
getID()
|
String |
getLabel()
|
void |
setBaseClassName(String s)
|
void |
setDescription(String s)
|
void |
setLabel(String s)
|
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getBaseDataObjectType, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, 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
Constructor Detail |
public ResourceType()
public ResourceType(String type)
public ResourceType(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
public ResourceType(com.arsdigita.persistence.DataObject obj)
Method Detail |
public String getID()
public String getLabel()
public String getDescription()
public String getBaseClassName()
public void setLabel(String s)
public void setDescription(String s)
public void setBaseClassName(String s)
public Resource createInstance(String className)
className
- The Java class that implements this resource
public static ResourceType createResourceType(String id, String baseClass, String label, String description)
id
- The type keybaseClass
- The Java class that implements this resource typelabel
- The pretty namedescription
- A description of the resource type
public static ResourceType createResourceType(String id, String baseClass, String label)
id
- The type keybaseClass
- The Java class that implements this resource typelabel
- The pretty name
public static ResourceType findResourceType(String id) throws com.arsdigita.domain.DataObjectNotFoundException
com.arsdigita.domain.DataObjectNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |