org.openmdx.security.realm1.jmi1
Interface Policy

All Superinterfaces:
Policy, RefBaseObject, RefFeatured, RefObject
All Known Subinterfaces:
Policy

public interface Policy
extends Policy, RefObject

Abstract class Policy


Method Summary
 void addPrivilege(Privilege newValue)
          
 void addPrivilege(String id, Privilege newValue)
          
 void addRole(Role newValue)
          
 void addRole(String name, Role newValue)
          
<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.
 void removePrivilege(String id)
          
 void removeRole(String name)
          
 
Methods inherited from interface org.openmdx.security.realm1.cci2.Policy
getDescription, getName, getPrivilege, getRole, setDescription
 
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

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)



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