com.retek.component.security.impl
Class RoleImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.security.impl.RoleImpl
All Implemented Interfaces:
BusinessObject, com.retek.swing11.commons.type.Displayable, DistributedObject, Role

public class RoleImpl
extends DistributedObjectImpl
implements Role


Nested Class Summary
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.security.Role
DESCRIPTION
 
Constructor Summary
RoleImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
RoleImpl(DistributedContext context, DistributedReference reference, java.lang.String displayName, java.util.Set permissions, java.util.Set includedRoles)
           
 
Method Summary
 void addRole(Role role)
           
 void addRolePermission(RetekPermission permission)
           
 void delete()
           
 java.util.Set getAllPermissions()
           
 java.lang.String getDescription()
           
 RoleDto getDto()
           
 java.util.Set getInheritedByRoles()
           
 java.util.Set getInheritedPermissions()
           
 java.util.Set getInheritedRoles()
           
 java.util.Set getRolePermissions()
           
 boolean hasPermission(RetekPermission permission)
           
 boolean inherits(Role role)
           
 boolean isInheritedBy(Role role)
           
protected  Dto readLatest()
           
 void removeRole(Role role)
           
 void removeRolePermission(RetekPermission permission)
           
 void removeRolePermissions(Application application)
           
 void setDescription(java.lang.String displayName)
           
 void submit()
           
 java.lang.String toDisplayString()
           
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl
attributesToString, createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, toString, wrap, wrap, wrap, wrap
 
Methods inherited from class com.retek.commons.component.impl.BusinessObjectImpl
checkRelation, checkRelation, getBusinessInterface, getContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.commons.component.DistributedObject
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Constructor Detail

RoleImpl

public RoleImpl(DistributedContext context,
                DistributedReference reference,
                boolean createHollow)
         throws SystemException

RoleImpl

public RoleImpl(DistributedContext context,
                DistributedReference reference,
                java.lang.String displayName,
                java.util.Set permissions,
                java.util.Set includedRoles)
         throws SystemException
Method Detail

getDto

public RoleDto getDto()
               throws SystemException
Throws:
SystemException

getDescription

public java.lang.String getDescription()
                                throws SystemException
Specified by:
getDescription in interface Role
Throws:
SystemException

getRolePermissions

public java.util.Set getRolePermissions()
                                 throws SystemException
Specified by:
getRolePermissions in interface Role
Throws:
SystemException

getInheritedRoles

public java.util.Set getInheritedRoles()
                                throws SystemException
Specified by:
getInheritedRoles in interface Role
Throws:
SystemException

getInheritedByRoles

public java.util.Set getInheritedByRoles()
                                  throws SystemException
Specified by:
getInheritedByRoles in interface Role
Throws:
SystemException

setDescription

public void setDescription(java.lang.String displayName)
                    throws SystemException
Specified by:
setDescription in interface Role
Throws:
SystemException

addRolePermission

public void addRolePermission(RetekPermission permission)
                       throws SystemException
Specified by:
addRolePermission in interface Role
Throws:
SystemException

addRole

public void addRole(Role role)
             throws SystemException,
                    RetekSecurityException
Specified by:
addRole in interface Role
Throws:
SystemException
RetekSecurityException

isInheritedBy

public boolean isInheritedBy(Role role)
                      throws SystemException
Specified by:
isInheritedBy in interface Role
Throws:
SystemException

inherits

public boolean inherits(Role role)
                 throws SystemException
Specified by:
inherits in interface Role
Throws:
SystemException

submit

public void submit()
            throws SystemException,
                   BusinessException
Specified by:
submit in interface Role
Throws:
SystemException
BusinessException

readLatest

protected Dto readLatest()
                  throws SystemException
Overrides:
readLatest in class DistributedObjectImpl
Throws:
SystemException

removeRolePermission

public void removeRolePermission(RetekPermission permission)
                          throws SystemException
Specified by:
removeRolePermission in interface Role
Throws:
SystemException

removeRole

public void removeRole(Role role)
                throws SystemException
Specified by:
removeRole in interface Role
Throws:
SystemException

getInheritedPermissions

public java.util.Set getInheritedPermissions()
                                      throws SystemException
Specified by:
getInheritedPermissions in interface Role
Throws:
SystemException

getAllPermissions

public java.util.Set getAllPermissions()
                                throws SystemException
Specified by:
getAllPermissions in interface Role
Throws:
SystemException

hasPermission

public boolean hasPermission(RetekPermission permission)
                      throws SystemException
Specified by:
hasPermission in interface Role
Throws:
SystemException

removeRolePermissions

public void removeRolePermissions(Application application)
                           throws SystemException
Specified by:
removeRolePermissions in interface Role
Throws:
SystemException

delete

public void delete()
            throws SystemException,
                   BusinessException
Specified by:
delete in interface Role
Throws:
SystemException
BusinessException

toDisplayString

public java.lang.String toDisplayString()
Specified by:
toDisplayString in interface com.retek.swing11.commons.type.Displayable


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28