Class NotificationFilter

java.lang.Object
com.easydesk.om.BaseNotificationFilter
com.easydesk.om.NotificationFilter
All Implemented Interfaces:
Deletable, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class NotificationFilter extends BaseNotificationFilter implements Deletable
Author:
Youngho Cho
  • Constructor Details

    • NotificationFilter

      public NotificationFilter()
      새로운 NotificationFilter 인스턴스를 생성한다.
  • Method Details

    • 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 BaseNotificationFilter
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • getNotificationManager

      public AttributeOption getNotificationManager() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • setNotificationManager

      public void setNotificationManager(AttributeOption option) throws TorqueException
      DOCUMENT ME!
      Parameters:
      option - DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getModule

      public Module getModule() throws TorqueException
      filter 가 적용되는 Module 을 구한다.
      Returns:
      Module
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • setModule

      public void setModule(Module module)
      DOCUMENT ME!
      Parameters:
      module - DOCUMENT ME!
    • getEasyDeskUser

      public EasyDeskUser getEasyDeskUser() throws TorqueException
      filter 의 대상 사용자를 구한다.
      Returns:
      EasyDeskUser
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • setEasyDeskUser

      public void setEasyDeskUser(EasyDeskUser user)
      DOCUMENT ME!
      Parameters:
      user - DOCUMENT ME!
    • isEnabledFor

      public static boolean isEnabledFor(Module module, EasyDeskUser receiver, ActivitySetType type, Integer ManagerId) throws TorqueException
      determines whether user has enabled notifications for given activityType in given module.
      Parameters:
      module - 대상 Module
      receiver - 통지를 받을 사용자
      type - 대상 ActivitySetType
      ManagerId - 통지 방법(notification manager) id
      Returns:
      true/false
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isEnabledFor

      public static boolean isEnabledFor(Module module, EasyDeskUser receiver) throws TorqueException
      determines whether specific user has enabled notifications in given module.
      Parameters:
      module - 대상 Module
      receiver - 통지를 받을 사용자
      Returns:
      true/false
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isDeleted

      public boolean isDeleted()
      DOCUMENT ME!
      Overrides:
      isDeleted in class BaseNotificationFilter
      Returns:
      DOCUMENT ME!
    • 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 - 삭제 중 오류가 발생한 경우
    • delete

      public void delete() throws TorqueException
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!