com.trackstudio.secured
Class SecuredAttachmentBean

java.lang.Object
  extended by com.trackstudio.tools.PropertyComparable
      extended by com.trackstudio.secured.Secured
          extended by 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


Nested Class Summary
 class SecuredAttachmentBean.ZippedFile
           
 
Field Summary
protected  java.lang.String description
           
protected static java.text.DateFormat df
           
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
           
 boolean zipHasMore
           
 java.util.ArrayList<SecuredAttachmentBean.ZippedFile> zippedFiles
           
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredAttachmentBean(AttachmentCacheItem attachment, SessionContext sec)
           
 
Method Summary
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 java.lang.Boolean getDeleted()
           
 java.lang.String getDescription()
           
 java.io.File getFile()
           
 java.lang.String getId()
           
 java.util.Calendar getLastModified()
           
 java.lang.String getName()
           
 java.lang.String getNameMD5()
           
 java.lang.Long getSize()
           
 java.lang.Double getSizeDoubleValue()
           
 java.lang.String getTaskId()
           
 byte[] getThumbData(int widthThumnail, int heightThumnail)
           
 SecuredUserBean getUser()
           
 java.lang.String getUserId()
           
 java.util.ArrayList<SecuredAttachmentBean.ZippedFile> getZippedFiles()
           
 java.lang.Boolean isDeleted()
           
 boolean isMovie()
           
 boolean isThumbnailed()
           
 boolean isZipHasMore()
           
 void setTaskId(java.lang.String taskId)
           
 
Methods inherited from class com.trackstudio.secured.Secured
canManage, canUpdate, canView, getCanManage, getCanUpdate, getSecure, isAllowedByACL
 
Methods inherited from class com.trackstudio.tools.PropertyComparable
compareTo, compareToIgnoreCase, compareToIgnoreCase, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SecuredAttachmentBean

public SecuredAttachmentBean(AttachmentCacheItem attachment,
                             SessionContext sec)
Method Detail

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.