Class VaultContentXMLContentCreator
java.lang.Object
org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.VaultContentXMLContentCreator
- All Implemented Interfaces:
org.apache.sling.jcr.contentloader.ContentCreator
public class VaultContentXMLContentCreator
extends Object
implements org.apache.sling.jcr.contentloader.ContentCreator
ContentCreator implementation to write FileVault enhanced DocView XML files (to be packaged into a VaultPackage)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
createAce
(String principalId, String[] grantedPrivilegeNames, String[] deniedPrivilegeNames, String order, Map<String, javax.jcr.Value> restrictions, Map<String, javax.jcr.Value[]> mvRestrictions, Set<String> removedRestrictionNames) void
createFileAndResourceNode
(String name, InputStream data, String mimeType, long lastModified) void
void
createNode
(String name, String primaryNodeType, String[] mixinNodeTypes) void
createProperty
(String name, int propertyType, String value) void
createProperty
(String name, int propertyType, String[] values) void
createProperty
(String name, Object value) void
createProperty
(String name, Object[] values) void
void
finish()
void
The absolute entry path inside the content package ZIP for the generated docview.xmlboolean
switchCurrentNode
(String subPath, String newNodeType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sling.jcr.contentloader.ContentCreator
createAce, getParent
-
Method Details
-
getContentPackageEntryPath
The absolute entry path inside the content package ZIP for the generated docview.xml- Throws:
javax.jcr.NamespaceException
-
createNode
public void createNode(String name, String primaryNodeType, String[] mixinNodeTypes) throws javax.jcr.RepositoryException - Specified by:
createNode
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
finishNode
public void finishNode() throws javax.jcr.RepositoryException- Specified by:
finishNode
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
finish
public void finish() throws javax.jcr.RepositoryException- Specified by:
finish
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
createProperty
public void createProperty(String name, int propertyType, String value) throws javax.jcr.RepositoryException - Specified by:
createProperty
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
createProperty
public void createProperty(String name, int propertyType, String[] values) throws javax.jcr.RepositoryException - Specified by:
createProperty
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
createProperty
- Specified by:
createProperty
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
createProperty
- Specified by:
createProperty
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
createFileAndResourceNode
public void createFileAndResourceNode(String name, InputStream data, String mimeType, long lastModified) throws javax.jcr.RepositoryException - Specified by:
createFileAndResourceNode
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
- Throws:
javax.jcr.RepositoryException
-
switchCurrentNode
- Specified by:
switchCurrentNode
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-
createUser
- Specified by:
createUser
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-
createGroup
- Specified by:
createGroup
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-
createAce
public void createAce(String principal, String[] grantedPrivileges, String[] deniedPrivileges, String order) - Specified by:
createAce
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-
createAce
public void createAce(String principalId, String[] grantedPrivilegeNames, String[] deniedPrivilegeNames, String order, Map<String, javax.jcr.Value> restrictions, Map<String, javax.jcr.Value[]> mvRestrictions, Set<String> removedRestrictionNames) - Specified by:
createAce
in interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-