com.cassinidivision.oce.content
Class C_PageVersion

java.lang.Object
  extended bycom.webobjects.eocontrol.EOCustomObject
      extended bycom.webobjects.eocontrol.EOGenericRecord
          extended bycom.cassinidivision.oce.content.base._C_Content
              extended bycom.cassinidivision.oce.content.C_Content
                  extended bycom.cassinidivision.oce.content.base._C_ContentContainer
                      extended bycom.cassinidivision.oce.content.C_ContentContainer
                          extended bycom.cassinidivision.oce.content.base._C_PageVersion
                              extended bycom.cassinidivision.oce.content.C_PageVersion
All Implemented Interfaces:
_EOPrivateMemento, EODeferredFaulting, EOEnterpriseObject, EOFaulting, EOKeyValueCoding, EOKeyValueCoding._BestBindingCreation._ForwardingBindingCheck, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCodingAdditions, EORelationshipManipulation, EOValidation, NSKeyValueCoding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._ReflectionKeyBindingCreation.Callback, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable

public class C_PageVersion
extends com.cassinidivision.oce.content.base._C_PageVersion

A class representing a version of a content page.

Page versions are made up of a number of ordered page components, and may be associated with a given template name for rendering purposes.

The authorization date for a page version records the time when that version was last cleared for publishing. If there is no value set then the version cannot be published (and was not previously published).

The effective date for a page version records the earliest permissible time by which a version becomes active (may be published). The version will not be published prior to this date (even if it has been authorized).

The authorization date should not normally ever change once set. However, the effective date may be modified at will to grant or revoke publishing for the version in question.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.eocontrol.EOGenericRecord
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
 
Nested classes inherited from class com.webobjects.eocontrol.EOCustomObject
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCodingAdditions
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCoding
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding
 
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Nested classes inherited from class com.webobjects.eocontrol._EOPrivateMemento
_EOPrivateMemento.DefaultImplementation
 
Field Summary
 
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
C_PageVersion()
           
 
Method Summary
 NSArray acceptableClassesOfChildren()
          Reports which classes of children are acceptable within the receiver.
 void appendExportXMLForPropertiesToString(StringBuffer returnString)
          Calculates the export XML string for all properties (child tags and child text) owned by the receiver, and appends it to the given string.
 void awakeFromInsertion(EOEditingContext ec)
          All newly-created content in the OCE system is immediately instantiated with the following values.
 C_Content copyIntoEC(EOEditingContext ec)
          Extends the superclass copy functionality to include the deep copying of child content.
 StringBuffer exportXMLForAttributes()
          Called during XML export: builds a StringBuffer holding all the attribute name="value" pairs for the receiver's XML.
 boolean hasAuthorizationDate()
          Reports whether or not the receiver has a non-null authorization date.
 boolean isCurrentActiveVersion()
          Determine if this page version is the current authorized one for the page (the version that is cleared for publishing).
 C_PageVersion nextPageVersionInOrderedList()
          Locates the next page version following the receiver.
 NSArray orderedChildren()
          Sorts the children of the receiver by name.
 C_PageVersion previouslyAuthorizedVersion()
          Locate the first authorized page version ordered before the receiver.
 C_PageVersion previousPageVersionInOrderedChildren()
          Locates the page version previous to the receiver.
 C_PageVersion previousUnAuthorizedVersion()
          Locates the first non-authorized page version ordered before the receiver.
 boolean selfOrSomeDescendantPublished()
          Extends the super implementation to check if any children were published.
 String sortField()
          Provides a field which can be used to sort C_Content objects of any one type, by simply sorting on the given field alphabetically.
 void takeAttributesFromDictionary(NSDictionary pList)
          Sets up the receiver's instance variables from given values.
 NSArray versionsOnSameDay()
          Locates all other versions (for the same page) which are effective on the same day as the receiver.
 
Methods inherited from class com.cassinidivision.oce.content.base._C_PageVersion
authorizationDate, effectiveDate, setAuthorizationDate, setEffectiveDate
 
Methods inherited from class com.cassinidivision.oce.content.C_ContentContainer
childContentWithName, contentAtContentPath, createNewChildOfClassWithStem, deleteChild, duplicateChild, fixHyperlinkPathsForImportedChildren, forceDeleteAllChildren, forceDeleteChild, globalIDsForSelfAndAllChildren, globalIDsForSelfAndAllLoadedChildren, longDebuggingOutput, nameForNewChildWithStem, renameChildToName, selfAndAllChildren, selfAndAllLoadedChildren, startElementWithAttributes, willAcceptChild, willAcceptChildOfClass, willAcceptChildren
 
Methods inherited from class com.cassinidivision.oce.content.base._C_ContentContainer
addToChildren, children, removeFromChildren, setChildren
 
Methods inherited from class com.cassinidivision.oce.content.C_Content
addCAttributeWithValues, addCharacterData, allParents, appendExportXMLForAdditionalAttributesToString, appendExportXMLForAttributeNamedKeyPathToString, appendExportXMLForAttributeNamedValueToString, appendExportXMLForAttributesToString, appendExportXMLForAttributeToString, appendExportXMLForClosingTagToString, appendExportXMLForEmptyTagToString, appendExportXMLForObjectToString, appendExportXMLForOpeningTagToString, appendExportXMLForPropertyNamedKeyPathToString, appendExportXMLForPropertyNamedValueToString, appendExportXMLForPropertyToString, appendStringValueForPropertyToString, contentId, contentPath, contentWithContentIdInEditingContext, copyToNewParent, copyWithinEC, defaultXMLRepresentation, deleteSelf, endElement, forceDeleteSelf, moveToNewParent, renameSelf, setDataPropertyFromDictionary, setDatePropertyFromDictionary, setNumberPropertyFromDictionary, setStringPropertyFromDictionary, setStringPropertyNamedKeyPathFromDictionary, startCAttributeList
 
Methods inherited from class com.cassinidivision.oce.content.base._C_Content
addToXmlAttributes, className, creationDate, modificationDate, name, parent, removeFromXmlAttributes, setClassName, setCreationDate, setModificationDate, setName, setParent, setXmlAttributes, setXmlLabel, xmlAttributes, xmlLabel
 
Methods inherited from class com.webobjects.eocontrol.EOGenericRecord
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _otherStorageBinding, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation
 
Methods inherited from class com.webobjects.eocontrol.EOCustomObject
__classDescription, __clearPendingChanges, __editingContext, __globalID, __hasAuxillaryObservers, __hasPendingChanges, __hasPendingUpdate, __isInitialized, __isPendingDeletion, __isPendingInsertion, __isShared, __lastSnapshot, __originalSnapshot, __retainCount, __setAuxillaryObservers, __setEditingContext, __setGlobalID, __setInitialized, __setLastSnapshot, __setOriginalSnapshot, __setPendingDeletion, __setPendingInsertion, __setPendingUpdate, __setRetainCount, __setShared, _createKeyGetBindingForKey, _createKeySetBindingForKey, _createStoredKeyGetBindingForKey, _createStoredKeySetBindingForKey, _fieldKeyBinding, _forwardingBindingNeededForClass, _methodKeyGetBinding, _methodKeySetBinding, addObjectToBothSidesOfRelationshipWithKey, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, awakeFromClientUpdate, awakeFromFetch, canAccessFieldsDirectly, changesFromSnapshot, classDescriptionForDestinationKey, clearFault, clearProperties, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, toString, turnIntoFault, unableToSetNullForKey, updateFromSnapshot, userPresentableDescription, validateClientUpdate, validateForDelete, validateForInsert, validateForSave, validateForUpdate, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willRead, willReadRelationship
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

C_PageVersion

public C_PageVersion()
Method Detail

awakeFromInsertion

public void awakeFromInsertion(EOEditingContext ec)
Description copied from class: C_Content
All newly-created content in the OCE system is immediately instantiated with the following values.

Specified by:
awakeFromInsertion in interface EOEnterpriseObject
Overrides:
awakeFromInsertion in class C_ContentContainer

copyIntoEC

public C_Content copyIntoEC(EOEditingContext ec)
Description copied from class: C_ContentContainer
Extends the superclass copy functionality to include the deep copying of child content.

Overrides:
copyIntoEC in class C_ContentContainer
Parameters:
ec - editing context to copy into
Returns:
the new copy
See Also:
C_Content.copyIntoEC(com.webobjects.eocontrol.EOEditingContext)

acceptableClassesOfChildren

public NSArray acceptableClassesOfChildren()
Description copied from class: C_ContentContainer
Reports which classes of children are acceptable within the receiver.

The base implementation returns an empty array.

Overrides:
acceptableClassesOfChildren in class C_ContentContainer
Returns:
array of acceptable classes

isCurrentActiveVersion

public boolean isCurrentActiveVersion()
Determine if this page version is the current authorized one for the page (the version that is cleared for publishing).

Returns:
true if the receiver is the active version, false otherwise

hasAuthorizationDate

public boolean hasAuthorizationDate()
Reports whether or not the receiver has a non-null authorization date.

Returns:
true if the authorization date is set, false otherwise

previouslyAuthorizedVersion

public C_PageVersion previouslyAuthorizedVersion()
Locate the first authorized page version ordered before the receiver.

Returns:
a page version, or null if none was found

previousUnAuthorizedVersion

public C_PageVersion previousUnAuthorizedVersion()
Locates the first non-authorized page version ordered before the receiver.

Returns:
a page version, or null if none was found

previousPageVersionInOrderedChildren

public C_PageVersion previousPageVersionInOrderedChildren()
Locates the page version previous to the receiver.

Returns:
the previous page version, or null if none was found

nextPageVersionInOrderedList

public C_PageVersion nextPageVersionInOrderedList()
Locates the next page version following the receiver.

Returns:
the next page version, or null if none was found

versionsOnSameDay

public NSArray versionsOnSameDay()
Locates all other versions (for the same page) which are effective on the same day as the receiver.

Returns:
array of page versions

orderedChildren

public NSArray orderedChildren()
Description copied from class: C_ContentContainer
Sorts the children of the receiver by name.

Overrides:
orderedChildren in class C_ContentContainer
Returns:
sorted array of children

sortField

public String sortField()
Description copied from class: C_Content
Provides a field which can be used to sort C_Content objects of any one type, by simply sorting on the given field alphabetically.

The default implementation returns the name attribute; subclasses may override as necessary.

Overrides:
sortField in class C_Content
Returns:
String which can be used to sort content objects.

selfOrSomeDescendantPublished

public boolean selfOrSomeDescendantPublished()
Description copied from class: C_ContentContainer
Extends the super implementation to check if any children were published.

Overrides:
selfOrSomeDescendantPublished in class C_ContentContainer
Returns:
true if any descendents have been published, false otherwise.
See Also:
C_Content.selfOrSomeDescendantPublished()

appendExportXMLForPropertiesToString

public void appendExportXMLForPropertiesToString(StringBuffer returnString)
Description copied from class: C_ContentContainer
Calculates the export XML string for all properties (child tags and child text) owned by the receiver, and appends it to the given string.

Overrides:
appendExportXMLForPropertiesToString in class C_ContentContainer
Parameters:
returnString - StringBuffer to which the result will be appended
See Also:
C_Content.appendExportXMLForPropertiesToString(java.lang.StringBuffer)

exportXMLForAttributes

public StringBuffer exportXMLForAttributes()
Description copied from class: C_Content
Called during XML export: builds a StringBuffer holding all the attribute name="value" pairs for the receiver's XML.

Overrides:
exportXMLForAttributes in class C_ContentContainer

takeAttributesFromDictionary

public void takeAttributesFromDictionary(NSDictionary pList)
Description copied from class: C_Content
Sets up the receiver's instance variables from given values.

The values will normally have come from the attributes of an XML start element tag.

Overrides:
takeAttributesFromDictionary in class C_Content
Parameters:
pList - The dictionary of values.