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

public class SecuredAttachmentBean
extends Secured

Bean which represents file attachment


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Constructor Summary
SecuredAttachmentBean(AttachmentCacheItem attachment, SessionContext sec)
           
 
Method Summary
 boolean canUpdate()
           
 boolean canView()
           
 int compareTo(java.lang.Object o)
           
 boolean getCanUpdate()
           
 java.lang.String getDescription()
           
 java.lang.String getEncodeName()
           
 java.lang.String getId()
           
 java.sql.Timestamp getLastModified()
           
 java.lang.String getLastModifiedString()
           
 java.lang.String getName()
           
 java.lang.Long getSize()
           
 AttachmentBean getSOAP()
           
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 byte[] getThumbData()
           
 SecuredUserBean getUser()
           
 java.lang.String getUserId()
           
 java.lang.String getUserName()
           
 
Methods inherited from class com.trackstudio.secured.Secured
compare, equals, getSecure, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecuredAttachmentBean

public SecuredAttachmentBean(AttachmentCacheItem attachment,
                             SessionContext sec)
Method Detail

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

getUserName

public java.lang.String getUserName()
                             throws GranException
Throws:
GranException

getTask

public SecuredTaskBean getTask()
                        throws GranException
Throws:
GranException

getUser

public SecuredUserBean getUser()
                        throws GranException
Throws:
GranException

canUpdate

public boolean canUpdate()
                  throws GranException
Specified by:
canUpdate in class Secured
Throws:
GranException

getCanUpdate

public boolean getCanUpdate()
                     throws GranException
Overrides:
getCanUpdate in class Secured
Throws:
GranException

canView

public boolean canView()
                throws GranException
Specified by:
canView in class Secured
Throws:
GranException

getTaskId

public java.lang.String getTaskId()

getUserId

public java.lang.String getUserId()

getName

public java.lang.String getName()

getEncodeName

public java.lang.String getEncodeName()

getDescription

public java.lang.String getDescription()

getSOAP

public AttachmentBean getSOAP()

getSize

public java.lang.Long getSize()

getLastModified

public java.sql.Timestamp getLastModified()

getLastModifiedString

public java.lang.String getLastModifiedString()
                                       throws GranException
Throws:
GranException

getThumbData

public byte[] getThumbData()
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.