|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.kernel.ResourceType
XXX JAVADOC XXX
Resource
,
ResourceTypeCollection
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
protected static ResourceTypeConfig |
s_defaultConfig
|
static String |
versionId
|
Constructor Summary | |
protected |
ResourceType(DataObject dataObject)
|
protected |
ResourceType(String dataObjectType)
|
protected |
ResourceType(String dataObjectType,
String title,
String resourceObjectType)
|
Method Summary | |
void |
addRelevantPrivilege(PrivilegeDescriptor privilege)
Add an entry to the list of relevant privileges for this ResourceType. |
void |
addRelevantPrivilege(String privilegeName)
Add an entry to the list of relevant privileges for this ResourceType. |
static ResourceType |
createResourceType(String title,
String resourceObjectType)
|
protected String |
getBaseDataObjectType()
Returns the base data object type for this domain object class. |
ResourceTypeConfig |
getConfig()
|
static Iterator |
getConfigs()
|
ResourceConfigComponent |
getCreateComponent(RequestLocal parentResource)
|
ResourceConfigFormSection |
getCreateFormSection(RequestLocal parentResource)
|
String |
getDescription()
|
BigDecimal |
getID()
Gets the value of the ID property. |
ResourceConfigComponent |
getModifyComponent(RequestLocal resource)
|
ResourceConfigFormSection |
getModifyFormSection(RequestLocal resource)
|
Collection |
getRelevantPrivileges()
Get the list of relevant privileges for this ResourceType. |
String |
getResourceObjectType()
|
String |
getTitle()
|
boolean |
hasConfig()
|
static boolean |
isInstalled(String resourceObjectType)
|
static void |
registerResourceTypeConfig(String resourceObjectType,
ResourceTypeConfig config)
|
void |
removeRelevantPrivilege(PrivilegeDescriptor privilege)
Remove an entry from the list of relevant privileges for this ResourceType. |
void |
removeRelevantPrivilege(String privilegeName)
Remove an entry from the list of relevant privileges for this ResourceType. |
static ResourceTypeCollection |
retrieveAllResourceTypes()
|
static ResourceType |
retrieveResourceType(BigDecimal id)
|
static ResourceType |
retrieveResourceType(DataObject dataObject)
|
static ResourceType |
retrieveResourceType(OID oid)
|
static ResourceType |
retrieveResourceTypeForResource(String resourceObjectType)
|
void |
setDescription(String description)
|
protected void |
setResourceObjectType(String objectType)
|
void |
setTitle(String title)
|
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, 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
protected static ResourceTypeConfig s_defaultConfig
Constructor Detail |
protected ResourceType(DataObject dataObject)
protected ResourceType(String dataObjectType)
protected ResourceType(String dataObjectType, String title, String resourceObjectType)
Method Detail |
protected String getBaseDataObjectType()
DomainObject
getBaseDataObjectType
in class DomainObject
public static ResourceType createResourceType(String title, String resourceObjectType)
public static ResourceType retrieveResourceType(BigDecimal id)
public static ResourceType retrieveResourceType(OID oid)
public static ResourceType retrieveResourceType(DataObject dataObject)
public static ResourceType retrieveResourceTypeForResource(String resourceObjectType)
public static ResourceTypeCollection retrieveAllResourceTypes()
public String getTitle()
public void setTitle(String title)
public String getDescription()
public void setDescription(String description)
public Collection getRelevantPrivileges()
Get the list of relevant privileges for this ResourceType.
PrivilegeDescriptors
public void addRelevantPrivilege(PrivilegeDescriptor privilege)
Add an entry to the list of relevant privileges for this ResourceType.
public void addRelevantPrivilege(String privilegeName)
Add an entry to the list of relevant privileges for this ResourceType.
public void removeRelevantPrivilege(PrivilegeDescriptor privilege)
Remove an entry from the list of relevant privileges for this ResourceType.
public void removeRelevantPrivilege(String privilegeName)
Remove an entry from the list of relevant privileges for this ResourceType.
public String getResourceObjectType()
protected void setResourceObjectType(String objectType)
public BigDecimal getID()
public static boolean isInstalled(String resourceObjectType)
public static final void registerResourceTypeConfig(String resourceObjectType, ResourceTypeConfig config)
public static final Iterator getConfigs()
public final ResourceTypeConfig getConfig()
public final boolean hasConfig()
public final ResourceConfigFormSection getCreateFormSection(RequestLocal parentResource)
public final ResourceConfigFormSection getModifyFormSection(RequestLocal resource)
public final ResourceConfigComponent getCreateComponent(RequestLocal parentResource)
public ResourceConfigComponent getModifyComponent(RequestLocal resource)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |