|
|||||||||||
| 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.Resource
An instance of a ResourceType.
| Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
versionId
|
| Constructor Summary | |
Resource()
|
|
Resource(com.arsdigita.persistence.DataObject obj)
|
|
Resource(com.arsdigita.persistence.OID oid)
|
|
Resource(String type)
|
|
| Method Summary | |
protected static Resource |
create(ResourceType type,
String className)
Creates a new resource object. |
ResourceMapping |
createInstance(BigDecimal sectionId,
String url)
Creates a new resource object. |
ResourceMapping |
createInstance(ContentSection section,
String url)
Creates a new resource object. |
static Resource |
findResource(ContentSection section,
String url)
|
String |
getClassName()
|
BigDecimal |
getID()
|
ResourceType |
getType()
|
void |
setClassName(String s)
|
void |
setType(ResourceType t)
|
| 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 Resource()
public Resource(String type)
public Resource(com.arsdigita.persistence.OID oid)
throws com.arsdigita.domain.DataObjectNotFoundException
public Resource(com.arsdigita.persistence.DataObject obj)
| Method Detail |
public BigDecimal getID()
public String getClassName()
public void setClassName(String s)
public ResourceType getType()
public void setType(ResourceType t)
protected static Resource create(ResourceType type,
String className)
type - The resource type objectclassName - The Java class that implements this resource
public ResourceMapping createInstance(ContentSection section,
String url)
section - The content sectionurl - The URL (relative to the content section) identifying
the resource
public ResourceMapping createInstance(BigDecimal sectionId,
String url)
sectionId - The content section IDurl - The URL (relative to the content section) identifying
the resource
public static Resource findResource(ContentSection section,
String url)
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 | ||||||||||