com.trackstudio.secured
Class SecuredMessageAttachmentBean

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
                  extended by com.trackstudio.secured.SecuredMessageAttachmentBean
All Implemented Interfaces:
java.lang.Comparable

public class SecuredMessageAttachmentBean
extends SecuredTaskAttachmentBean


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trackstudio.secured.SecuredAttachmentBean
SecuredAttachmentBean.ZippedFile
 
Field Summary
protected  java.lang.String messageId
           
 
Fields inherited from class com.trackstudio.secured.SecuredTaskAttachmentBean
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
SecuredMessageAttachmentBean(AttachmentCacheItem attachment, SessionContext sec)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 SecuredMessageBean getMessage()
           
 java.lang.String getMessageId()
           
 MessageAttachmentBean getMessageSOAP()
           
 boolean isAllowedByACL()
           
 
Methods inherited from class com.trackstudio.secured.SecuredTaskAttachmentBean
compareTo, getTask, getTaskId, getTaskSOAP, isDelete, setDelete
 
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

messageId

protected java.lang.String messageId
Constructor Detail

SecuredMessageAttachmentBean

public SecuredMessageAttachmentBean(AttachmentCacheItem attachment,
                                    SessionContext sec)
Method Detail

getMessageId

public java.lang.String getMessageId()

getMessageSOAP

public MessageAttachmentBean getMessageSOAP()
                                     throws GranException
Throws:
GranException

getMessage

public SecuredMessageBean getMessage()
                              throws GranException
Throws:
GranException

canManage

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

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

isAllowedByACL

public boolean isAllowedByACL()
                       throws GranException
Overrides:
isAllowedByACL in class SecuredTaskAttachmentBean
Throws:
GranException

canView

public boolean canView()
                throws GranException
Overrides:
canView in class SecuredTaskAttachmentBean
Throws:
GranException


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