Package com.logicaldoc.core.metadata
Class Template
- java.lang.Object
-
- com.logicaldoc.core.PersistentObject
-
- com.logicaldoc.core.metadata.ExtensibleObject
-
- com.logicaldoc.core.metadata.AbstractAttributeSet
-
- com.logicaldoc.core.metadata.Template
-
- All Implemented Interfaces:
Serializable
public class Template extends AbstractAttributeSet
A template collects a set of attributesets ant is itself an extensible object.- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.logicaldoc.core.metadata.AbstractAttributeSet
TYPE_DEFAULT
-
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTemplateGroup(TemplateGroup tg)
Adds a new element, substituting a previous one with the same groupId.Set<TemplateGroup>
getTemplateGroups()
String
getValidation()
TemplateGroup
getWorkflowGroup(long groupId)
void
setTemplateGroups(Set<TemplateGroup> templateGroups)
void
setValidation(String validation)
-
Methods inherited from class com.logicaldoc.core.metadata.AbstractAttributeSet
getDescription, getName, getReadonly, getType, setDescription, setName, setReadonly, setType
-
Methods inherited from class com.logicaldoc.core.metadata.ExtensibleObject
getAttribute, getAttributeAtPosition, getAttributeNames, getAttributeNames, getAttributes, getTemplate, getTemplateId, getTemplateName, getValue, getValueAttributes, getValues, removeAttribute, setAttribute, setAttributes, setTemplate, setTemplateId, setTemplateName, setValue, setValues, setValues
-
Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
-
-
-
Method Detail
-
getTemplateGroups
public Set<TemplateGroup> getTemplateGroups()
-
setTemplateGroups
public void setTemplateGroups(Set<TemplateGroup> templateGroups)
-
addTemplateGroup
public void addTemplateGroup(TemplateGroup tg)
Adds a new element, substituting a previous one with the same groupId.- Parameters:
tg
- the template group
-
getWorkflowGroup
public TemplateGroup getWorkflowGroup(long groupId)
-
getValidation
public String getValidation()
-
setValidation
public void setValidation(String validation)
-
-