com.trackstudio.secured
Class SecuredTaskAttachmentBean

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.SecuredTaskAttachmentBean
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
SecuredMessageAttachmentBean

public class SecuredTaskAttachmentBean
extends SecuredAttachmentBean


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trackstudio.secured.SecuredAttachmentBean
SecuredAttachmentBean.ZippedFile
 
Field Summary
protected  java.lang.String taskId
           
 
Fields inherited from class com.trackstudio.secured.SecuredAttachmentBean
description, df, file, id, log, name, userId, zipHasMore, zippedFiles
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredTaskAttachmentBean(AttachmentCacheItem attachment, SessionContext sec)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 int compareTo(java.lang.Object o)
          Сравнивает два объекта текущего класса
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 TaskAttachmentBean getTaskSOAP()
           
 boolean isAllowedByACL()
           
 boolean isDelete()
           
 void setDelete(boolean delete)
           
 
Methods inherited from class com.trackstudio.secured.SecuredAttachmentBean
getContainer, getDeleted, getDescription, getFile, getId, getLastModified, getName, getNameMD5, getSize, getSizeDoubleValue, 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
compareToIgnoreCase, compareToIgnoreCase, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskId

protected java.lang.String taskId
Constructor Detail

SecuredTaskAttachmentBean

public SecuredTaskAttachmentBean(AttachmentCacheItem attachment,
                                 SessionContext sec)
Method Detail

isDelete

public boolean isDelete()
                 throws GranException
Throws:
GranException

setDelete

public void setDelete(boolean delete)

getTaskId

public java.lang.String getTaskId()
Overrides:
getTaskId in class SecuredAttachmentBean

getTask

public SecuredTaskBean getTask()
                        throws GranException
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 - при необходимости

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

getTaskSOAP

public TaskAttachmentBean getTaskSOAP()
                               throws GranException
Throws:
GranException

compareTo

public int compareTo(java.lang.Object o)
Description copied from class: PropertyComparable
Сравнивает два объекта текущего класса

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class PropertyComparable
Parameters:
o - Сравниваемый обхект
Returns:
+1, 0 или -1


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