org.openmdx.security.realm1.jmi1
Interface Role

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

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

Class Role


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.security.realm1.cci2.Role
Role.Identity
 
Method Summary
 void addPermission(Permission newValue)
          
 void addPermission(String id, Permission newValue)
          
<T extends Permission>
List<T>
getPermission(PermissionQuery query)
          Retrieves the value for the reference permission for the specified query.
 Policy getPolicy()
          Retrieves the value for the reference policy.
<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 removePermission(String id)
          
 void setPolicy(Policy policy)
          Sets a new value for the reference policy.
 void setPolicy(Policy policy, boolean nameIsPersistent, String name)
          Set the object's composite association org:openmdx:security:realm1:RoleBelongsToPolicy.
 
Methods inherited from interface org.openmdx.security.realm1.cci2.Role
getDescription, getName, getPermission, isDisabled, setDescription, setDisabled
 
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.

getPermission

<T extends Permission> List<T> getPermission(PermissionQuery query)
Retrieves the value for the reference permission 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.

addPermission

void addPermission(String id,
                   Permission newValue)

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

addPermission

void addPermission(Permission newValue)

Parameters:
newValue - The element to be appended.

removePermission

void removePermission(String id)


getPolicy

Policy getPolicy()
Retrieves the value for the reference policy.

Specified by:
getPolicy in interface Role
Returns:
The non-null value for this reference.

setPolicy

void setPolicy(Policy policy)
Sets a new value for the reference policy.

Specified by:
setPolicy in interface Role
Parameters:
policy - The non-null new value for this reference.

setPolicy

void setPolicy(Policy policy,
               boolean nameIsPersistent,
               String name)
Set the object's composite association org:openmdx:security:realm1:RoleBelongsToPolicy.

Specified by:
setPolicy in interface Role
Parameters:
policy - The non-null new value for this object's composite owner.
nameIsPersistent - Defines whether the name is persistent.
name - 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.