com.trackstudio.secured
Class SecuredUserAttachmentBean

java.lang.Object
  extended by com.trackstudio.tools.PropertyComparable
      extended by com.trackstudio.secured.Secured
          extended by com.trackstudio.secured.SecuredAttachmentBean
              extended by com.trackstudio.secured.SecuredUserAttachmentBean
All Implemented Interfaces:
java.lang.Comparable

public class SecuredUserAttachmentBean
extends SecuredAttachmentBean


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trackstudio.secured.SecuredAttachmentBean
SecuredAttachmentBean.ZippedFile
 
Field Summary
 
Fields inherited from class com.trackstudio.secured.SecuredAttachmentBean
description, df, file, id, log, name, taskId, userId, zipHasMore, zippedFiles
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredUserAttachmentBean(AttachmentCacheItem attachment, SessionContext sec)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 UserAttachmentBean getSOAP()
           
 boolean isAllowedByACL()
           
 
Methods inherited from class com.trackstudio.secured.SecuredAttachmentBean
getContainer, getDeleted, getDescription, getFile, getId, getLastModified, getName, getNameMD5, getSize, getSizeDoubleValue, getTaskId, getThumbData, getUser, getUserId, getZippedFiles, isDeleted, isMovie, isThumbnailed, isZipHasMore, setTaskId
 
Methods inherited from class com.trackstudio.secured.Secured
canUpdate, getCanManage, getCanUpdate, getSecure
 
Methods inherited from class com.trackstudio.tools.PropertyComparable
compareTo, compareToIgnoreCase, compareToIgnoreCase, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecuredUserAttachmentBean

public SecuredUserAttachmentBean(AttachmentCacheItem attachment,
                                 SessionContext sec)
Method Detail

getSOAP

public UserAttachmentBean getSOAP()
                           throws GranException
Throws:
GranException

isAllowedByACL

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

canManage

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

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

canView

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


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