Package com.logicaldoc.core.metadata
Class Template
- java.lang.Object
-
- com.logicaldoc.core.PersistentObject
-
- com.logicaldoc.core.metadata.ExtensibleObject
-
- com.logicaldoc.core.metadata.Template
-
- All Implemented Interfaces:
Serializable
public class Template extends ExtensibleObject
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 Modifier and Type Field Description static int
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.String
getDescription()
String
getName()
int
getReadonly()
Set<TemplateGroup>
getTemplateGroups()
int
getType()
String
getValidation()
TemplateGroup
getWorkflowGroup(long groupId)
void
setDescription(String description)
void
setName(String name)
void
setReadonly(int readonly)
void
setTemplateGroups(Set<TemplateGroup> templateGroups)
void
setType(int type)
void
setValidation(String validation)
-
Methods inherited from class com.logicaldoc.core.metadata.ExtensibleObject
getAttribute, getAttributeAtPosition, getAttributeNames, getAttributeNames, getAttributes, getValue, getValueAttributes, getValues, removeAttribute, setAttribute, setAttributes, 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
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getReadonly
public int getReadonly()
-
setReadonly
public void setReadonly(int readonly)
-
getType
public int getType()
-
setType
public void setType(int type)
-
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)
-
-