org.infoglue.cms.controllers.kernel.impl.simple
Class ContentTypeDefinitionController

java.lang.Object
  |
  +--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
        |
        +--org.infoglue.cms.controllers.kernel.impl.simple.ContentTypeDefinitionController

public class ContentTypeDefinitionController
extends BaseController

Author:
ss To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

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.
 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.
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.
 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)
          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
deleteEntity, deleteEntity, deleteEntity, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getVOWithId, getVOWithId, getVOWithId, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, validateEntity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASSET_KEYS

public static final java.lang.String ASSET_KEYS
See Also:
Constant Field Values

CATEGORY_KEYS

public static final java.lang.String CATEGORY_KEYS
See Also:
Constant Field Values
Constructor Detail

ContentTypeDefinitionController

public ContentTypeDefinitionController()
Method Detail

getController

public static ContentTypeDefinitionController getController()
Factory method


getContentTypeDefinitionVOWithId

public ContentTypeDefinitionVO getContentTypeDefinitionVOWithId(java.lang.Integer contentTypeDefinitionId)
                                                         throws SystemException,
                                                                Bug
SystemException
Bug

getContentTypeDefinitionWithId

public ContentTypeDefinition getContentTypeDefinitionWithId(java.lang.Integer contentTypeDefinitionId,
                                                            org.exolab.castor.jdo.Database db)
                                                     throws SystemException,
                                                            Bug
SystemException
Bug

getContentTypeDefinitionVOList

public java.util.List getContentTypeDefinitionVOList()
                                              throws SystemException,
                                                     Bug
SystemException
Bug

getContentTypeDefinitionVOList

public java.util.List getContentTypeDefinitionVOList(org.exolab.castor.jdo.Database db)
                                              throws SystemException,
                                                     Bug
SystemException
Bug

getAuthorizedContentTypeDefinitionVOList

public java.util.List getAuthorizedContentTypeDefinitionVOList(InfoGluePrincipal infoGluePrincipal)
                                                        throws ConstraintException,
                                                               SystemException,
                                                               Bug
This method can be used by actions and use-case-controllers that only need to have simple access to the functionality. They don't get the transaction-safety but probably just wants to show the info.

ConstraintException
SystemException
Bug

getIsAccessApproved

public boolean getIsAccessApproved(java.lang.Integer contentTypeDefinitionId,
                                   InfoGluePrincipal infoGluePrincipal)
                            throws SystemException
This method returns true if the user should have access to the contentTypeDefinition sent in.

SystemException

getContentTypeDefinitionVOWithName

public ContentTypeDefinitionVO getContentTypeDefinitionVOWithName(java.lang.String name)
                                                           throws SystemException,
                                                                  Bug
Returns the Content Type Definition with the given name.

Parameters:
name -
Returns:
Throws:
SystemException
Bug

getContentTypeDefinitionWithName

public ContentTypeDefinition getContentTypeDefinitionWithName(java.lang.String name,
                                                              org.exolab.castor.jdo.Database db)
                                                       throws SystemException,
                                                              Bug
Returns the Content Type Definition with the given name fetched within a given transaction.

Parameters:
name -
db -
Returns:
Throws:
SystemException
Bug

getContentTypeDefinitionVOList

public java.util.List getContentTypeDefinitionVOList(java.lang.Integer type)
                                              throws SystemException,
                                                     Bug
SystemException
Bug

getContentTypeDefinitionVOList

public java.util.List getContentTypeDefinitionVOList(java.lang.Integer type,
                                                     org.exolab.castor.jdo.Database db)
                                              throws SystemException,
                                                     Bug
SystemException
Bug

create

public ContentTypeDefinitionVO create(ContentTypeDefinitionVO contentTypeDefinitionVO)
                               throws ConstraintException,
                                      SystemException
ConstraintException
SystemException

delete

public void delete(ContentTypeDefinitionVO contentTypeDefinitionVO)
            throws ConstraintException,
                   SystemException
ConstraintException
SystemException

update

public ContentTypeDefinitionVO update(ContentTypeDefinitionVO contentTypeDefinitionVO)
                               throws ConstraintException,
                                      SystemException
ConstraintException
SystemException

getDefinedAssetKey

public AssetKeyDefinition getDefinedAssetKey(java.lang.String contentTypeDefinitionString,
                                             java.lang.String assetKey)
This method fetches a predefined assetKeys from a xml-string representing a contentTypeDefinition.


getDefinedAssetKeys

public java.util.List getDefinedAssetKeys(java.lang.String contentTypeDefinitionString)
This method fetches any predefined assetKeys from a xml-string representing a contentTypeDefinition.


getDefinedCategoryKeys

public java.util.List getDefinedCategoryKeys(java.lang.String contentTypeDefinitionString)
This method fetches any predefined categoryKeys from a xml-string representing a contentTypeDefinition.


getContentTypeAttributes

public java.util.List getContentTypeAttributes(java.lang.String schemaValue)
This method returns the attributes in the content type definition for generation.


insertContentTypeAttribute

public java.lang.String insertContentTypeAttribute(java.lang.String schemaValue,
                                                   java.lang.String inputTypeId)
This method adds a new content type attribute to the contentTypeDefinition. It sets some default values.


validateAndUpdateContentType

public ContentTypeDefinitionVO validateAndUpdateContentType(ContentTypeDefinitionVO contentTypeDefinitionVO)
This method validates the current content type and updates it to be valid in the future.


getNewVO

public BaseEntityVO getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.

Specified by:
getNewVO in class BaseController