Class NotificationAttachment

java.lang.Object
mc.core.model.system.NotificationAttachment
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity

@Entity public class NotificationAttachment extends Object implements IBaseEntity
link from notification to entity in system (but not the DB reference!) or to file. used for related complex entity or basket
See Also:
  • Constructor Details

    • NotificationAttachment

      public NotificationAttachment()
    • NotificationAttachment

      public NotificationAttachment(Notification notification)
    • NotificationAttachment

      public NotificationAttachment(Notification notification, String fileId, String filename)
    • NotificationAttachment

      public NotificationAttachment(Notification notification, IBaseEntity entity)
  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface IBaseEntity
    • setId

      public void setId(long id)
      Specified by:
      setId in interface IBaseEntity
    • getNotification

      public Notification getNotification()
    • setNotification

      public void setNotification(Notification notification)
    • getFileId

      public String getFileId()
    • setFileId

      public void setFileId(String fileId)
    • getFilename

      public String getFilename()
    • setFilename

      public void setFilename(String filename)
    • getAttachedEntityClass

      public String getAttachedEntityClass()
    • setAttachedEntityClass

      public void setAttachedEntityClass(String attachedEntityClass)
    • getAttachedEntityId

      public long getAttachedEntityId()
    • setAttachedEntityId

      public void setAttachedEntityId(long attachedEntityId)
    • setAttachedEntity

      public <T extends IBaseEntity> void setAttachedEntity(T entity)
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object