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:
Extensible
,Secure<AccessControlEntry>
,Serializable
A template collects a set of attributesets ant is itself an extensible
object.
- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
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, id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new entry, replacing a previous one with the same groupId.boolean
getAccessControlEntry
(long groupId) int
hashCode()
void
setAccessControlList
(Set<AccessControlEntry> accessControlList) void
setTemplateAttributes
(Map<String, TemplateAttribute> templateAttributes) void
setValidation
(String validation) Methods inherited from class com.logicaldoc.core.metadata.AbstractAttributeSet
getAttribute, getAttributeAtPosition, getAttributeNames, getAttributeNames, getAttributes, getDescription, getLabel, getName, getReadonly, getTemplate, getTemplateAttribute, getTemplateId, getTemplateName, getType, getValue, getValueAttributes, getValues, removeAttribute, setAttribute, setAttributes, setDescription, setLabel, setName, setReadonly, setTemplate, setTemplateId, setTemplateName, setType, setValue, setValues
Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
getTemplateAttributes
- Specified by:
getTemplateAttributes
in classAbstractAttributeSet
-
setTemplateAttributes
- Specified by:
setTemplateAttributes
in classAbstractAttributeSet
-
getValidation
-
setValidation
-
getAccessControlList
- Specified by:
getAccessControlList
in interfaceSecure<AccessControlEntry>
-
setAccessControlList
- Specified by:
setAccessControlList
in interfaceSecure<AccessControlEntry>
-
getAccessControlEntry
- Specified by:
getAccessControlEntry
in interfaceSecure<AccessControlEntry>
-
addAccessControlEntry
Description copied from interface:Secure
Adds a new entry, replacing a previous one with the same groupId.- Specified by:
addAccessControlEntry
in interfaceSecure<AccessControlEntry>
- Parameters:
ace
- the access control entry to add
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractAttributeSet
-
equals
- Overrides:
equals
in classAbstractAttributeSet
-