com.arsdigita.cms
Class ContentTypeWorkflowTemplate
java.lang.Object
com.arsdigita.domain.DomainObject
com.arsdigita.cms.ContentTypeWorkflowTemplate
- public class ContentTypeWorkflowTemplate
- extends com.arsdigita.domain.DomainObject
This class models a three-way association that represents the
default workflow template
registered to a content type
within a content section
.
- Version:
- $Id: //cms/dev/src/com/arsdigita/cms/ContentTypeWorkflowTemplate.java#10 $
- Author:
- Michael Pih (pihman@arsdigita.com)
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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
BASE_DATA_OBJECT_TYPE
public static final String BASE_DATA_OBJECT_TYPE
- See Also:
- Constant Field Values
SECTION_ID
protected static final String SECTION_ID
- See Also:
- Constant Field Values
CONTENT_TYPE_ID
protected static final String CONTENT_TYPE_ID
- See Also:
- Constant Field Values
WF_TEMPLATE_ID
protected static final String WF_TEMPLATE_ID
- See Also:
- Constant Field Values
ContentTypeWorkflowTemplate
protected ContentTypeWorkflowTemplate()
ContentTypeWorkflowTemplate
protected ContentTypeWorkflowTemplate(com.arsdigita.persistence.OID oid)
throws com.arsdigita.domain.DataObjectNotFoundException
ContentTypeWorkflowTemplate
protected ContentTypeWorkflowTemplate(com.arsdigita.persistence.DataObject obj)
getContentSectionID
protected BigDecimal getContentSectionID()
getContentTypeID
protected BigDecimal getContentTypeID()
getWorkflowTemplateID
protected BigDecimal getWorkflowTemplateID()
setContentSection
protected void setContentSection(ContentSection section)
setContentType
protected void setContentType(ContentType type)
setWorkflowTemplate
protected void setWorkflowTemplate(com.arsdigita.workflow.simple.WorkflowTemplate template)
getWorkflowTemplate
public static com.arsdigita.workflow.simple.WorkflowTemplate getWorkflowTemplate(ContentSection section,
ContentType type)
- Get the default associated workflow template for a content type in a
particular content section.
- Parameters:
section
- The content sectiontype
- The content type
- Returns:
- The default workflow template, null if there is none.
updateWorkflowTemplate
public static boolean updateWorkflowTemplate(ContentSection section,
ContentType type,
com.arsdigita.workflow.simple.WorkflowTemplate template)
- Associate a default workflow template for a content type in a
particular content section. If this association already exists, the
previous association will be updated.
- Parameters:
section
- The content sectiontype
- The content typetemplate
- The workflow template
- Returns:
- true is association is added, false if updated
removeWorkflowTemplate
public static boolean removeWorkflowTemplate(ContentSection section,
ContentType type)
- Remove the default workflow template association for a content type in
a particular content section.
- Parameters:
section
- The content sectiontype
- The content type
- Returns:
- true if association is deleted, false otherwise
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC