Class AttachmentManager

All Implemented Interfaces:
Serializable

public class AttachmentManager extends BaseAttachmentManager
DOCUMENT ME!
Version:
$id: AttachmentManager.java $Revision$, 12-16-21 7:43:24 PM KST
Author:
YounghoCho
See Also:
  • Constructor Details

    • AttachmentManager

      public AttachmentManager() throws TorqueException
      Creates a new AttachmentManager instance.
      Throws:
      TorqueException - if an error occurs
  • Method Details

    • notifyListeners

      public void notifyListeners(Persistent om)
      DOCUMENT ME!
      Parameters:
      om - DOCUMENT ME!
    • getInstance

      public static Attachment getInstance(AttachmentTypeEnum typeEnum) throws Exception
      AttachmentType 에 해당하는 새 Attachment 를 생성한다.
      Parameters:
      typeEnum - attachment 유형
      Returns:
      새 Attachment
      Throws:
      Exception - 생성 중 오류가 발생한 경우
    • getInstance

      public static Attachment getInstance(AttachmentTypeEnum typeEnum, String mimeType) throws Exception
      AttachmentType 과 mime type 으로 새 Attachment 를 생성한다. Comment, Reason, PendingValue, URL 유형은 유형에 정해진 mime type 을 사용한다.
      Parameters:
      typeEnum - attachment 유형
      mimeType - mime type
      Returns:
      새 Attachment
      Throws:
      Exception - 생성 중 오류가 발생한 경우
    • getComment

      public static Attachment getComment(Item item, EasyDeskUser user) throws Exception
      Deprecated.
      더 이상 사용하지 않는다.
      item 에 대한 사용자의 comment attachment 를 생성한다.
      Parameters:
      item - 대상 item
      user - comment 를 작성하는 사용자
      Returns:
      comment Attachment
      Throws:
      Exception - 생성 중 오류가 발생한 경우
    • getComment

      public static Attachment getComment(Attachment attachment, Item item, EasyDeskUser user) throws Exception
      Deprecated.
      use getInstanceForComment
      DOCUMENT ME!
      Parameters:
      attachment - DOCUMENT ME!
      item - DOCUMENT ME!
      user - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getInstanceForComment

      public static Attachment getInstanceForComment(Attachment attachment, Item item, EasyDeskUser user) throws Exception
      DOCUMENT ME!
      Parameters:
      attachment - DOCUMENT ME!
      item - DOCUMENT ME!
      user - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getReason

      public static Attachment getReason(Attachment attachment, Item item, EasyDeskUser user) throws Exception
      DOCUMENT ME!
      Parameters:
      attachment - DOCUMENT ME!
      item - DOCUMENT ME!
      user - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getInstanceForReason

      public static Attachment getInstanceForReason(Attachment attachment, Item item, EasyDeskUser user) throws Exception
      DOCUMENT ME!
      Parameters:
      attachment - DOCUMENT ME!
      item - DOCUMENT ME!
      user - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getInstanceForPendingValue

      public static Attachment getInstanceForPendingValue(Item item, EasyDeskUser user) throws Exception
      pending attachment 를 생성한다.
      Parameters:
      item - 대상 item
      user - 작업하는 사용자
      Returns:
      pending value Attachment
      Throws:
      Exception - 생성 중 오류가 발생한 경우