org.opencrx.kernel.document1.cci
Class SegmentImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefObject_1
      extended by org.opencrx.kernel.document1.cci.SegmentImpl
All Implemented Interfaces:
Serializable, PersistenceCapable, RefBaseObject, RefFeatured, RefObject, Auditee, Importer, Indexed, SecureObject, XmlExporter, RefObject_1_0, ContextCapable, Segment, ViewCapable

public class SegmentImpl
extends RefObject_1
implements Segment

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
PersistenceCapable.ObjectIdFieldConsumer, PersistenceCapable.ObjectIdFieldManager, PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
SegmentImpl(Object_1_0 object, RefClass refClass)
           
 
Method Summary
protected  void addAudit(AuditEntry newValue)
           
protected  void addAudit(String id, AuditEntry newValue)
           
protected  void addContext(Context newValue)
           
protected  void addContext(String id, Context newValue)
           
 void addDocument(Document newValue)
           
 void addDocument(String id, Document newValue)
           
protected  void addExtent(ExtentCapable newValue)
           
protected  void addExtent(String identity, ExtentCapable newValue)
           
 void addFolder(DocumentFolder newValue)
           
 void addFolder(String id, DocumentFolder newValue)
           
protected  void addIndexEntry(IndexEntry newValue)
           
protected  void addIndexEntry(String id, IndexEntry newValue)
           
 void addOwningGroup(int index, PrincipalGroup newValue)
           
 ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams params)
           
 void addOwningGroup(PrincipalGroup newValue)
           
 ModifySecureObjectResult addOwningGroup(PrincipalGroup group, short mode)
           
protected  void addView(String namespace, View newValue)
           
protected  void addView(View newValue)
           
 ExportResult exportXml(String attributeFilter, String referenceFilter)
           
 ExportResult exportXml(XmlExportParams params)
           
 BasicObject getAccessGrantedByParent()
          Retrieves the value for the optional reference accessGrantedByParent.
 short getAccessLevelBrowse()
          Retrieves the value for the attribute accessLevelBrowse.
protected  short getAccessLevelBrowse(int index)
           
 short getAccessLevelDelete()
          Retrieves the value for the attribute accessLevelDelete.
protected  short getAccessLevelDelete(int index)
           
 short getAccessLevelUpdate()
          Retrieves the value for the attribute accessLevelUpdate.
protected  short getAccessLevelUpdate(int index)
           
 Collection getAudit()
          Retrieves a collection containing all the elements for the reference audit.
 List getAudit(AuditEntryFilter filter)
          Retrieves the value for the reference audit for the specified filter.
 List getAudit(AuditEntryQuery query)
          Retrieves the value for the reference audit for the specified query.
 AuditEntry getAudit(String id)
          Retrieves the value for the reference audit for the specified qualifier attribute value.
 Collection getContext()
          Retrieves the objects referenced by context.
 Context getContext(String id)
          Retrieves the value for the reference context for the specified qualifier attribute value.
 String getDescription()
           
 Collection getDocument()
          Retrieves a collection containing all the elements for the reference document.
 List getDocument(DocumentFilter filter)
          Retrieves the value for the reference document for the specified filter.
 List getDocument(DocumentQuery query)
          Retrieves the value for the reference document for the specified query.
 Document getDocument(String id)
          Retrieves the value for the reference document for the specified qualifier attribute value.
 Collection getExtent()
          Retrieves a collection containing all the elements for the reference extent.
 List getExtent(ExtentCapableFilter filter)
          Retrieves the value for the reference extent for the specified filter.
 List getExtent(ExtentCapableQuery query)
          Retrieves the value for the reference extent for the specified query.
 ExtentCapable getExtent(String identity)
          Retrieves the value for the reference extent for the specified qualifier attribute value.
 Collection getFolder()
          Retrieves a collection containing all the elements for the reference folder.
 List getFolder(DocumentFolderFilter filter)
          Retrieves the value for the reference folder for the specified filter.
 List getFolder(DocumentFolderQuery query)
          Retrieves the value for the reference folder for the specified query.
 DocumentFolder getFolder(String id)
          Retrieves the value for the reference folder for the specified qualifier attribute value.
 Collection getIndexEntry()
          Retrieves a collection containing all the elements for the reference indexEntry.
 List getIndexEntry(IndexEntryFilter filter)
          Retrieves the value for the reference indexEntry for the specified filter.
 List getIndexEntry(IndexEntryQuery query)
          Retrieves the value for the reference indexEntry for the specified query.
 IndexEntry getIndexEntry(String id)
          Retrieves the value for the reference indexEntry for the specified qualifier attribute value.
 List getOwner()
           
 String getOwner(int index)
           
 Collection getOwningGroup()
          Retrieves the objects referenced by owningGroup.
 PrincipalGroup getOwningGroup(int index)
          Retrieves the value for the reference owningGroup for the specified qualifier attribute value.
 User getOwningUser()
          Retrieves the value for the optional reference owningUser.
 Provider getProvider()
          Retrieves the value for the reference provider.
 Collection getView()
          Retrieves a collection containing all the elements for the reference view.
 View getView(String namespace)
          Retrieves the value for the reference view for the specified qualifier attribute value.
 List getView(ViewFilter filter)
          Retrieves the value for the reference view for the specified filter.
 List getView(ViewQuery query)
          Retrieves the value for the reference view for the specified query.
 ImportResult importItem(byte[] item, String itemMimeType, String itemName, short locale)
           
 ImportResult importItem(ImportParams params)
           
protected  void removeAccessGrantedByParent()
           
 ModifySecureObjectResult removeAllOwningGroup(RemoveAllOwningGroupParams params)
           
 ModifySecureObjectResult removeAllOwningGroup(short mode)
           
protected  void removeAudit(String id)
           
protected  void removeContext(String id)
           
 void removeDocument(String id)
           
protected  void removeExtent(String identity)
           
 void removeFolder(String id)
           
protected  void removeIndexEntry(String id)
           
 void removeOwningGroup(int index)
           
 ModifySecureObjectResult removeOwningGroup(ModifyOwningGroupParams params)
           
 ModifySecureObjectResult removeOwningGroup(PrincipalGroup group, short mode)
           
 void removeOwningUser()
          Removes the value for the optional reference owningUser.
protected  void removeView(String namespace)
           
protected  void setAccessGrantedByParent(BasicObject newValue)
           
 ModifySecureObjectResult setAccessLevel(SetAccessLevelParams params)
           
 ModifySecureObjectResult setAccessLevel(short accessLevelBrowse, short accessLevelDelete, short accessLevelUpdate, short mode)
           
protected  void setAccessLevelBrowse(int index, short newValue)
           
 void setAccessLevelBrowse(short newValue)
          Sets a new value for the attribute accessLevelBrowse.
protected  void setAccessLevelDelete(int index, short newValue)
           
 void setAccessLevelDelete(short newValue)
          Sets a new value for the attribute accessLevelDelete.
protected  void setAccessLevelUpdate(int index, short newValue)
           
 void setAccessLevelUpdate(short newValue)
          Sets a new value for the attribute accessLevelUpdate.
protected  void setAudit(AuditEntry[] newValue)
           
protected  void setAudit(List newValue)
           
protected  void setContext(Context[] newValue)
           
protected  void setContext(List newValue)
           
 void setDescription(String newValue)
          Sets a new value for the attribute description.
 void setDocument(Document[] newValue)
           
 void setDocument(List newValue)
           
protected  void setExtent(ExtentCapable[] newValue)
           
protected  void setExtent(List newValue)
           
 void setFolder(DocumentFolder[] newValue)
           
 void setFolder(List newValue)
           
protected  void setIndexEntry(IndexEntry[] newValue)
           
protected  void setIndexEntry(List newValue)
           
protected  void setOwner(List newValue)
           
protected  void setOwner(String[] newValue)
           
 void setOwningGroup(List newValue)
           
 void setOwningGroup(PrincipalGroup[] newValue)
           
 ModifySecureObjectResult setOwningUser(SetOwningUserParams params)
           
 ModifySecureObjectResult setOwningUser(short mode, User user)
           
 void setOwningUser(User newValue)
          Sets a new value for the reference owningUser.
protected  void setProvider(Provider newValue)
           
protected  void setView(List newValue)
           
protected  void setView(View[] newValue)
           
 Void updateIndex()
           
 Void updateIndex(Void params)
           
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefObject_1
equals, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, refAddEventListener, refAddToUnitOfWork, refAddValue, refAddValue, refAddValue, refClass, refContext, refDefaultFetchGroup, refDelegate, refDelete, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refImmediateComposite, refImmediatePackage, refInitialize, refInitialize, refInvokeOperation, refInvokeOperation, refIsDeleted, refIsDirty, refIsInstanceOf, refIsNew, refIsPersistent, refIsWriteProtected, refMetaObject, refMofId, refOutermostComposite, refOutermostPackage, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refRemoveValue, refRemoveValue, refSetValue, refSetValue, refSetValue, refSetValue, refVerifyConstraints, refWriteProtect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Constructor Detail

SegmentImpl

public SegmentImpl(Object_1_0 object,
                   RefClass refClass)
Method Detail

setAudit

protected void setAudit(List newValue)

setAudit

protected void setAudit(AuditEntry[] newValue)

getAudit

public AuditEntry getAudit(String id)
Description copied from interface: Auditee
Retrieves the value for the reference audit for the specified qualifier attribute value.

Specified by:
getAudit in interface Auditee
Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getAudit

public Collection getAudit()
Description copied from interface: Auditee
Retrieves a collection containing all the elements for the reference audit.

Specified by:
getAudit in interface Auditee
Returns:
A collection containing all the elements for this reference.

getAudit

public List getAudit(AuditEntryFilter filter)
Description copied from interface: Auditee
Retrieves the value for the reference audit for the specified filter.

Specified by:
getAudit in interface Auditee
Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.

getAudit

public List getAudit(AuditEntryQuery query)
Description copied from interface: Auditee
Retrieves the value for the reference audit for the specified query.

Specified by:
getAudit in interface Auditee
Returns:
The filtered collection of referenced objects.

addAudit

protected void addAudit(String id,
                        AuditEntry newValue)

addAudit

protected void addAudit(AuditEntry newValue)

removeAudit

protected void removeAudit(String id)

importItem

public ImportResult importItem(ImportParams params)
                        throws RefException
Specified by:
importItem in interface Importer
Throws:
RefException

importItem

public ImportResult importItem(byte[] item,
                               String itemMimeType,
                               String itemName,
                               short locale)
                        throws RefException
Specified by:
importItem in interface Importer
Throws:
RefException

setIndexEntry

protected void setIndexEntry(List newValue)

setIndexEntry

protected void setIndexEntry(IndexEntry[] newValue)

getIndexEntry

public IndexEntry getIndexEntry(String id)
Description copied from interface: Indexed
Retrieves the value for the reference indexEntry for the specified qualifier attribute value.

Specified by:
getIndexEntry in interface Indexed
Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getIndexEntry

public Collection getIndexEntry()
Description copied from interface: Indexed
Retrieves a collection containing all the elements for the reference indexEntry.

Specified by:
getIndexEntry in interface Indexed
Returns:
A collection containing all the elements for this reference.

getIndexEntry

public List getIndexEntry(IndexEntryFilter filter)
Description copied from interface: Indexed
Retrieves the value for the reference indexEntry for the specified filter.

Specified by:
getIndexEntry in interface Indexed
Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.

getIndexEntry

public List getIndexEntry(IndexEntryQuery query)
Description copied from interface: Indexed
Retrieves the value for the reference indexEntry for the specified query.

Specified by:
getIndexEntry in interface Indexed
Returns:
The filtered collection of referenced objects.

addIndexEntry

protected void addIndexEntry(String id,
                             IndexEntry newValue)

addIndexEntry

protected void addIndexEntry(IndexEntry newValue)

removeIndexEntry

protected void removeIndexEntry(String id)

updateIndex

public Void updateIndex(Void