org.openmdx.security.realm1.cci
Class PolicyImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefObject_1
      extended by org.openmdx.security.realm1.cci.PolicyImpl
All Implemented Interfaces:
Serializable, javax.jdo.spi.PersistenceCapable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, Policy

public class PolicyImpl
extends RefObject_1
implements Policy

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer, javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager, javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
PolicyImpl(Object_1_0 object, RefClass refClass)
           
 
Method Summary
 void addPrivilege(Privilege newValue)
           
 void addPrivilege(String id, Privilege newValue)
           
 void addRole(Role newValue)
           
 void addRole(String name, Role newValue)
           
 String getDescription()
           
 String getName()
          Retrieves the value for the attribute name.
protected  String getName(int index)
           
 Collection getPrivilege()
          Retrieves a collection containing all the elements for the reference privilege.
 List getPrivilege(PrivilegeFilter filter)
          Retrieves the value for the reference privilege for the specified filter.
 List getPrivilege(PrivilegeQuery query)
          Retrieves the value for the reference privilege for the specified query.
 Privilege getPrivilege(String id)
          Retrieves the value for the reference privilege for the specified qualifier attribute value.
 Collection getRole()
          Retrieves a collection containing all the elements for the reference role.
 List getRole(RoleFilter filter)
          Retrieves the value for the reference role for the specified filter.
 List getRole(RoleQuery query)
          Retrieves the value for the reference role for the specified query.
 Role getRole(String name)
          Retrieves the value for the reference role for the specified qualifier attribute value.
 void removePrivilege(String id)
           
 void removeRole(String name)
           
 void setDescription(String newValue)
          Sets a new value for the attribute description.
protected  void setName(int index, String newValue)
           
protected  void setName(String newValue)
           
 void setPrivilege(List newValue)
           
 void setPrivilege(Privilege[] newValue)
           
 void setRole(List newValue)
           
 void setRole(Role[] newValue)
           
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefObject_1
equals, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, refAddEventListener, refAddToUnitOfWork, refAddValue, refAddValue, refAddValue, refClass, refContext, refDefaultFetchGroup, refDelegate, refDelete, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refImmediateComposite, refImmediatePackage, refInitialize, refInitialize, refInvokeOperation, refInvokeOperation, refIsDeleted, refIsDirty, refIsInstanceOf, refIsNew, refIsPersistent, refIsWriteProtected, refMetaObject, refMofId, refOutermostComposite, refOutermostPackage, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refRemoveValue, refRemoveValue, refSetValue, refSetValue, refSetValue, refSetValue, refVerifyConstraints, refWriteProtect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
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
 

Constructor Detail

PolicyImpl

public PolicyImpl(Object_1_0 object,
                  RefClass refClass)
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface Policy
Returns:
The possibly null value for attribute description.

setDescription

public void setDescription(String newValue)
Description copied from interface: Policy
Sets a new value for the attribute description.

Specified by:
setDescription in interface Policy
Parameters:
newValue - The possibly null new value for attribute description.

getName

public String getName()
Description copied from interface: Policy
Retrieves the value for the attribute name.

Specified by:
getName in interface Policy
Returns:
The non-null value for attribute name.

getName

protected String getName(int index)

setName

protected void setName(String newValue)

setName

protected void setName(int index,
                       String newValue)

setPrivilege

public void setPrivilege(List newValue)

setPrivilege

public void setPrivilege(Privilege[] newValue)

getPrivilege

public Privilege getPrivilege(String id)
Description copied from interface: Policy
Retrieves the value for the reference privilege for the specified qualifier attribute value.

Specified by:
getPrivilege in interface Policy
Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getPrivilege

public Collection getPrivilege()
Description copied from interface: Policy
Retrieves a collection containing all the elements for the reference privilege.

Specified by:
getPrivilege in interface Policy
Returns:
A collection containing all the elements for this reference.

getPrivilege

public List getPrivilege(PrivilegeFilter filter)
Description copied from interface: Policy
Retrieves the value for the reference privilege for the specified filter.

Specified by:
getPrivilege in interface Policy
Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.

getPrivilege

public List getPrivilege(PrivilegeQuery query)
Description copied from interface: Policy
Retrieves the value for the reference privilege for the specified query.

Specified by:
getPrivilege in interface Policy
Returns:
The filtered collection of referenced objects.

addPrivilege

public void addPrivilege(String id,
                         Privilege newValue)
Specified by:
addPrivilege in interface Policy
Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addPrivilege

public void addPrivilege(Privilege newValue)
Specified by:
addPrivilege in interface Policy
Parameters:
newValue - The element to be appended.

removePrivilege

public void removePrivilege(String id)
Specified by:
removePrivilege in interface Policy

setRole

public void setRole(List newValue)

setRole

public void setRole(Role[] newValue)

getRole

public Role getRole(String name)
Description copied from interface: Policy
Retrieves the value for the reference role for the specified qualifier attribute value.

Specified by:
getRole in interface Policy
Parameters:
name - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getRole

public Collection getRole()
Description copied from interface: Policy
Retrieves a collection containing all the elements for the reference role.

Specified by:
getRole in interface Policy
Returns:
A collection containing all the elements for this reference.

getRole

public List getRole(RoleFilter filter)
Description copied from interface: Policy
Retrieves the value for the reference role for the specified filter.

Specified by:
getRole in interface Policy
Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.

getRole

public List getRole(RoleQuery query)
Description copied from interface: Policy
Retrieves the value for the reference role for the specified query.

Specified by:
getRole in interface Policy
Returns:
The filtered collection of referenced objects.

addRole

public void addRole(String name,
                    Role newValue)
Specified by:
addRole in interface Policy
Parameters:
name - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addRole

public void addRole(Role newValue)
Specified by:
addRole in interface Policy
Parameters:
newValue - The element to be appended.

removeRole

public void removeRole(String name)
Specified by:
removeRole in interface Policy


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