com.trackstudio.secured
Class SecuredAttachmentBean
java.lang.Object
com.trackstudio.secured.Secured
com.trackstudio.secured.SecuredAttachmentBean
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- SecuredTaskAttachmentBean, SecuredUserAttachmentBean
public abstract class SecuredAttachmentBean
- extends Secured
Bean which represents file attachment
|
Field Summary |
protected java.lang.String |
description
|
protected java.io.File |
file
|
protected java.lang.String |
id
|
protected static org.apache.commons.logging.Log |
log
|
protected java.lang.String |
name
|
protected java.lang.String |
taskId
|
protected java.lang.String |
userId
|
| Fields inherited from class com.trackstudio.secured.Secured |
sc |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
id
protected java.lang.String id
name
protected java.lang.String name
description
protected java.lang.String description
file
protected java.io.File file
userId
protected java.lang.String userId
taskId
protected java.lang.String taskId
SecuredAttachmentBean
public SecuredAttachmentBean(AttachmentCacheItem attachment,
SessionContext sec)
getUserId
public java.lang.String getUserId()
isThumbnailed
public boolean isThumbnailed()
getUser
public SecuredUserBean getUser()
throws GranException
- Throws:
GranException
getId
public java.lang.String getId()
- Specified by:
getId in class Secured
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo in interface java.lang.Comparable- Specified by:
compareTo in class Secured
getSOAP
public abstract AttachmentBean getSOAP()
throws GranException
- Throws:
GranException
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getTaskId
public java.lang.String getTaskId()
setTaskId
public void setTaskId(java.lang.String taskId)
getDescription
public java.lang.String getDescription()
getSize
public java.lang.Long getSize()
throws GranException
- Throws:
GranException
getLastModified
public java.util.Calendar getLastModified()
getFile
public java.io.File getFile()
getThumbData
public byte[] getThumbData()
throws java.io.IOException
- Throws:
java.io.IOException
getDeleted
public java.lang.Boolean getDeleted()
throws GranException
- Throws:
GranException
isDeleted
public java.lang.Boolean isDeleted()
throws GranException
- Throws:
GranException
Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.