|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.oasisopen.jdo2.Identifiable
org.w3c.jdo2.AbstractObject
org.opencrx.kernel.activity1.jdo2.ProductReference
public class ProductReference
Class ProductReference
| Nested Class Summary | |
|---|---|
static class |
ProductReference.Identity
The object's application identity |
static class |
ProductReference.Slice
Slice object hold the ProductReference'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::ProductReference |
| Constructor Summary | |
|---|---|
ProductReference()
|
|
| Method Summary | ||
|---|---|---|
void |
addConfiguration(boolean idIsPersistent,
String id,
ProductConfiguration configuration)
Adds the specified element to the set of the values for the reference configuration. |
|
ModifySecureObjectResult |
addOwningGroup(PrincipalGroup group,
short mode)
|
|
void |
addToActivity(Activity activity)
Sets a new value for the reference activity. |
|
void |
addToActivity(Activity activity,
boolean idIsPersistent,
String id)
Set the object's composite association org:opencrx:kernel:activity1:ActivityHasProductReference. |
|
CheckPermissionsResult |
checkPermissions(String principalName)
|
|
org.openmdx.base.cci2.BasicObject |
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. |
|
ProductConfigurationTypeSet |
getConfigType()
Retrieves the value for the reference configType. |
|
|
getConfiguration()
Retrieves a set containing all the elements for the reference configuration. |
|
ProductConfiguration |
getConfiguration(boolean idIsPersistent,
String id)
Retrieves the value for the reference configuration for
the specified qualifier attribute value. |
|
Date |
getCreatedAt()
Retrieves the value for the attribute createdAt. |
|
Set<String> |
getCreatedBy()
Retrieves a set containing all the elements for the attribute createdBy. |
|
ProductConfiguration |
getCurrentConfig()
Retrieves the value for the reference currentConfig. |
|
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. |
|
List<String> |
getOwner()
Retrieves a list containing all the elements for the attribute owner. |
|
|
getOwningGroup()
Retrieves the Collection of objects referenced by
owningGroup. |
|
User |
getOwningUser()
Retrieves the value for the reference owningUser. |
|
Product |
getProduct()
Retrieves the value for the reference product. |
|
Set<String> |
getProductSerialNumber()
Retrieves a set containing all the elements for the attribute productSerialNumber. |
|
|
getView()
Retrieves a set containing all the elements for the reference view. |
|
org.openmdx.compatibility.view1.cci2.View |
getView(boolean namespaceIsPersistent,
String namespace)
Retrieves the value for the reference view for the
specified qualifier attribute value. |
|
static ProductReference.Identity |
newIdentity(Activity.Identity activity,
boolean idIsPersistent,
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 |
|
static CloseableCollection<ProductReference> |
openmdxjdoGetObjectsByParent(Activity activity)
Navigate through an object's composite association |
|
protected int |
openmdxjdoGetSize(int field)
|
|
protected
|
openmdxjdoGetSlices()
|
|
protected void |
openmdxjdoSetSize(int field,
int size)
|
|
static ProductReference.Identity |
openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
|
|
ModifySecureObjectResult |
removeAllOwningGroup(short mode)
|
|
ModifySecureObjectResult |
removeOwningGroup(PrincipalGroup group,
short mode)
|
|
ModifySecureObjectResult |
setAccessLevel(short accessLevelBrowse,
short accessLevelDelete,
short accessLevelUpdate,
short mode)
|
|
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. |
|
void |
setCurrentConfig(ProductConfiguration currentConfig)
Sets a new value for the reference currentConfig. |
|
ModifySecureObjectResult |
setOwningUser(short mode,
User user)
|
|
void |
setOwningUser(User owningUser)
Sets a new value for the reference owningUser. |
|
void |
setProduct(Product product)
Sets a new value for the reference product. |
|
void |
setProductSerialNumber(String... productSerialNumber)
Clears productSerialNumber and adds the given value(s). |
|
org.openmdx.base.cci2.Void |
unsetConfigurationType()
|
|
| Methods inherited from class org.w3c.jdo2.AbstractObject |
|---|
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement |
| Methods inherited from class org.oasisopen.jdo2.Identifiable |
|---|
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 |
|---|
public static final List<String> CLASS
org::opencrx::kernel::activity1::ProductReference
public static final List<String> BASE_CLASS
ProductReference.CLASS| Constructor Detail |
|---|
public ProductReference()
| Method Detail |
|---|
protected String openmdxjdoGetObjectId()
openmdxjdoGetObjectId in class org.oasisopen.jdo2.Identifiableprotected final <E extends org.w3c.jdo2.AbstractObject.Slice> SortedMap<Integer,E> openmdxjdoGetSlices()
openmdxjdoGetSlices in class org.w3c.jdo2.AbstractObjectpublic ProductConfiguration getCurrentConfig()
currentConfig.
getCurrentConfig in interface ConfiguredProductnull – value for this reference.public void setCurrentConfig(ProductConfiguration currentConfig)
currentConfig.
setCurrentConfig in interface ConfiguredProductcurrentConfig - The non-null new value for this reference.public short getAccessLevelDelete()
accessLevelDelete.
getAccessLevelDelete in interface SecureObjectaccessLevelDelete.public void setAccessLevelDelete(short accessLevelDelete)
accessLevelDelete.
setAccessLevelDelete in interface SecureObjectaccessLevelDelete - The non-null new value for attribute accessLevelDelete.public Date getModifiedAt()
modifiedAt.
getModifiedAt in interface org.openmdx.base.cci2.BasicObjectmodifiedAt.public final Set<String> getModifiedBy()
modifiedBy.
getModifiedBy in interface org.openmdx.base.cci2.BasicObjectpublic short getAccessLevelBrowse()
accessLevelBrowse.
getAccessLevelBrowse in interface SecureObjectaccessLevelBrowse.public void setAccessLevelBrowse(short accessLevelBrowse)
accessLevelBrowse.
setAccessLevelBrowse in interface SecureObjectaccessLevelBrowse - The non-null new value for attribute accessLevelBrowse.public String getIdentity()
identity.
getIdentity in interface org.openmdx.base.cci2.ExtentCapableidentity.public ModifySecureObjectResult removeAllOwningGroup(short mode)
removeAllOwningGroup in interface SecureObjectpublic Date getCreatedAt()
createdAt.
getCreatedAt in interface org.openmdx.base.cci2.BasicObjectcreatedAt.public final Set<String> getProductSerialNumber()
productSerialNumber.
getProductSerialNumber in interface ConfiguredProductpublic void setProductSerialNumber(String... productSerialNumber)
productSerialNumber and adds the given value(s).
This method is equivalent to
set.clear(); set.addAll(Arrays.asList(productSerialNumber));
setProductSerialNumber in interface ConfiguredProductproductSerialNumber - value(s) to be added to productSerialNumber
public ModifySecureObjectResult setOwningUser(short mode,
User user)
setOwningUser in interface SecureObjectpublic <T extends PrincipalGroup> List<T> getOwningGroup()
Collection of objects referenced by
owningGroup.
getOwningGroup in interface SecureObjectCollection of referenced objects.
public ModifySecureObjectResult addOwningGroup(PrincipalGroup group,
short mode)
addOwningGroup in interface SecureObjectpublic org.openmdx.base.cci2.Void unsetConfigurationType()
unsetConfigurationType in interface ProductConfigurationSetpublic ProductConfigurationTypeSet getConfigType()
configType.
getConfigType in interface ProductConfigurationSetnull – value for this reference.public CheckPermissionsResult checkPermissions(String principalName)
checkPermissions in interface SecureObject
public ModifySecureObjectResult removeOwningGroup(PrincipalGroup group,
short mode)
removeOwningGroup in interface SecureObjectpublic Product getProduct()
product.
getProduct in interface ProductDescriptornull – value for this reference.public void setProduct(Product product)
product.
setProduct in interface ProductDescriptorproduct - The non-null new value for this reference.public short getAccessLevelUpdate()
accessLevelUpdate.
getAccessLevelUpdate in interface SecureObjectaccessLevelUpdate.public void setAccessLevelUpdate(short accessLevelUpdate)
accessLevelUpdate.
setAccessLevelUpdate in interface SecureObjectaccessLevelUpdate - The non-null new value for attribute accessLevelUpdate.public final Set<String> getCreatedBy()
createdBy.
getCreatedBy in interface org.openmdx.base.cci2.BasicObject
public ModifySecureObjectResult setAccessLevel(short accessLevelBrowse,
short accessLevelDelete,
short accessLevelUpdate,
short mode)
setAccessLevel in interface SecureObjectpublic org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
accessGrantedByParent.
getAccessGrantedByParent in interface SecureObjectnull – value for this reference.public final List<String> getOwner()
owner.
getOwner in interface SecureObjectpublic <T extends org.openmdx.compatibility.view1.cci2.View> Collection<T> getView()
view.
getView in interface org.openmdx.compatibility.view1.cci2.ViewCapable
public org.openmdx.compatibility.view1.cci2.View getView(boolean namespaceIsPersistent,
String namespace)
view for the
specified qualifier attribute value.
getView in interface org.openmdx.compatibility.view1.cci2.ViewCapablenamespaceIsPersistent - Defines whether value for the qualifier is persistent or notnamespace - The value for the qualifier attribute that qualifies this reference.
public <T extends ProductConfiguration> Collection<T> getConfiguration()
configuration.
getConfiguration in interface ProductConfigurationSet
public ProductConfiguration getConfiguration(boolean idIsPersistent,
String id)
configuration for
the specified qualifier attribute value.
getConfiguration in interface ProductConfigurationSetidIsPersistent - Defines whether value for the qualifier is persistent or notid - The value for the qualifier attribute that qualifies this reference.
public void addConfiguration(boolean idIsPersistent,
String id,
ProductConfiguration configuration)
configuration.
Note: This is an extension to the JMI 1 standard.
addConfiguration in interface ProductConfigurationSetidIsPersistent - true if id is persistentid - The qualifier attribute value that qualifies the reference to get the element to be appended.configuration - The element to be appended.public User getOwningUser()
owningUser.
getOwningUser in interface SecureObjectnull – value for this reference.public void setOwningUser(User owningUser)
owningUser.
setOwningUser in interface SecureObjectowningUser - The non-null new value for this reference.protected int openmdxjdoGetSize(int field)
openmdxjdoGetSize in class org.w3c.jdo2.AbstractObject
protected void openmdxjdoSetSize(int field,
int size)
openmdxjdoSetSize in class org.w3c.jdo2.AbstractObjectprotected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
protected List<String> openmdxjdoGetClass()
ProductReference.CLASSpublic void addToActivity(Activity activity)
activity.
activity - The non-null new value for this reference.public static CloseableCollection<ProductReference> openmdxjdoGetObjectsByParent(Activity activity)
public void addToActivity(Activity activity,
boolean idIsPersistent,
String id)
org:opencrx:kernel:activity1:ActivityHasProductReference.
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.
public static ProductReference.Identity newIdentity(Activity.Identity activity,
boolean idIsPersistent,
String id)
public static ProductReference.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||