org.openmdx.security.realm1.jmi1
Interface Realm

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

public interface Realm
extends Realm, org.openmdx.base.jmi1.BasicObject

Class Realm


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.security.realm1.cci2.Realm
Realm.Identity
 
Method Summary
 void addPrincipal(Principal newValue)
          
 void addPrincipal(String id, Principal newValue)
          
<T extends Principal>
List<T>
getPrincipal(PrincipalQuery query)
          Retrieves the value for the reference principal for the specified query.
 Segment getSegment()
          Retrieves the value for the reference segment.
<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.
 void removePrincipal(String id)
          
 void setSegment(Segment segment)
          Sets a new value for the reference segment.
 void setSegment(Segment segment, boolean idIsPersistent, String id)
          Set the object's composite association org:openmdx:security:realm1:SegmentContainsRealm.
 
Methods inherited from interface org.openmdx.security.realm1.cci2.Realm
getDescription, getName, getPrincipal, setDescription
 
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

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.

getPrincipal

<T extends Principal> List<T> getPrincipal(PrincipalQuery query)
Retrieves the value for the reference principal 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.

addPrincipal

void addPrincipal(String id,
                  Principal newValue)

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

addPrincipal

void addPrincipal(Principal newValue)

Parameters:
newValue - The element to be appended.

removePrincipal

void removePrincipal(String id)


getSegment

Segment getSegment()
Retrieves the value for the reference segment.

Specified by:
getSegment in interface Realm
Returns:
The non-null value for this reference.

setSegment

void setSegment(Segment segment)
Sets a new value for the reference segment.

Specified by:
setSegment in interface Realm
Parameters:
segment - The non-null new value for this reference.

setSegment

void setSegment(Segment segment,
                boolean idIsPersistent,
                String id)
Set the object's composite association org:openmdx:security:realm1:SegmentContainsRealm.

Specified by:
setSegment in interface Realm
Parameters:
segment - 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, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.