java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.ObjectBean
All Implemented Interfaces:
Serializable, Comparable<ObjectBean>
Direct Known Subclasses:
LegacyObjectBean, MutableObjectBean

public abstract class ObjectBean extends Object implements Serializable, Comparable<ObjectBean>
See Also:
  • Field Details

    • OBJECT_KEY_FORMAT

      public static final String OBJECT_KEY_FORMAT
      The object key format should be used like String.format(OBJECT_KEY_FORMAT, objectSchemaKey, object.getId())
      See Also:
  • Constructor Details

    • ObjectBean

      public ObjectBean()
  • Method Details

    • getId

      public abstract Integer getId()
    • getLabel

      public abstract String getLabel()
    • getName

      @Deprecated public abstract String getName()
      Deprecated.
      This method will be removed in JSM 6. Use getLabel() instead.
    • getObjectKey

      public abstract String getObjectKey()
    • getCreated

      public abstract Date getCreated()
    • getUpdated

      public abstract Date getUpdated()
    • isHasAvatar

      public abstract boolean isHasAvatar()
    • getObjectTypeId

      public abstract Integer getObjectTypeId()
    • getArchivedDate

      public abstract Date getArchivedDate()
    • isArchived

      public abstract boolean isArchived()
    • getArchivedBy

      public abstract String getArchivedBy()
    • getObjectAttributeBeans

      @NotNull @Size(min=1) public abstract @NotNull @Size(min=1) List<? extends ObjectAttributeBean> getObjectAttributeBeans()
    • createMutable

      @Deprecated public MutableObjectBean createMutable()
      Deprecated.
      This method will be removed in JSM 6. Use MutableObjectBean.create(ObjectBean) instead
    • createMutable

      @Deprecated public <T extends MutableObjectBean> T createMutable(Class<T> clazz)
      Deprecated.
      This method will be removed in JSM 6. Use MutableObjectBean.create(ObjectBean, Class) instead
    • setId

      public void setId(Integer id)
    • setLabel

      @Deprecated public void setLabel(String label)
      Deprecated.
    • setName

      @Deprecated public void setName(String name)
      Deprecated.
    • setObjectKey

      public void setObjectKey(String objectKey)
    • setCreated

      public void setCreated(Date created)
    • setUpdated

      public void setUpdated(Date updated)
    • setHasAvatar

      public void setHasAvatar(boolean hasAvatar)
    • setObjectTypeId

      public void setObjectTypeId(Integer objectTypeId)
    • setArchived

      public void setArchived(boolean isArchived)
    • setArchivedBy

      public void setArchivedBy(String archivedBy)
    • setArchivedDate

      public void setArchivedDate(Date archivedDate)
    • deepEquals

      public boolean deepEquals(ObjectBean other)
      Compares this object bean together with all attributes to determine if they are equal
      Parameters:
      other - the other object bean
      Returns:
      true if equal otherwise false
    • toString

      public String toString()
      Do not change this
      Overrides:
      toString in class Object
    • getOutputString

      public String getOutputString()
    • toStringWithAttributeValues

      public String toStringWithAttributeValues()
    • createObjectAttributeBean

      public MutableObjectAttributeBean createObjectAttributeBean(ObjectTypeAttributeBean objectTypeAttributeBean)
    • compareTo

      public int compareTo(ObjectBean other)
      Specified by:
      compareTo in interface Comparable<ObjectBean>
    • defaultHashCodeImpl

      public int defaultHashCodeImpl()
    • defaultEqualsImpl

      public boolean defaultEqualsImpl(Object obj)