Class NotificationStatus

java.lang.Object
com.easydesk.om.BaseNotificationStatus
com.easydesk.om.NotificationStatus
All Implemented Interfaces:
Deletable, Serializable, Comparable<NotificationStatus>, ColumnAccessByName, ObjectModel, Persistent

public class NotificationStatus extends BaseNotificationStatus implements Comparable<NotificationStatus>, Deletable
DOCUMENT ME!
Version:
$id: NotificationStatus.java $Revision$, 01-29-22 11:11:54 PM KST
Author:
YounghoCho
  • Field Details

  • Constructor Details

    • NotificationStatus

      public NotificationStatus()
      Creates a new NotificationStatus object.
    • NotificationStatus

      public NotificationStatus(EasyDeskUser receiver, Activity activity, Integer managerId)
      Create a new NotificationStatus entry.
      Parameters:
      receiver - 통지를 받을 사용자
      activity - 통지 대상 Activity
      managerId - 통지 방법(notification manager) id
  • Method Details

    • delete

      public boolean delete(EasyDeskUser user) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • delete

      public boolean delete(EasyDeskUser user, boolean overrideLock) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      overrideLock - lock 이 걸려 있어도 삭제할지 여부
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • save

      public void save() throws Exception
      Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseNotificationStatus
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • save

      public void save(Connection dbCon) throws Exception
      DOCUMENT ME!
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseNotificationStatus
      Parameters:
      dbCon - DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getActivitySetType

      public ActivitySetType getActivitySetType() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getItem

      public Item getItem() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getCreator

      public EasyDeskUser getCreator() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getReceiver

      public EasyDeskUser getReceiver() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getUniqueId

      public String getUniqueId() throws Exception
      이 Object 의 uniqueId
      Returns:
      uniqueId
      Throws:
      Exception - uniqueId 를 구하는 중 오류가 발생한 경우
    • getStatusLabel

      public String getStatusLabel()
      Transform the database representation of the status (INTEGER) into a readable label (String)
      Returns:
      string representation
    • compareTo

      public int compareTo(NotificationStatus o2)
      Compare two Notification objects, following this criteria:
      • managerId
      • ItemId
      • EasyDeskUserImpl
      • Activity type
      • Timestamp
      Specified by:
      compareTo in interface Comparable<NotificationStatus>
    • setError

      public void setError(Object error)
      이 notificationStatus 를 처리하는 과정에서 발생한 Error 를 임시 보관한다.
      Parameters:
      error -
    • getError

      public Object getError()
      이 notificationStatus 를 처리하는 과정에서 발생한 Error 를 구한다.
      Returns:
    • getComment

      public String[] getComment(String type)
      DOCUMENT ME!
      Parameters:
      type - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • addComment

      public String addComment(NotificationStatus.CommentType type, String msg) throws Exception
      Parameters:
      type -
      msg -
      Returns:
      add string
      Throws:
      Exception