org.opencrx.kernel.activity1.jmi1
Interface ResourceAssignment

All Superinterfaces:
BasicObject, ContextCapable, Creatable, ExtentCapable, Modifiable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, ResourceAssignment, SecureObject

public interface ResourceAssignment
extends ResourceAssignment, SecureObject, BasicObject

Class ResourceAssignment


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.activity1.cci2.ResourceAssignment
ResourceAssignment.Identity
 
Method Summary
 void addWorkRecord(boolean idIsPersistent, String id, WorkAndExpenseRecord workRecord)
          Adds the specified element to the set of the values for the reference workRecord.
 void addWorkRecord(String id, WorkAndExpenseRecord workRecord)
          Adds the specified element to the set of the values for the reference workRecord using a reassignable qualifier.
 void addWorkRecord(WorkAndExpenseRecord workRecord)
          Adds the specified element to the set of the values for the reference workRecord using an implementation-specific, reassignable qualifier.
 Calendar getCalendar()
          Retrieves the value for the reference calendar.
 Resource getResource()
          Retrieves the value for the reference resource.
 WorkAndExpenseRecord getWorkRecord(boolean idIsPersistent, String id)
          Retrieves the value for the reference workRecord for the specified qualifier attribute value.
 WorkAndExpenseRecord getWorkRecord(String id)
          Retrieves the value for the reference workRecord for the specified qualifier attribute value.
<T extends WorkAndExpenseRecord>
List<T>
getWorkRecord(WorkAndExpenseRecordQuery query)
          Retrieves the value for the reference workRecord for the specified query.
 void setCalendar(Calendar calendar)
          Sets a new value for the reference calendar.
 void setResource(Resource resource)
          Sets a new value for the reference resource.
 
Methods inherited from interface org.opencrx.kernel.activity1.cci2.ResourceAssignment
getDescription, getName, getResourceOrder, getResourceRole, getWorkDurationPercentage, getWorkRecord, setDescription, setName, setResourceOrder, setResourceRole, setWorkDurationPercentage
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getOwner, getOwningUser, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setOwner, setOwningUser, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwningGroup, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwner, setOwningUser
 
Methods inherited from interface org.openmdx.base.jmi1.Creatable
getCreatedBy
 
Methods inherited from interface org.openmdx.base.cci2.Creatable
getCreatedAt
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.base.jmi1.Modifiable
getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.Modifiable
getModifiedAt
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refDefaultFetchGroup, refDelegate, refGetPath, refGetValue, refInitialize, refInitialize, refSetValue
 
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
 

Method Detail

getCalendar

Calendar getCalendar()
Retrieves the value for the reference calendar.

Specified by:
getCalendar in interface ResourceAssignment
Returns:
The – possibly null – value for this reference.

setCalendar

void setCalendar(Calendar calendar)
Sets a new value for the reference calendar.

Specified by:
setCalendar in interface ResourceAssignment
Parameters:
calendar - The non-null new value for this reference.

getResource

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

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

setResource

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

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

getWorkRecord

<T extends WorkAndExpenseRecord> List<T> getWorkRecord(WorkAndExpenseRecordQuery query)
Retrieves the value for the reference workRecord for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getWorkRecord

WorkAndExpenseRecord getWorkRecord(boolean idIsPersistent,
                                   String id)
Retrieves the value for the reference workRecord for the specified qualifier attribute value.

Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getWorkRecord

WorkAndExpenseRecord getWorkRecord(String id)
Retrieves the value for the reference workRecord for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getWorkRecord(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addWorkRecord

void addWorkRecord(boolean idIsPersistent,
                   String id,
                   WorkAndExpenseRecord workRecord)
Adds the specified element to the set of the values for the reference workRecord.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
workRecord - The element to be appended.

addWorkRecord

void addWorkRecord(String id,
                   WorkAndExpenseRecord workRecord)
Adds the specified element to the set of the values for the reference workRecord using a reassignable qualifier.

Note: This is an extension to the JMI 1 standard.

Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
workRecord - The element to be appended.

addWorkRecord

void addWorkRecord(WorkAndExpenseRecord workRecord)
Adds the specified element to the set of the values for the reference workRecord using an implementation-specific, reassignable qualifier.

Note: This is an extension to the JMI 1 standard.

Parameters:
workRecord - The element to be appended.


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