Class ExtensibleObject

java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.ExtensibleObject
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Generic, SecurableExtensibleObject

public abstract class ExtensibleObject extends PersistentObject
An extensible object is able to store an undeterminate number of attributes. Each attribute has a name and a string value.
Since:
4.0
Author:
Marco Meschieri - LogicalDOC
See Also:
  • Constructor Details

    • ExtensibleObject

      public ExtensibleObject()
  • Method Details

    • getTemplateId

      public Long getTemplateId()
    • setTemplateId

      public void setTemplateId(Long templateId)
    • getTemplateName

      public String getTemplateName()
    • setTemplateName

      public void setTemplateName(String templateName)
    • getTemplate

      public Template getTemplate()
    • setTemplate

      public void setTemplate(Template template)
    • getAttributes

      public Map<String,Attribute> getAttributes()
    • setAttributes

      public void setAttributes(Map<String,Attribute> attributes)
    • getValueAttributes

      public List<Attribute> getValueAttributes(String name)
    • getValues

      public List<Object> getValues(String name)
    • getValue

      public Object getValue(String name)
    • getAttribute

      public Attribute getAttribute(String name)
    • getAttributeNames

      public List<String> getAttributeNames()
    • getAttributeNames

      public List<String> getAttributeNames(long setId)
    • removeAttribute

      public void removeAttribute(String name)
    • getAttributeAtPosition

      public Attribute getAttributeAtPosition(int position)
    • setValues

      public List<Attribute> setValues(String name, List<Object> values)
    • setAttribute

      public void setAttribute(String name, Attribute attribute)
      Puts a new attribute, if the attribute already exists his position and label are left untouched
      Parameters:
      name - name of the attribute
      attribute - the attribute instance
    • setValue

      public Attribute setValue(String name, Object value)