|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.cms.controllers.kernel.impl.simple.BaseController
org.infoglue.cms.controllers.kernel.impl.simple.ContentTypeDefinitionController
public class ContentTypeDefinitionController
| Field Summary | |
|---|---|
static java.lang.String |
ASSET_KEYS
|
static java.lang.String |
CATEGORY_KEYS
|
| Constructor Summary | |
|---|---|
ContentTypeDefinitionController()
|
|
| Method Summary | |
|---|---|
ContentTypeDefinitionVO |
create(ContentTypeDefinitionVO contentTypeDefinitionVO)
|
void |
delete(ContentTypeDefinitionVO contentTypeDefinitionVO)
|
java.util.List |
getAuthorizedContentTypeDefinitionVOList(InfoGluePrincipal infoGluePrincipal)
This method can be used by actions and use-case-controllers that only need to have simple access to the functionality. |
protected java.util.List |
getCategoryInfo(org.w3c.dom.NodeList nodes)
Returns a List of CategoryInfos for the category atributes of the NodeList |
java.util.List |
getContentTypeAttributes(java.lang.String schemaValue)
This method returns the attributes in the content type definition for generation. |
ContentTypeDefinition |
getContentTypeDefinitionWithId(java.lang.Integer contentTypeDefinitionId,
org.exolab.castor.jdo.Database db)
|
ContentTypeDefinition |
getContentTypeDefinitionWithName(java.lang.String name,
org.exolab.castor.jdo.Database db)
Returns the Content Type Definition with the given name fetched within a given transaction. |
java.util.List |
getContentTypeDefinitionVOList()
|
java.util.List |
getContentTypeDefinitionVOList(org.exolab.castor.jdo.Database db)
|
java.util.List |
getContentTypeDefinitionVOList(java.lang.Integer type)
|
java.util.List |
getContentTypeDefinitionVOList(java.lang.Integer type,
org.exolab.castor.jdo.Database db)
|
ContentTypeDefinitionVO |
getContentTypeDefinitionVOWithId(java.lang.Integer contentTypeDefinitionId)
|
ContentTypeDefinitionVO |
getContentTypeDefinitionVOWithName(java.lang.String name)
Returns the Content Type Definition with the given name. |
ContentTypeDefinitionVO |
getContentTypeDefinitionVOWithName(java.lang.String name,
org.exolab.castor.jdo.Database db)
Returns the Content Type Definition with the given name fetched within a given transaction. |
static ContentTypeDefinitionController |
getController()
Factory method |
AssetKeyDefinition |
getDefinedAssetKey(java.lang.String contentTypeDefinitionString,
java.lang.String assetKey)
This method fetches a predefined assetKeys from a xml-string representing a contentTypeDefinition. |
java.util.List |
getDefinedAssetKeys(java.lang.String contentTypeDefinitionString)
This method fetches any predefined assetKeys from a xml-string representing a contentTypeDefinition. |
java.util.List |
getDefinedCategoryKeys(java.lang.String contentTypeDefinitionString)
This method fetches any predefined categoryKeys from a xml-string representing a contentTypeDefinition. |
protected java.lang.String |
getElementValue(org.w3c.dom.Element root,
java.lang.String tagName)
Get the CDATA value from the provided elements child tag |
protected org.w3c.dom.NodeList |
getEnumerationNodeList(java.lang.String contentTypeDefinitionString,
java.lang.String keyType)
Returns a list of xs:enumeration nodes base on the provided key. |
protected java.util.List |
getEnumValues(org.w3c.dom.NodeList nodes)
Returns a List of values fro the "value" atribute of the provided NodeList |
boolean |
getIsAccessApproved(java.lang.Integer contentTypeDefinitionId,
InfoGluePrincipal infoGluePrincipal)
This method returns true if the user should have access to the contentTypeDefinition sent in. |
BaseEntityVO |
getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling. |
java.lang.String |
insertContentTypeAttribute(java.lang.String schemaValue,
java.lang.String inputTypeId,
java.util.List activatedName)
This method adds a new content type attribute to the contentTypeDefinition. |
ContentTypeDefinitionVO |
update(ContentTypeDefinitionVO contentTypeDefinitionVO)
|
ContentTypeDefinitionVO |
validateAndUpdateContentType(ContentTypeDefinitionVO contentTypeDefinitionVO)
This method validates the current content type and updates it to be valid in the future. |
| Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController |
|---|
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getLogger, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ASSET_KEYS
public static final java.lang.String CATEGORY_KEYS
| Constructor Detail |
|---|
public ContentTypeDefinitionController()
| Method Detail |
|---|
public static ContentTypeDefinitionController getController()
public ContentTypeDefinitionVO getContentTypeDefinitionVOWithId(java.lang.Integer contentTypeDefinitionId)
throws SystemException,
Bug
SystemException
Bug
public ContentTypeDefinition getContentTypeDefinitionWithId(java.lang.Integer contentTypeDefinitionId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentTypeDefinitionVOList()
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentTypeDefinitionVOList(org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getAuthorizedContentTypeDefinitionVOList(InfoGluePrincipal infoGluePrincipal)
throws ConstraintException,
SystemException,
Bug
ConstraintException
SystemException
Bug
public boolean getIsAccessApproved(java.lang.Integer contentTypeDefinitionId,
InfoGluePrincipal infoGluePrincipal)
throws SystemException
SystemException
public ContentTypeDefinitionVO getContentTypeDefinitionVOWithName(java.lang.String name)
throws SystemException,
Bug
name -
SystemException
Bug
public ContentTypeDefinition getContentTypeDefinitionWithName(java.lang.String name,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
name - db -
SystemException
Bug
public ContentTypeDefinitionVO getContentTypeDefinitionVOWithName(java.lang.String name,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
name - db -
SystemException
Bug
public java.util.List getContentTypeDefinitionVOList(java.lang.Integer type)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentTypeDefinitionVOList(java.lang.Integer type,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public ContentTypeDefinitionVO create(ContentTypeDefinitionVO contentTypeDefinitionVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public void delete(ContentTypeDefinitionVO contentTypeDefinitionVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentTypeDefinitionVO update(ContentTypeDefinitionVO contentTypeDefinitionVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public AssetKeyDefinition getDefinedAssetKey(java.lang.String contentTypeDefinitionString,
java.lang.String assetKey)
public java.util.List getDefinedAssetKeys(java.lang.String contentTypeDefinitionString)
public java.util.List getDefinedCategoryKeys(java.lang.String contentTypeDefinitionString)
protected java.util.List getEnumValues(org.w3c.dom.NodeList nodes)
protected java.util.List getCategoryInfo(org.w3c.dom.NodeList nodes)
protected org.w3c.dom.NodeList getEnumerationNodeList(java.lang.String contentTypeDefinitionString,
java.lang.String keyType)
keyType - The key to find enumerations for
protected java.lang.String getElementValue(org.w3c.dom.Element root,
java.lang.String tagName)
root - The root element to find the child tagtagName - The tag name of the child to get the CDATA value
public java.util.List getContentTypeAttributes(java.lang.String schemaValue)
public java.lang.String insertContentTypeAttribute(java.lang.String schemaValue,
java.lang.String inputTypeId,
java.util.List activatedName)
public ContentTypeDefinitionVO validateAndUpdateContentType(ContentTypeDefinitionVO contentTypeDefinitionVO)
public BaseEntityVO getNewVO()
getNewVO in class BaseController
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||