Class NotificationType

java.lang.Object
com.easydesk.om.BaseNotificationType
com.easydesk.om.NotificationType
All Implemented Interfaces:
Deletable, Identifiable<Integer>, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class NotificationType extends BaseNotificationType implements Deletable, Identifiable<Integer>
NotificationType, one to one corresponding to ActivitySetType Scope 에 따라서 Notification 대상이 결정된다. ActivitySetType 이 생성되면 동시에 따라서 생성된다. NotificationType Scope explain
  • Global --> Module 에서는 설정할 수 없다. ADMIN_CONFIGURE 를 가지고 있어야 한다. NotificationFiltering 이 적용되지 않는다. ( 법적인 공지, 역할 변경등 Global 개인 정보의 변경에 대한 대상자에게 통지등 )
  • Personal --> NotificationFiltering 이 적용되지 않는다. ( Password 변경등 Personal 개인 정보의 변경에 대한 대상자에게 통지등 )
Author:
Youngho Cho
  • Constructor Details

    • NotificationType

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

    • getId

      public Integer getId()
      Description copied from interface: Identifiable
      Get the Id of the Identifiable Entity.
      Specified by:
      getId in interface Identifiable<Integer>
      Returns:
      name which is unique field name key for { uidKeyName, queryKey } pair
    • setId

      public void setId(Integer id)
      Description copied from interface: Identifiable
      Sets the Id of the Identifiable Entity.
      Specified by:
      setId in interface Identifiable<Integer>
      Parameters:
      id - The new Id of the entity
    • 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 BaseNotificationType
      Throws:
      Exception
    • getName

      public String getName() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - 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 - 삭제 중 오류가 발생한 경우
    • getTemplate

      public String getTemplate()
      설정이 안되면 ActivtySetType Name 을 구한다. TODO : Notification 에서 Velocity template Engine 를 계속 사용할 지 여부를 결정해야 한다.
      Overrides:
      getTemplate in class BaseNotificationType
      Returns:
      template
    • getOwnerUser

      public EasyDeskUser getOwnerUser() throws Exception
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!