com.trackstudio.kernel.manager
Class AttachmentManager

java.lang.Object
  extended by com.trackstudio.kernel.manager.KernelManager
      extended by com.trackstudio.kernel.manager.AttachmentManager

public class AttachmentManager
extends KernelManager


Field Summary
protected static java.lang.String className
           
protected static java.lang.String END_SIGN
           
protected static AttachmentManager instance
           
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.trackstudio.kernel.manager.KernelManager
hu
 
Constructor Summary
protected AttachmentManager()
           
 
Method Summary
 java.util.ArrayList createAttachment(java.lang.String taskId, java.lang.String userId, java.util.ArrayList attachments)
           
 void deleteAttachment(java.lang.String attachmentId)
           
 void deleteAttachment(java.lang.String attachmentId, boolean reIndex)
           
 byte[] getAttachment(java.lang.String taskId, java.lang.String fileName)
           
 java.util.List getAttachmentList(java.lang.String taskId, boolean reindex)
           
static AttachmentManager getInstance()
           
protected  java.io.File protectExistingFile(java.io.File file)
           
static java.lang.String removeLocaleCharacters(java.lang.String str)
           
 void updateAttachment(java.lang.String attachmentId, java.lang.String name, java.lang.String description)
           
 
Methods inherited from class com.trackstudio.kernel.manager.KernelManager
getAcl, getAttachment, getCategory, getEmailType, getFilter, getFind, getIndex, getLicense, getLongText, getMailImport, getMessage, getPrstatus, getRegistration, getReport, getScript, getStep, getTask, getTSInfo, getUdf, getUser, getWorkflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

protected static java.lang.String className

instance

protected static AttachmentManager instance

log

protected static org.apache.commons.logging.Log log

END_SIGN

protected static final java.lang.String END_SIGN
See Also:
Constant Field Values
Constructor Detail

AttachmentManager

protected AttachmentManager()
Method Detail

getInstance

public static AttachmentManager getInstance()

protectExistingFile

protected java.io.File protectExistingFile(java.io.File file)

removeLocaleCharacters

public static java.lang.String removeLocaleCharacters(java.lang.String str)

createAttachment

public java.util.ArrayList createAttachment(java.lang.String taskId,
                                            java.lang.String userId,
                                            java.util.ArrayList attachments)
                                     throws GranException
Throws:
GranException

getAttachment

public byte[] getAttachment(java.lang.String taskId,
                            java.lang.String fileName)
                     throws GranException
Throws:
GranException

deleteAttachment

public void deleteAttachment(java.lang.String attachmentId)
                      throws GranException
Throws:
GranException

deleteAttachment

public void deleteAttachment(java.lang.String attachmentId,
                             boolean reIndex)
                      throws GranException
Throws:
GranException

getAttachmentList

public java.util.List getAttachmentList(java.lang.String taskId,
                                        boolean reindex)
                                 throws GranException
Throws:
GranException

updateAttachment

public void updateAttachment(java.lang.String attachmentId,
                             java.lang.String name,
                             java.lang.String description)
                      throws GranException
Throws:
GranException


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