com.arsdigita.cms
Class ContentTypeLifecycleDefinition

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.cms.ContentTypeLifecycleDefinition

public class ContentTypeLifecycleDefinition
extends com.arsdigita.domain.DomainObject

This class associates content sections and content types with particular publication lifecycles.

Version:
$Revision: #8 $ $Date: 2004/04/07 $
Author:
Jack Chung (flattop@arsdigita.com), Michael Pih (pihman@arsdigita.com)

Field Summary
static String BASE_DATA_OBJECT_TYPE
           
protected static String CONTENT_TYPE_ID
           
protected static String LIFECYCLE_DEFINITION_ID
           
protected static String SECTION_ID
           
static String versionId
           
 
Constructor Summary
protected ContentTypeLifecycleDefinition()
           
protected ContentTypeLifecycleDefinition(com.arsdigita.persistence.DataObject obj)
           
protected ContentTypeLifecycleDefinition(com.arsdigita.persistence.OID oid)
           
 
Method Summary
protected  BigDecimal getContentSectionID()
           
protected  BigDecimal getContentTypeID()
           
static LifecycleDefinition getLifecycleDefinition(ContentSection section, ContentType type)
          Get the default associated lifecycle definition for a content type in a particular content section
protected  BigDecimal getLifecycleDefinitionID()
           
static boolean removeLifecycleDefinition(ContentSection section, ContentType type)
          Remove the default lifecycle definition association for a content type in a particular content section.
protected  void setContentSection(ContentSection section)
           
protected  void setContentType(ContentType type)
           
protected  void setLifecycleDefinition(LifecycleDefinition definition)
           
static boolean updateLifecycleDefinition(ContentSection section, ContentType type, LifecycleDefinition lifecycle)
          Associated a default lifecycle definition for a content type in a particular content section.
 
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

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

LIFECYCLE_DEFINITION_ID

protected static final String LIFECYCLE_DEFINITION_ID
See Also:
Constant Field Values
Constructor Detail

ContentTypeLifecycleDefinition

protected ContentTypeLifecycleDefinition()

ContentTypeLifecycleDefinition

protected ContentTypeLifecycleDefinition(com.arsdigita.persistence.OID oid)
                                  throws com.arsdigita.domain.DataObjectNotFoundException

ContentTypeLifecycleDefinition

protected ContentTypeLifecycleDefinition(com.arsdigita.persistence.DataObject obj)
Method Detail

getContentSectionID

protected BigDecimal getContentSectionID()

setContentSection

protected void setContentSection(ContentSection section)

getContentTypeID

protected BigDecimal getContentTypeID()

setContentType

protected void setContentType(ContentType type)

getLifecycleDefinitionID

protected BigDecimal getLifecycleDefinitionID()

setLifecycleDefinition

protected void setLifecycleDefinition(LifecycleDefinition definition)

getLifecycleDefinition

public static LifecycleDefinition getLifecycleDefinition(ContentSection section,
                                                         ContentType type)
Get the default associated lifecycle definition for a content type in a particular content section


updateLifecycleDefinition

public static boolean updateLifecycleDefinition(ContentSection section,
                                                ContentType type,
                                                LifecycleDefinition lifecycle)
Associated a default lifecycle definition for a content type in a particular content section. If this association already exists, the previous association will be updated.

Returns:
true is association is added, false if updated

removeLifecycleDefinition

public static boolean removeLifecycleDefinition(ContentSection section,
                                                ContentType type)
Remove the default lifecycle definition association for a content type in a particular content section.

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