com.trackstudio.secured
Class SecuredAttachmentBean

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


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
 
Constructor Summary
SecuredAttachmentBean(AttachmentCacheItem attachment, SessionContext sec)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 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.Long getSize()
           
abstract  AttachmentBean getSOAP()
           
 java.lang.String getTaskId()
           
 byte[] getThumbData()
           
 SecuredUserBean getUser()
           
 java.lang.String getUserId()
           
 java.lang.Boolean isDeleted()
           
 boolean isThumbnailed()
           
 void setName(java.lang.String name)
           
 void setTaskId(java.lang.String taskId)
           
 
Methods inherited from class com.trackstudio.secured.Secured
canManage, canUpdate, canView, compare, equals, getCanManage, getCanUpdate, getSecure, hashCode, isAllowedByACL
 
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
Constructor Detail

SecuredAttachmentBean

public SecuredAttachmentBean(AttachmentCacheItem attachment,
                             SessionContext sec)
Method Detail

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.