com.trackstudio.secured
Class SecuredMessageAttachmentBean
java.lang.Object
com.trackstudio.tools.PropertyComparable
com.trackstudio.secured.Secured
com.trackstudio.secured.SecuredAttachmentBean
com.trackstudio.secured.SecuredTaskAttachmentBean
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.Secured |
sc |
| 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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
messageId
protected java.lang.String messageId
SecuredMessageAttachmentBean
public SecuredMessageAttachmentBean(AttachmentCacheItem attachment,
SessionContext sec)
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.