org.opencrx.kernel.activity1.jdo2
Class WorkReportEntry

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.activity1.jdo2.WorkReportEntry
All Implemented Interfaces:
Serializable, WorkReportEntry, SecureObject, BasicObject, ContextCapable, ExtentCapable, ViewCapable

public class WorkReportEntry
extends org.w3c.jdo2.AbstractObject
implements WorkReportEntry

Class WorkReportEntry

See Also:
Serialized Form

Nested Class Summary
static class WorkReportEntry.Identity
          The object's application identity
static class WorkReportEntry.Slice
          Slice object hold the WorkReportEntry's multivalued attributes
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Field Summary
static List<String> BASE_CLASS
          Define this class as base class
static List<String> CLASS
          Define the model class org::opencrx::kernel::activity1::WorkReportEntry
 
Constructor Summary
WorkReportEntry()
           
 
Method Summary
 ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams in)
           
 void addToSegment(Segment segment)
          Sets a new value for the reference segment.
 void addToSegment(Segment segment, boolean idIsPersistent, String id)
          Set the object's composite association org:opencrx:kernel:activity1:SegmentContainsWorkReportEntry.
 CheckPermissionsResult checkPermissions(CheckPermissionsParams 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.
 Activity getActivity()
          Retrieves the value for the reference activity.
 String getActivityNumber()
          Retrieves the value for the attribute activityNumber.
 ResourceAssignment getAssignment()
          Retrieves the value for the reference assignment.
 BigDecimal getBillableAmount()
          Retrieves the possibly null value for the optional attribute billableAmount.
 short getBillingCurrency()
          Retrieves the value for the attribute billingCurrency.
<T extends Context>
Map<String,T>
getContext()
          Retrieves the Collection of objects referenced by context.
 Date getCreatedAt()
          Retrieves the value for the attribute createdAt.
 Set<String> getCreatedBy()
          Retrieves a set containing all the elements for the attribute createdBy.
 String getDescription()
          Retrieves the possibly null value for the optional attribute description.
 BigDecimal getDurationDecimal()
          Retrieves the possibly null value for the optional attribute durationDecimal.
 String getDurationHhMm()
          Retrieves the possibly null value for the optional attribute durationHhMm.
 short getDurationHours()
          Retrieves the value for the attribute durationHours.
 short getDurationMinutes()
          Retrieves the value for the attribute durationMinutes.
 Date getEndedAt()
          Retrieves the value for the attribute endedAt.
 String getIdentity()
          Retrieves the value for the attribute identity.
 Date getModifiedAt()
          Retrieves the value for the attribute modifiedAt.
 Set<String> getModifiedBy()
          Retrieves a set containing all the elements for the attribute modifiedBy.
 String getName()
          Retrieves the value for the attribute name.
 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.
 BigDecimal getPauseDurationDecimal()
          Retrieves the possibly null value for the optional attribute pauseDurationDecimal.
 String getPauseDurationHhMm()
          Retrieves the possibly null value for the optional attribute pauseDurationHhMm.
 Short getPauseDurationHours()
          Retrieves the possibly null value for the optional attribute pauseDurationHours.
 Short getPauseDurationMinutes()
          Retrieves the possibly null value for the optional attribute pauseDurationMinutes.
 Resource getResource()
          Retrieves the value for the reference resource.
 Date getStartedAt()
          Retrieves the value for the attribute startedAt.
<T extends View>
ObjectHasView.View<T>
getView()
          Retrieves a set containing all the elements for the reference view.
 ActivityWorkRecord getWorkRecord()
          Retrieves the value for the reference workRecord.
static WorkReportEntry.Identity newIdentity(Segment.Identity segment, QualifierType idType, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  String openmdxjdoGetObjectId()
          Retrieve the object's JDO identity key
protected  int openmdxjdoGetSize(int field)
           
protected
<E extends org.w3c.jdo2.AbstractObject.Slice>
SortedMap<Integer,E>
openmdxjdoGetSlices()
           
protected  void openmdxjdoSetSize(int field, int size)
           
static WorkReportEntry.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.
 void setResource(Resource resource)
          Sets a new value for the reference resource.
 
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
 

Field Detail

CLASS

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


BASE_CLASS

public static final List<String> BASE_CLASS
Define this class as base class

See Also:
WorkReportEntry.CLASS
Constructor Detail

WorkReportEntry

public WorkReportEntry()
Method Detail

openmdxjdoGetObjectId

protected String openmdxjdoGetObjectId()
Retrieve the object's JDO identity key

Specified by:
openmdxjdoGetObjectId in class org.oasisopen.jdo2.Identifiable
Returns:
the value of the object's JDO identity key

openmdxjdoGetSlices

protected final <E extends org.w3c.jdo2.AbstractObject.Slice> SortedMap<Integer,E> openmdxjdoGetSlices()
Overrides:
openmdxjdoGetSlices in class org.w3c.jdo2.AbstractObject

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.

getModifiedAt

public Date getModifiedAt()
Retrieves the value for the attribute modifiedAt.

Specified by:
getModifiedAt in interface BasicObject
Returns:
The non-null value for attribute modifiedAt.

getModifiedBy

public final Set<String> getModifiedBy()
Retrieves a set containing all the elements for the attribute modifiedBy.

Specified by:
getModifiedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

getPauseDurationMinutes

public final Short getPauseDurationMinutes()
Retrieves the possibly null value for the optional attribute pauseDurationMinutes.

Specified by:
getPauseDurationMinutes in interface WorkReportEntry
Returns:
The possibly null value for attribute pauseDurationMinutes.

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.

getDurationHhMm

public final String getDurationHhMm()
Retrieves the possibly null value for the optional attribute durationHhMm.

Specified by:
getDurationHhMm in interface WorkReportEntry
Returns:
The possibly null value for attribute durationHhMm.

getIdentity

public String getIdentity()
Retrieves the value for the attribute identity.

Specified by:
getIdentity in interface ExtentCapable
Returns:
The non-null value for attribute identity.

getCreatedAt

public Date getCreatedAt()
Retrieves the value for the attribute createdAt.

Specified by:
getCreatedAt in interface BasicObject
Returns:
The non-null value for attribute createdAt.

getDescription

public final String getDescription()
Retrieves the possibly null value for the optional attribute description.

Specified by:
getDescription in interface WorkReportEntry
Returns:
The possibly null value for attribute description.

removeAllOwningGroup

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

getName

public String getName()
Retrieves the value for the attribute name.

Specified by:
getName in interface WorkReportEntry
Returns:
The non-null value for attribute name.

getBillingCurrency

public short getBillingCurrency()
Retrieves the value for the attribute billingCurrency.

Specified by:
getBillingCurrency in interface WorkReportEntry
Returns:
The non-null value for attribute billingCurrency.

getActivityNumber

public String getActivityNumber()
Retrieves the value for the attribute activityNumber.

Specified by:
getActivityNumber in interface WorkReportEntry
Returns:
The non-null value for attribute activityNumber.

setOwningUser

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

getActivity

public Activity getActivity()
Retrieves the value for the reference activity.

Specified by:
getActivity in interface WorkReportEntry
Returns:
The – possibly null – value 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.

addOwningGroup

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

getDurationDecimal

public final BigDecimal getDurationDecimal()
Retrieves the possibly null value for the optional attribute durationDecimal.

Specified by:
getDurationDecimal in interface WorkReportEntry
Returns:
The possibly null value for attribute durationDecimal.

getPauseDurationHhMm

public final String getPauseDurationHhMm()
Retrieves the possibly null value for the optional attribute pauseDurationHhMm.

Specified by:
getPauseDurationHhMm in interface WorkReportEntry
Returns:
The possibly null value for attribute pauseDurationHhMm.

getPauseDurationHours

public final Short getPauseDurationHours()
Retrieves the possibly null value for the optional attribute pauseDurationHours.

Specified by:
getPauseDurationHours in interface WorkReportEntry
Returns:
The possibly null value for attribute pauseDurationHours.

getEndedAt

public Date getEndedAt()
Retrieves the value for the attribute endedAt.

Specified by:
getEndedAt in interface WorkReportEntry
Returns:
The non-null value for attribute endedAt.

getResource

public Resource getResource()
Retrieves the value for the reference resource.

Specified by:
getResource in interface WorkReportEntry
Returns:
The – possibly null – value for this reference.

setResource

public void setResource(Resource resource)
Sets a new value for the reference resource.

Specified by:
setResource in interface WorkReportEntry
Parameters:
resource - The non-null new value for this reference.

getStartedAt

public Date getStartedAt()
Retrieves the value for the attribute startedAt.

Specified by:
getStartedAt in interface WorkReportEntry
Returns:
The non-null value for attribute startedAt.

checkPermissions

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

getWorkRecord

public ActivityWorkRecord getWorkRecord()
Retrieves the value for the reference workRecord.

Specified by:
getWorkRecord in interface WorkReportEntry
Returns:
The – possibly null – value for this reference.

removeOwningGroup

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

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.

getAssignment

public ResourceAssignment getAssignment()
Retrieves the value for the reference assignment.

Specified by:
getAssignment in interface WorkReportEntry
Returns:
The – possibly null – value for this reference.

getDurationMinutes

public short getDurationMinutes()
Retrieves the value for the attribute durationMinutes.

Specified by:
getDurationMinutes in interface WorkReportEntry
Returns:
The non-null value for attribute durationMinutes.

getCreatedBy

public final Set<String> getCreatedBy()
Retrieves a set containing all the elements for the attribute createdBy.

Specified by:
getCreatedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

getBillableAmount

public final BigDecimal getBillableAmount()
Retrieves the possibly null value for the optional attribute billableAmount.

Specified by:
getBillableAmount in interface WorkReportEntry
Returns:
The possibly null value for attribute billableAmount.

getPauseDurationDecimal

public final BigDecimal getPauseDurationDecimal()
Retrieves the possibly null value for the optional attribute pauseDurationDecimal.

Specified by:
getPauseDurationDecimal in interface WorkReportEntry
Returns:
The possibly null value for attribute pauseDurationDecimal.

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

getContext

public <T extends Context> Map<String,T> getContext()
Retrieves the Collection of objects referenced by context.

Specified by:
getContext in interface ContextCapable
Returns:
The Collection of referenced objects.

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

getView

public <T extends View> ObjectHasView.View<T> getView()
Retrieves a set containing all the elements for the reference view.

Specified by:
getView in interface ViewCapable
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.

getDurationHours

public short getDurationHours()
Retrieves the value for the attribute durationHours.

Specified by:
getDurationHours in interface WorkReportEntry
Returns:
The non-null value for attribute durationHours.

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class org.w3c.jdo2.AbstractObject

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class org.w3c.jdo2.AbstractObject

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)

openmdxjdoGetClass

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

Returns:
the model class
See Also:
WorkReportEntry.CLASS

addToSegment

public void addToSegment(Segment segment)
Sets a new value for the reference segment.

Parameters:
segment - The non-null new value for this reference.

addToSegment

public void addToSegment(Segment segment,
                         boolean idIsPersistent,
                         String id)
Set the object's composite association org:opencrx:kernel:activity1:SegmentContainsWorkReportEntry.

Parameters:
segment - The non-null new value for this object's composite owner.
idIsPersistent - Defines whether the id is persistent.
id - The non-null new value for this object's qualifier.

newIdentity

public static WorkReportEntry.Identity newIdentity(Segment.Identity segment,
                                                   QualifierType idType,
                                                   String id)

openmdxjdoToIdentity

public static WorkReportEntry.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.