com.trackstudio.secured
Class SecuredAttachmentBean
java.lang.Object
com.trackstudio.tools.PropertyComparable
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
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
zipHasMore
public boolean zipHasMore
zippedFiles
public java.util.ArrayList<SecuredAttachmentBean.ZippedFile> zippedFiles
df
protected static java.text.DateFormat df
SecuredAttachmentBean
public SecuredAttachmentBean(AttachmentCacheItem attachment,
SessionContext sec)
isZipHasMore
public boolean isZipHasMore()
getZippedFiles
public java.util.ArrayList<SecuredAttachmentBean.ZippedFile> getZippedFiles()
getUserId
public java.lang.String getUserId()
isThumbnailed
public boolean isThumbnailed()
isMovie
public boolean isMovie()
getUser
public SecuredUserBean getUser()
throws GranException
- Throws:
GranException
getNameMD5
public java.lang.String getNameMD5()
getId
public java.lang.String getId()
- Specified by:
getId
in class Secured
getName
public java.lang.String getName()
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
getSizeDoubleValue
public java.lang.Double getSizeDoubleValue()
throws GranException
- Throws:
GranException
getLastModified
public java.util.Calendar getLastModified()
getFile
public java.io.File getFile()
getThumbData
public byte[] getThumbData(int widthThumnail,
int heightThumnail)
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
getContainer
protected PropertyContainer getContainer()
- Description copied from class:
PropertyComparable
- Возвращает контейнер свойств
- Specified by:
getContainer
in class PropertyComparable
- Returns:
- контейнер свойств
Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.