org.opencrx.kernel.activity1.jmi1
Interface ResourceAssignment

All Superinterfaces:
org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, RefBaseObject, RefFeatured, RefObject, ResourceAssignment, SecureObject, org.openmdx.compatibility.view1.cci2.ViewCapable

public interface ResourceAssignment
extends ResourceAssignment, SecureObject, org.openmdx.base.jmi1.BasicObject

Class ResourceAssignment


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.activity1.cci2.ResourceAssignment
ResourceAssignment.Identity
 
Method Summary
 void addOwningGroup(int index, PrincipalGroup newValue)
          
 void addOwningGroup(PrincipalGroup newValue)
          
 void addWorkRecord(ActivityWorkRecord newValue)
          
 void addWorkRecord(String id, ActivityWorkRecord newValue)
          
 org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
          Retrieves the value for the reference accessGrantedByParent.
 Calendar getCalendar()
          Retrieves the value for the reference calendar.
 User getOwningUser()
          Retrieves the value for the reference owningUser.
 Resource getResource()
          Retrieves the value for the reference resource.
<T extends org.openmdx.compatibility.view1.cci2.View>
List<T>
getView(org.openmdx.compatibility.view1.cci2.ViewQuery query)
          Retrieves the value for the reference view for the specified query.
<T extends ActivityWorkRecord>
List<T>
getWorkRecord(ActivityWorkRecordQuery query)
          Retrieves the value for the reference workRecord for the specified query.
 void removeCalendar()
          Removes the value for the optional reference calendar.
 void removeOwningGroup(int index)
          
 void removeOwningUser()
          Removes the value for the optional reference owningUser.
 void removeResource()
          Removes the value for the optional reference resource.
 void removeWorkRecord(String id)
          
 void setActivity(Activity activity)
          Sets a new value for the reference activity.
 void setActivity(Activity activity, boolean idIsPersistent, String id)
          Set the object's composite association org:opencrx:kernel:activity1:ActivityHasResourceAssignment.
 void setCalendar(Calendar calendar)
          Sets a new value for the reference calendar.
 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 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, getOwner, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser
 
Methods inherited from interface org.openmdx.base.jmi1.BasicObject
getCreatedBy, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getModifiedAt
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 
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.

removeCalendar

void removeCalendar()
Removes the value for the optional reference calendar.


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.

removeResource

void removeResource()
Removes the value for the optional reference resource.


getWorkRecord

<T extends ActivityWorkRecord> List<T> getWorkRecord(ActivityWorkRecordQuery query)
Retrieves the value for the reference workRecord for the specified query.

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

addWorkRecord

void addWorkRecord(String id,
                   ActivityWorkRecord newValue)

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

addWorkRecord

void addWorkRecord(ActivityWorkRecord newValue)

Parameters:
newValue - The element to be appended.

removeWorkRecord

void removeWorkRecord(String id)


getAccessGrantedByParent

org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
Retrieves the value for the reference accessGrantedByParent.

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

addOwningGroup

void addOwningGroup(int index,
                    PrincipalGroup newValue)

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

addOwningGroup

void addOwningGroup(PrincipalGroup newValue)

Parameters:
newValue - The element to be appended.

removeOwningGroup

void removeOwningGroup(int index)


getOwningUser

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

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

setOwningUser

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.

removeOwningUser

void removeOwningUser()
Removes the value for the optional reference owningUser.


getView

<T extends org.openmdx.compatibility.view1.cci2.View> List<T> getView(org.openmdx.compatibility.view1.cci2.ViewQuery query)
Retrieves the value for the reference view for the specified query.

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

setActivity

void setActivity(Activity activity)
Sets a new value for the reference activity.

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

setActivity

void setActivity(Activity activity,
                 boolean idIsPersistent,
                 String id)
Set the object's composite association org:opencrx:kernel:activity1:ActivityHasResourceAssignment.

Specified by:
setActivity in interface ResourceAssignment
Parameters:
activity - 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.


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