org.opencrx.security.identity1.cci2
Interface Segment

All Superinterfaces:
org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.Segment, org.openmdx.compatibility.view1.cci2.ViewCapable
All Known Subinterfaces:
Segment

public interface Segment
extends Segment

Class Segment


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.base.cci2.Segment
org.openmdx.base.cci2.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.
<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.
 
Methods inherited from interface org.openmdx.base.cci2.Segment
getDescription, getProvider, setDescription
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 

Method Detail

getSubject

<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

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

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.


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