org.opencrx.security.identity1.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.security.jdo2.Segment
                  extended by org.opencrx.security.identity1.jdo2.Segment
All Implemented Interfaces:
Serializable, Detachable, PersistenceCapable, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.Segment, org.openmdx.compatibility.view1.cci2.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
org.openmdx.base.jdo2.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
org.openmdx.base.cci2.Segment.Identity
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
PersistenceCapable.ObjectIdFieldConsumer, PersistenceCapable.ObjectIdFieldManager, PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::security::identity1::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
 void addSubject(boolean nameIsPersistent, String name, Subject subject)
          Adds the specified element to the set of the values for the reference subject.
<T extends Subject>
Collection<T>
getSubject()
          Retrieves a set containing all the elements for the reference subject.
 Subject getSubject(boolean nameIsPersistent, String name)
          Retrieves the value for the reference subject for the specified qualifier attribute value.
static org.openmdx.base.jdo2.Segment.Identity newIdentity(org.openmdx.base.cci2.Provider.Identity provider, boolean qualifiedNameIsPersistent, 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 org.openmdx.base.jdo2.Segment.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
           
 
Methods inherited from class org.opencrx.security.jdo2.Segment
openmdxjdoGetSlices
 
Methods inherited from class org.openmdx.base.jdo2.Segment
addToProvider, addToProvider, getDescription, getProvider, getView, 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, openmdxjdoGetObjectsByParent, setDescription
 
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
 
Methods inherited from interface org.openmdx.base.cci2.Segment
getDescription, getProvider, setDescription
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 

Field Detail

CLASS

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

Constructor Detail

Segment

public Segment()
Method Detail

getSubject

public <T extends Subject> Collection<T> getSubject()
Retrieves a set containing all the elements for the reference subject.

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

getSubject

public Subject getSubject(boolean nameIsPersistent,
                          String name)
Retrieves the value for the reference subject for the specified qualifier attribute value.

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

addSubject

public void addSubject(boolean nameIsPersistent,
                       String name,
                       Subject subject)
Adds the specified element to the set of the values for the reference subject.

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

Parameters:
nameIsPersistent - true if name is persistent
name - The qualifier attribute value that qualifies the reference to get the element to be appended.
subject - The element to be appended.

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 org.openmdx.base.jdo2.Segment.Identity newIdentity(org.openmdx.base.cci2.Provider.Identity provider,
                                                                 boolean qualifiedNameIsPersistent,
                                                                 String qualifiedName)

openmdxjdoToIdentity

public static org.openmdx.base.jdo2.Segment.Identity openmdxjdoToIdentity(org.oasisopen.spi2.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.