org.opencrx.security.identity1.jmi1
Interface Segment

All Superinterfaces:
ContextCapable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, Segment

public interface Segment
extends Segment, Segment

Class Segment


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.base.cci2.Segment
Segment.Identity
 
Method Summary
 void addSubject(boolean nameIsPersistent, String name, Subject subject)
          Adds the specified element to the set of the values for the reference subject.
 void addSubject(String name, Subject subject)
          Adds the specified element to the set of the values for the reference subject using a reassignable qualifier.
 void addSubject(Subject subject)
          Adds the specified element to the set of the values for the reference subject using an implementation-specific, reassignable qualifier.
 Subject getSubject(boolean nameIsPersistent, String name)
          Retrieves the value for the reference subject for the specified qualifier attribute value.
 Subject getSubject(String name)
          Retrieves the value for the reference subject for the specified qualifier attribute value.
<T extends Subject>
List<T>
getSubject(SubjectQuery query)
          Retrieves the value for the reference subject for the specified query.
 
Methods inherited from interface org.opencrx.security.identity1.cci2.Segment
getSubject
 
Methods inherited from interface org.openmdx.base.jmi1.Segment
getExtent, getExtent, getExtent, getProvider
 
Methods inherited from interface org.openmdx.base.cci2.Segment
getDescription, getExtent, setDescription
 
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

getSubject

<T extends Subject> List<T> getSubject(SubjectQuery query)
Retrieves the value for the reference subject 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.

getSubject

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

getSubject

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

This method is equivalent to the preferred invocation getSubject(false,name).

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

addSubject

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.

addSubject

void addSubject(String name,
                Subject subject)
Adds the specified element to the set of the values for the reference subject using a reassignable qualifier.

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

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

addSubject

void addSubject(Subject subject)
Adds the specified element to the set of the values for the reference subject using an implementation-specific, reassignable qualifier.

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

Parameters:
subject - The element to be appended.


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