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_DEFAULTFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new entry, replacing a previous one with the same groupId.booleangetAccessControlEntries(Set<Long> groupIds) Retrieves the set of entries related to one of the specified groupsgetAccessControlEntry(long groupId) inthashCode()voidsetAccessControlList(Set<AccessControlEntry> accessControlList) voidsetInitialization(String initialization) voidsetTemplateAttributes(Map<String, Attribute> templateAttributes) voidsetValidation(String validation) Methods inherited from class com.logicaldoc.core.metadata.AbstractAttributeSet
getAttribute, getAttributeAtPosition, getAttributeNames, getAttributeNames, getAttributes, getDescription, getLabel, getName, getTemplate, getTemplateAttribute, getTemplateId, getTemplateName, getType, getValue, getValueAttributes, getValues, isReadonly, removeAttribute, setAttribute, setAttributes, setDescription, setLabel, setName, setReadonly, setTemplate, setTemplateId, setTemplateName, setType, setValue, setValuesMethods 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:
getTemplateAttributesin classAbstractAttributeSet
-
setTemplateAttributes
- Specified by:
setTemplateAttributesin classAbstractAttributeSet
-
getValidation
-
setValidation
-
getInitialization
-
setInitialization
-
getAccessControlList
- Specified by:
getAccessControlListin interfaceSecure<AccessControlEntry>
-
setAccessControlList
- Specified by:
setAccessControlListin interfaceSecure<AccessControlEntry>
-
getAccessControlEntry
- Specified by:
getAccessControlEntryin interfaceSecure<AccessControlEntry>
-
getAccessControlEntries
Description copied from interface:SecureRetrieves the set of entries related to one of the specified groups- Specified by:
getAccessControlEntriesin interfaceSecure<AccessControlEntry>- Parameters:
groupIds- identifiers of groups- Returns:
- The set of matching entries
-
addAccessControlEntry
Description copied from interface:SecureAdds a new entry, replacing a previous one with the same groupId.- Specified by:
addAccessControlEntryin interfaceSecure<AccessControlEntry>- Parameters:
ace- the access control entry to add
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAttributeSet
-
equals
- Overrides:
equalsin classAbstractAttributeSet
-