org.openmdx.security.realm1.jmi1
Interface Permission

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

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

Class Permission


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openmdx.security.realm1.cci2.Permission
Permission.Identity
 
Method Summary
 Set<String> getAction()
           
 Privilege getPrivilege()
          Retrieves the value for the reference privilege.
 Role getRealm()
          Retrieves the value for the reference realm.
<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 setAction(Set<String> action)
           This method is equivalent to
 void setPrivilege(Privilege privilege)
          Sets a new value for the reference privilege.
 void setRealm(Role realm)
          Sets a new value for the reference realm.
 void setRealm(Role realm, boolean idIsPersistent, String id)
          Set the object's composite association org:openmdx:security:realm1:PermissionIsGrantedToRole.
 
Methods inherited from interface org.openmdx.security.realm1.cci2.Permission
getDescription, getName, setAction
 
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.

getAction

Set<String> getAction()
Specified by:
getAction in interface Permission
Returns:
A set containing all elements for this attribute.

setAction

void setAction(Set<String> action)

This method is equivalent to

   set.clear();
   set.addAll(action);
 

Parameters:
action - collection to be copied.

getPrivilege

Privilege getPrivilege()
Retrieves the value for the reference privilege.

Specified by:
getPrivilege in interface Permission
Returns:
The non-null value for this reference.

setPrivilege

void setPrivilege(Privilege privilege)
Sets a new value for the reference privilege.

Specified by:
setPrivilege in interface Permission
Parameters:
privilege - The non-null new value for this reference.

getRealm

Role getRealm()
Retrieves the value for the reference realm.

Specified by:
getRealm in interface Permission
Returns:
The non-null value for this reference.

setRealm

void setRealm(Role realm)
Sets a new value for the reference realm.

Specified by:
setRealm in interface Permission
Parameters:
realm - The non-null new value for this reference.

setRealm

void setRealm(Role realm,
              boolean idIsPersistent,
              String id)
Set the object's composite association org:openmdx:security:realm1:PermissionIsGrantedToRole.

Specified by:
setRealm in interface Permission
Parameters:
realm - 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.