com.trackstudio.secured
Class SecuredMessageAttachmentBean

java.lang.Object
  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


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, file, id, log, name, userId
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Constructor Summary
SecuredMessageAttachmentBean(AttachmentCacheItem attachment, SessionContext sec)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 SecuredMessageBean getMessage()
           
 java.lang.String getMessageId()
           
 AttachmentBean getSOAP()
           
 boolean isAllowedByACL()
           
 
Methods inherited from class com.trackstudio.secured.SecuredTaskAttachmentBean
getTask, getTaskId
 
Methods inherited from class com.trackstudio.secured.SecuredAttachmentBean
compareTo, getDeleted, getDescription, getFile, getId, getLastModified, getName, getSize, getThumbData, getUser, getUserId, isDeleted, isThumbnailed, setName, setTaskId
 
Methods inherited from class com.trackstudio.secured.Secured
canUpdate, compare, equals, getCanManage, getCanUpdate, getSecure, 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()

getSOAP

public AttachmentBean getSOAP()
                       throws GranException
Overrides:
getSOAP in class SecuredTaskAttachmentBean
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.