org.opencrx.kernel.activity1.jdo2
Class Segment

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.openmdx.base.jdo2.Segment
              extended by org.opencrx.kernel.jdo2.Segment
                  extended by org.opencrx.kernel.activity1.jdo2.Segment
All Implemented Interfaces:
Serializable, javax.jdo.spi.Detachable, javax.jdo.spi.PersistenceCapable, Auditee, Exporter, Importer, Indexed, SecureObject, WorkflowTarget, ContextCapable, Segment, ViewCapable

public class Segment
extends Segment
implements Segment

Class Segment

See Also:
Serialized Form

Nested Class Summary
static class Segment.Slice
          Slice object hold the Segment's multivalued attributes
 
Nested classes/interfaces inherited from class org.openmdx.base.jdo2.Segment
Segment.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.openmdx.base.cci2.Segment
Segment.Identity
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer, javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager, javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::activity1::Segment
 
Fields inherited from class org.openmdx.base.jdo2.Segment
BASE_CLASS
 
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
Segment()
           
 
Method Summary
 ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams in)
           
 CheckPermissionsResult checkPermissions(CheckPermissionsParams in)
           
 ExecuteWorkflowResult executeWorkflow(ExecuteWorkflowParams in)
           
 ExportItemResult exportItem(ExportItemParams in)
           
 ExportItemResult exportItemAdvanced(ExportItemAdvancedParams in)
           
 ViewCapable getAccessGrantedByParent()
          Retrieves the value for the reference accessGrantedByParent.
 short getAccessLevelBrowse()
          Retrieves the value for the attribute accessLevelBrowse.
 short getAccessLevelDelete()
          Retrieves the value for the attribute accessLevelDelete.
 short getAccessLevelUpdate()
          Retrieves the value for the attribute accessLevelUpdate.
<T extends Activity>
SegmentContainsActivity.Activity<T>
getActivity()
          Retrieves a set containing all the elements for the reference activity.
<T extends ActivityCategory>
SegmentContainsActivityCategory.ActivityCategory<T>
getActivityCategory()
          Retrieves a set containing all the elements for the reference activityCategory.
<T extends ActivityCreator>
SegmentContainsActivityCreator.ActivityCreator<T>
getActivityCreator()
          Retrieves a set containing all the elements for the reference activityCreator.
<T extends ActivityFilterGlobal>
SegmentContainsActivityFilter.ActivityFilter<T>
getActivityFilter()
          Retrieves a set containing all the elements for the reference activityFilter.
<T extends ActivityMilestone>
SegmentContainsActivityMilestone.ActivityMilestone<T>
getActivityMilestone()
          Retrieves a set containing all the elements for the reference activityMilestone.
<T extends ActivityProcess>
SegmentContainsActivityProcess.ActivityProcess<T>
getActivityProcess()
          Retrieves a set containing all the elements for the reference activityProcess.
<T extends ActivityTracker>
SegmentContainsActivityTracker.ActivityTracker<T>
getActivityTracker()
          Retrieves a set containing all the elements for the reference activityTracker.
<T extends ActivityType>
SegmentContainsActivityType.ActivityType<T>
getActivityType()
          Retrieves a set containing all the elements for the reference activityType.
<T extends AddressGroup>
SegmentContainsAddressGroup.AddressGroup<T>
getAddressGroup()
          Retrieves a set containing all the elements for the reference addressGroup.
<T extends AuditEntry>
AuditeeHasAuditEntries.Audit<T>
getAudit()
          Retrieves a set containing all the elements for the reference audit.
<T extends Calendar>
SegmentContainsCalendar.Calendar<T>
getCalendar()
          Retrieves a set containing all the elements for the reference calendar.
<T extends IndexEntry>
IndexedHasIndexEntry.IndexEntry<T>
getIndexEntry()
          Retrieves a set containing all the elements for the reference indexEntry.
 List<String> getOwner()
          Retrieves a list containing all the elements for the attribute owner.
<T extends PrincipalGroup>
List<T>
getOwningGroup()
          Retrieves the Collection of objects referenced by owningGroup.
 User getOwningUser()
          Retrieves the value for the reference owningUser.
<T extends Resource>
SegmentContainsResource.Resource<T>
getResource()
          Retrieves a set containing all the elements for the reference resource.
<T extends WorkReportEntry>
SegmentContainsWorkReportEntry.WorkReportEntry<T>
getWorkReportEntry()
          Retrieves a set containing all the elements for the reference workReportEntry.
 ImportResult importItem(ImportParams in)
           
static Segment.Identity newIdentity(Provider.Identity provider, QualifierType qualifiedNameType, String qualifiedName)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static Segment.Identity openmdxjdoToIdentity(ObjectId objectId)
           
 ModifySecureObjectResult removeAllOwningGroup(RemoveAllOwningGroupParams in)
           
 ModifySecureObjectResult removeOwningGroup(ModifyOwningGroupParams in)
           
 ModifySecureObjectResult replaceOwningGroup(ModifyOwningGroupsParams in)
           
 ModifySecureObjectResult setAccessLevel(SetAccessLevelParams in)
           
 void setAccessLevelBrowse(short accessLevelBrowse)
          Sets a new value for the attribute accessLevelBrowse.
 void setAccessLevelDelete(short accessLevelDelete)
          Sets a new value for the attribute accessLevelDelete.
 void setAccessLevelUpdate(short accessLevelUpdate)
          Sets a new value for the attribute accessLevelUpdate.
 ModifySecureObjectResult setOwningUser(SetOwningUserParams in)
           
 void setOwningUser(User owningUser)
          Sets a new value for the reference owningUser.
 UpdateIndexResult updateIndex()
           
 
Methods inherited from class org.opencrx.kernel.jdo2.Segment
openmdxjdoGetSlices
 
Methods inherited from class org.openmdx.base.jdo2.Segment
addToProvider, addToProvider, getContext, getDescription, getExtent, getProvider, getView, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDetachedInternal, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoPreSerialize, jdoProvideField, jdoProvideFields, jdoReplaceDetachedState, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, openmdxjdoGetObjectId, setDescription
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewMap, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
jdoClass, modelClasses, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmdx.base.cci2.Segment
getDescription, getExtent, getProvider, setDescription
 
Methods inherited from interface org.openmdx.base.cci2.ContextCapable
getContext
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::activity1::Segment

Constructor Detail

Segment

public Segment()
Method Detail

getAccessLevelDelete

public short getAccessLevelDelete()
Retrieves the value for the attribute accessLevelDelete.

Specified by:
getAccessLevelDelete in interface SecureObject
Returns:
The non-null value for attribute accessLevelDelete.

setAccessLevelDelete

public void setAccessLevelDelete(short accessLevelDelete)
Sets a new value for the attribute accessLevelDelete.

Specified by:
setAccessLevelDelete in interface SecureObject
Parameters:
accessLevelDelete - The non-null new value for attribute accessLevelDelete.

getActivityTracker

public <T extends ActivityTracker> SegmentContainsActivityTracker.ActivityTracker<T> getActivityTracker()
Retrieves a set containing all the elements for the reference activityTracker.

Returns:
A set containing all the elements for this reference.

getWorkReportEntry

public <T extends WorkReportEntry> SegmentContainsWorkReportEntry.WorkReportEntry<T> getWorkReportEntry()
Retrieves a set containing all the elements for the reference workReportEntry.

Returns:
A set containing all the elements for this reference.

getActivityCreator

public <T extends ActivityCreator> SegmentContainsActivityCreator.ActivityCreator<T> getActivityCreator()
Retrieves a set containing all the elements for the reference activityCreator.

Returns:
A set containing all the elements for this reference.

getAccessLevelBrowse

public short getAccessLevelBrowse()
Retrieves the value for the attribute accessLevelBrowse.

Specified by:
getAccessLevelBrowse in interface SecureObject
Returns:
The non-null value for attribute accessLevelBrowse.

setAccessLevelBrowse

public void setAccessLevelBrowse(short accessLevelBrowse)
Sets a new value for the attribute accessLevelBrowse.

Specified by:
setAccessLevelBrowse in interface SecureObject
Parameters:
accessLevelBrowse - The non-null new value for attribute accessLevelBrowse.

getAddressGroup

public <T extends AddressGroup> SegmentContainsAddressGroup.AddressGroup<T> getAddressGroup()
Retrieves a set containing all the elements for the reference addressGroup.

Returns:
A set containing all the elements for this reference.

getActivityProcess

public <T extends ActivityProcess> SegmentContainsActivityProcess.ActivityProcess<T> getActivityProcess()
Retrieves a set containing all the elements for the reference activityProcess.

Returns:
A set containing all the elements for this reference.

removeAllOwningGroup

public ModifySecureObjectResult removeAllOwningGroup(RemoveAllOwningGroupParams in)
Specified by:
removeAllOwningGroup in interface SecureObject

getActivityFilter

public <T extends ActivityFilterGlobal> SegmentContainsActivityFilter.ActivityFilter<T> getActivityFilter()
Retrieves a set containing all the elements for the reference activityFilter.

Returns:
A set containing all the elements for this reference.

setOwningUser

public ModifySecureObjectResult setOwningUser(SetOwningUserParams in)
Specified by:
setOwningUser in interface SecureObject

getActivity

public <T extends Activity> SegmentContainsActivity.Activity<T> getActivity()
Retrieves a set containing all the elements for the reference activity.

Returns:
A set containing all the elements for this reference.

getOwningGroup

public <T extends PrincipalGroup> List<T> getOwningGroup()
Retrieves the Collection of objects referenced by owningGroup.

Specified by:
getOwningGroup in interface SecureObject
Returns:
The Collection of referenced objects.

getCalendar

public <T extends Calendar> SegmentContainsCalendar.Calendar<T> getCalendar()
Retrieves a set containing all the elements for the reference calendar.

Returns:
A set containing all the elements for this reference.

addOwningGroup

public ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams in)
Specified by:
addOwningGroup in interface SecureObject

exportItemAdvanced

public ExportItemResult exportItemAdvanced(ExportItemAdvancedParams in)
Specified by:
exportItemAdvanced in interface Exporter

getResource

public <T extends Resource> SegmentContainsResource.Resource<T> getResource()
Retrieves a set containing all the elements for the reference resource.

Returns:
A set containing all the elements for this reference.

getAudit

public <T extends AuditEntry> AuditeeHasAuditEntries.Audit<T> getAudit()
Retrieves a set containing all the elements for the reference audit.

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

checkPermissions

public CheckPermissionsResult checkPermissions(CheckPermissionsParams in)
Specified by:
checkPermissions in interface SecureObject

removeOwningGroup

public ModifySecureObjectResult removeOwningGroup(ModifyOwningGroupParams in)
Specified by:
removeOwningGroup in interface SecureObject

importItem

public ImportResult importItem(ImportParams in)
Specified by:
importItem in interface Importer

updateIndex

public UpdateIndexResult updateIndex()
Specified by:
updateIndex in interface Indexed

getAccessLevelUpdate

public short getAccessLevelUpdate()
Retrieves the value for the attribute accessLevelUpdate.

Specified by:
getAccessLevelUpdate in interface SecureObject
Returns:
The non-null value for attribute accessLevelUpdate.

setAccessLevelUpdate

public void setAccessLevelUpdate(short accessLevelUpdate)
Sets a new value for the attribute accessLevelUpdate.

Specified by:
setAccessLevelUpdate in interface SecureObject
Parameters:
accessLevelUpdate - The non-null new value for attribute accessLevelUpdate.

getActivityMilestone

public <T extends ActivityMilestone> SegmentContainsActivityMilestone.ActivityMilestone<T> getActivityMilestone()
Retrieves a set containing all the elements for the reference activityMilestone.

Returns:
A set containing all the elements for this reference.

getAccessGrantedByParent

public ViewCapable getAccessGrantedByParent()
Retrieves the value for the reference accessGrantedByParent.

Specified by:
getAccessGrantedByParent in interface SecureObject
Returns:
The – possibly null – value for this reference.

setAccessLevel

public ModifySecureObjectResult setAccessLevel(SetAccessLevelParams in)
Specified by:
setAccessLevel in interface SecureObject

getOwner

public final List<String> getOwner()
Retrieves a list containing all the elements for the attribute owner.

Specified by:
getOwner in interface SecureObject
Returns:
A list containing all elements for this attribute.

replaceOwningGroup

public ModifySecureObjectResult replaceOwningGroup(ModifyOwningGroupsParams in)
Specified by:
replaceOwningGroup in interface SecureObject

getIndexEntry

public <T extends IndexEntry> IndexedHasIndexEntry.IndexEntry<T> getIndexEntry()
Retrieves a set containing all the elements for the reference indexEntry.

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

getActivityCategory

public <T extends ActivityCategory> SegmentContainsActivityCategory.ActivityCategory<T> getActivityCategory()
Retrieves a set containing all the elements for the reference activityCategory.

Returns:
A set containing all the elements for this reference.

getActivityType

public <T extends ActivityType> SegmentContainsActivityType.ActivityType<T> getActivityType()
Retrieves a set containing all the elements for the reference activityType.

Returns:
A set containing all the elements for this reference.

getOwningUser

public User getOwningUser()
Retrieves the value for the reference owningUser.

Specified by:
getOwningUser in interface SecureObject
Returns:
The – possibly null – value for this reference.

setOwningUser

public void setOwningUser(User owningUser)
Sets a new value for the reference owningUser.

Specified by:
setOwningUser in interface SecureObject
Parameters:
owningUser - The non-null new value for this reference.

executeWorkflow

public ExecuteWorkflowResult executeWorkflow(ExecuteWorkflowParams in)
Specified by:
executeWorkflow in interface WorkflowTarget

exportItem

public ExportItemResult exportItem(ExportItemParams in)
Specified by:
exportItem in interface Exporter

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class Segment

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class Segment

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class Segment

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class Segment
Returns:
the model class
See Also:
Segment.CLASS

newIdentity

public static Segment.Identity newIdentity(Provider.Identity provider,
                                           QualifierType qualifiedNameType,
                                           String qualifiedName)

openmdxjdoToIdentity

public static Segment.Identity openmdxjdoToIdentity(ObjectId objectId)


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.