org.outerj.daisy.repository.commonimpl
Class DocumentVariantImpl.IntimateAccess

java.lang.Object
  extended byorg.outerj.daisy.repository.commonimpl.DocumentVariantImpl.IntimateAccess
Enclosing class:
DocumentVariantImpl

public class DocumentVariantImpl.IntimateAccess
extends java.lang.Object


Method Summary
 void addCollection(DocumentCollectionImpl collection)
          Adds the specified collection.
 void addField(FieldImpl field)
          Adds the given field.
 void addLink(LinkImpl link)
          Adds a link without marking the links as being modified.
 void addPart(PartImpl part)
           
 AuthenticatedUser getCurrentUser()
           
 DocumentImpl getDocument()
           
 DocumentCollectionImpl[] getDocumentCollectionImpls()
           
 DocumentStrategy getDocumentStrategy()
           
 long getLastVersionId()
           
 PartImpl[] getPartImpls()
           
 CommonRepositorySchema getRepositorySchema()
           
 long getStartBranchId()
           
 long getStartLanguageId()
           
 DocumentVariantImpl getVariant()
           
 boolean hasCollectionChanges()
           
 boolean hasCustomFieldChanges()
           
 boolean hasFieldChanges()
           
 boolean hasLinkChanges()
           
 boolean hasPartChanges()
           
 boolean isNameUpdated()
           
 void load(long documentTypeId, boolean retired, long lastVersionId, long liveVersionId, java.util.Date lastModified, long lastModifier, long createdFromBranchId, long createdFromLanguageId, long createdFromVersionId, long updateCount)
          Intialises required fields when loading an existing document variant.
 org.outerj.daisy.repository.Field[] orderFields(org.outerj.daisy.repository.Field[] fields)
           
 org.outerj.daisy.repository.Part[] orderParts(org.outerj.daisy.repository.Part[] parts)
           
 void saved(long lastVersionId, long liveVersionId, java.util.Date lastModified, java.lang.String summary, long updateCount)
          Updates the state of this Document object after saving it, also resets all 'dirty' flags.
 void setCreatedFrom(long branchId, long languageId, long versionId)
           
 void setCustomField(java.lang.String name, java.lang.String value)
          Sets a user field without marking the user fields as modified.
 void setIsNew(boolean isNew)
           
 void setLockInfo(LockInfoImpl lockInfo)
           
 void setName(java.lang.String name)
          Sets the name of the document without altering the "name dirty" flag.
 void setStartFrom(long branchId, long languageId)
           
 void setSummary(java.lang.String summary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setLockInfo

public void setLockInfo(LockInfoImpl lockInfo)

getLastVersionId

public long getLastVersionId()

hasCustomFieldChanges

public boolean hasCustomFieldChanges()

setIsNew

public void setIsNew(boolean isNew)

isNameUpdated

public boolean isNameUpdated()

hasFieldChanges

public boolean hasFieldChanges()

hasLinkChanges

public boolean hasLinkChanges()

hasPartChanges

public boolean hasPartChanges()

hasCollectionChanges

public boolean hasCollectionChanges()

load

public void load(long documentTypeId,
                 boolean retired,
                 long lastVersionId,
                 long liveVersionId,
                 java.util.Date lastModified,
                 long lastModifier,
                 long createdFromBranchId,
                 long createdFromLanguageId,
                 long createdFromVersionId,
                 long updateCount)
Intialises required fields when loading an existing document variant.


saved

public void saved(long lastVersionId,
                  long liveVersionId,
                  java.util.Date lastModified,
                  java.lang.String summary,
                  long updateCount)
Updates the state of this Document object after saving it, also resets all 'dirty' flags.


getDocumentStrategy

public DocumentStrategy getDocumentStrategy()

getCurrentUser

public AuthenticatedUser getCurrentUser()

setCustomField

public void setCustomField(java.lang.String name,
                           java.lang.String value)
Sets a user field without marking the user fields as modified.


getPartImpls

public PartImpl[] getPartImpls()

getDocumentCollectionImpls

public DocumentCollectionImpl[] getDocumentCollectionImpls()

addPart

public void addPart(PartImpl part)

addLink

public void addLink(LinkImpl link)
Adds a link without marking the links as being modified.


setName

public void setName(java.lang.String name)
Sets the name of the document without altering the "name dirty" flag.


addField

public void addField(FieldImpl field)
Adds the given field. This method will not change the flag indicating whether there were field changes.


getDocument

public DocumentImpl getDocument()

getRepositorySchema

public CommonRepositorySchema getRepositorySchema()

addCollection

public void addCollection(DocumentCollectionImpl collection)
Adds the specified collection. This method will not change the flag indicating whether there were collection changes.


orderParts

public org.outerj.daisy.repository.Part[] orderParts(org.outerj.daisy.repository.Part[] parts)

orderFields

public org.outerj.daisy.repository.Field[] orderFields(org.outerj.daisy.repository.Field[] fields)

setSummary

public void setSummary(java.lang.String summary)

getVariant

public DocumentVariantImpl getVariant()

setCreatedFrom

public void setCreatedFrom(long branchId,
                           long languageId,
                           long versionId)

setStartFrom

public void setStartFrom(long branchId,
                         long languageId)

getStartBranchId

public long getStartBranchId()

getStartLanguageId

public long getStartLanguageId()


Copyright © -2005 . All Rights Reserved.