org.openmdx.security.authorization1.jmi1
Interface Policy

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

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

Class Policy


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.security.authorization1.cci2.Policy
Policy.Identity
 
Method Summary
 void addPrivilege(Privilege newValue)
          
 void addPrivilege(String id, Privilege newValue)
          
 void addRole(Role newValue)
          
 void addRole(String name, Role newValue)
          
 Policy getParent()
          Retrieves the value for the reference parent.
<T extends Privilege>
List<T>
getPrivilege(PrivilegeQuery query)
          Retrieves the value for the reference privilege for the specified query.
<T extends Role>
List<T>
getRole(RoleQuery query)
          Retrieves the value for the reference role for the specified query.
<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 removeParent()
          Removes the value for the optional reference parent.
 void removePrivilege(String id)
          
 void removeRole(String name)
          
 void setParent(Policy parent)
          Sets a new value for the reference parent.
 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:authorization1:SegmentContainsPolicy.
 
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
 
Methods inherited from interface org.openmdx.security.realm1.cci2.Policy
getDescription, getName, getPrivilege, getRole, setDescription
 

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.

getParent

Policy getParent()
Retrieves the value for the reference parent.

Returns:
The – possibly null – value for this reference.

setParent

void setParent(Policy parent)
Sets a new value for the reference parent.

Parameters:
parent - The non-null new value for this reference.

removeParent

void removeParent()
Removes the value for the optional reference parent.


getPrivilege

<T extends Privilege> List<T> getPrivilege(PrivilegeQuery query)
Retrieves the value for the reference privilege 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.

addPrivilege

void addPrivilege(String id,
                  Privilege newValue)

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

addPrivilege

void addPrivilege(Privilege newValue)

Parameters:
newValue - The element to be appended.

removePrivilege

void removePrivilege(String id)


getRole

<T extends Role> List<T> getRole(RoleQuery query)
Retrieves the value for the reference role 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.

addRole

void addRole(String name,
             Role newValue)

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

addRole

void addRole(Role newValue)

Parameters:
newValue - The element to be appended.

removeRole

void removeRole(String name)


setSegment

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

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:authorization1:SegmentContainsPolicy.

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.