com.trackstudio.secured
Class SecuredUserAclBean

java.lang.Object
  extended by com.trackstudio.secured.Secured
      extended by com.trackstudio.secured.SecuredAclBean
          extended by com.trackstudio.secured.SecuredUserAclBean
All Implemented Interfaces:
java.lang.Comparable

public class SecuredUserAclBean
extends SecuredAclBean


Field Summary
protected  java.lang.String toUserId
           
 
Fields inherited from class com.trackstudio.secured.SecuredAclBean
groupId, id, override, ownerId, prstatusId, userId
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Constructor Summary
SecuredUserAclBean(Acl acl, SessionContext sec)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 AclBean getSOAP()
           
 SecuredUserBean getToUser()
           
 java.lang.String getToUserId()
           
 boolean isAllowedByACL()
           
 void setToUserId(java.lang.String toUserId)
           
 
Methods inherited from class com.trackstudio.secured.SecuredAclBean
compareTo, getCanUpdate, getGroup, getGroupId, getId, getOverride, getOwner, getOwnerId, getPrstatus, getPrstatusId, getUser, getUserId, isOverride
 
Methods inherited from class com.trackstudio.secured.Secured
canUpdate, compare, equals, getCanManage, getSecure, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toUserId

protected java.lang.String toUserId
Constructor Detail

SecuredUserAclBean

public SecuredUserAclBean(Acl acl,
                          SessionContext sec)
Method Detail

getToUserId

public java.lang.String getToUserId()

setToUserId

public void setToUserId(java.lang.String toUserId)

canManage

public boolean canManage()
                  throws GranException
Description copied from class: Secured
Проверяет доступ к бину. Новый улучшеный метод. Нужно проверять доступ как по ACL, так и по Roles

Specified by:
canManage in class Secured
Returns:
TRUE - доступ есть, FALSE - нет
Throws:
GranException - при необходимости

getToUser

public SecuredUserBean getToUser()
                          throws GranException
Throws:
GranException

isAllowedByACL

public boolean isAllowedByACL()
                       throws GranException
Specified by:
isAllowedByACL in class Secured
Throws:
GranException

canView

public boolean canView()
                throws GranException
Specified by:
canView in class Secured
Throws:
GranException

getSOAP

public AclBean getSOAP()
Specified by:
getSOAP in class SecuredAclBean


Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.