public interface MetadataService
| Modifier and Type | Method and Description |
|---|---|
String |
addMetadata(String nodetype,
boolean isDialog,
String role,
String content,
boolean isAddNew)
Add new nodetype and set property EXO_ROLES_PROP, EXO_TEMPLATE_FILE_PROP
for dialog template node or view template node if node doesn't exist
Set property EXO_ROLES_PROP, EXO_TEMPLATE_FILE_PROP
for dialog template node or view template node if node exists
|
String |
addMetadata(String nodetype,
boolean isDialog,
String role,
String content,
String label,
boolean isAddNew)
Add new nodetype and set property EXO_ROLES_PROP, EXO_TEMPLATE_FILE_PROP
for dialog template node or view template node if node doesn't exist
Set property EXO_ROLES_PROP, EXO_TEMPLATE_FILE_PROP
for dialog template node or view template node if node exists
|
List<javax.jcr.nodetype.NodeType> |
getAllMetadatasNodeType()
Get all NodeType in current repository with NodeType = exo:metadata
|
List<String> |
getExternalMetadataType()
Get all NodeType name that contains property that is not autocreated
and name of NodeType differs from exo:metadata
|
javax.jcr.Node |
getMetadata(String metaName)
Get the metadata node based on its name
|
String |
getMetadataLabel(String metaName)
Get metadata label based on its name
|
List<String> |
getMetadataList()
Get name of all NodeType in current repository
|
String |
getMetadataPath(String name,
boolean isDialog)
Get path to dialog template or view tempate node
|
String |
getMetadataRoles(String name,
boolean isDialog)
Get permission of template node
|
String |
getMetadataTemplate(String name,
boolean isDialog)
Get content of dialog template node or view template in current repository
|
boolean |
hasMetadata(String name)
Check node with given name exists or not below baseMetadataPath_ path in repository
|
void |
init()
Call all available in list of TemplatePlugin to
add some predefine template to current repository.
|
void |
removeMetadata(String nodetype)
Remove node named nodetype below baseMetadataPath_
|
List<String> getMetadataList() throws Exception
ExceptiongetAllMetadatasNodeType()List<javax.jcr.nodetype.NodeType> getAllMetadatasNodeType() throws Exception
ExceptionString addMetadata(String nodetype, boolean isDialog, String role, String content, boolean isAddNew) throws Exception
nodetype - Node name for processingisDialog - true for dialog templaterole - permissioncontent - content of templateisAddNew - false if nodetype exist in repository, true if notExceptionString addMetadata(String nodetype, boolean isDialog, String role, String content, String label, boolean isAddNew) throws Exception
nodetype - Node name for processingisDialog - true for dialog templaterole - permissioncontent - content of templatelabel - lable of metadataisAddNew - false if nodetype exist in repository, true if notExceptionvoid removeMetadata(String nodetype) throws Exception
nodetype - name of nodeExceptionList<String> getExternalMetadataType() throws Exception
ExceptionString getMetadataTemplate(String name, boolean isDialog) throws Exception
name - Node nameisDialog - true: Get dialog template content
false: Get view template contentExceptionString getMetadataPath(String name, boolean isDialog) throws Exception
name - Node nameisDialog - true: Get dialog template content
false: Get view template contentExceptionString getMetadataRoles(String name, boolean isDialog) throws Exception
name - Node nameisDialog - true: Get dialog template content
false: Get view template contentExceptionboolean hasMetadata(String name) throws Exception
name - Node nameExceptionvoid init() throws Exception
Exceptionjavax.jcr.Node getMetadata(String metaName) throws Exception
metaName - Name of metadataExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.