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 TypeMethodDescriptionvoidvoidcreateAce(String principalId, String[] grantedPrivilegeNames, String[] deniedPrivilegeNames, String order, Map<String, javax.jcr.Value> restrictions, Map<String, javax.jcr.Value[]> mvRestrictions, Set<String> removedRestrictionNames) voidcreateFileAndResourceNode(String name, InputStream data, String mimeType, long lastModified) voidvoidcreateNode(String name, String primaryNodeType, String[] mixinNodeTypes) voidcreateProperty(String name, int propertyType, String value) voidcreateProperty(String name, int propertyType, String[] values) voidcreateProperty(String name, Object value) voidcreateProperty(String name, Object[] values) voidvoidfinish()voidThe absolute entry path inside the content package ZIP for the generated docview.xmlbooleanswitchCurrentNode(String subPath, String newNodeType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
createNodein interfaceorg.apache.sling.jcr.contentloader.ContentCreator- Throws:
javax.jcr.RepositoryException
-
finishNode
public void finishNode() throws javax.jcr.RepositoryException- Specified by:
finishNodein interfaceorg.apache.sling.jcr.contentloader.ContentCreator- Throws:
javax.jcr.RepositoryException
-
finish
public void finish() throws javax.jcr.RepositoryException- Specified by:
finishin 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:
createPropertyin 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:
createPropertyin interfaceorg.apache.sling.jcr.contentloader.ContentCreator- Throws:
javax.jcr.RepositoryException
-
createProperty
- Specified by:
createPropertyin interfaceorg.apache.sling.jcr.contentloader.ContentCreator- Throws:
javax.jcr.RepositoryException
-
createProperty
- Specified by:
createPropertyin 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:
createFileAndResourceNodein interfaceorg.apache.sling.jcr.contentloader.ContentCreator- Throws:
javax.jcr.RepositoryException
-
switchCurrentNode
- Specified by:
switchCurrentNodein interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-
createUser
- Specified by:
createUserin interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-
createGroup
- Specified by:
createGroupin interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-
createAce
public void createAce(String principal, String[] grantedPrivileges, String[] deniedPrivileges, String order) - Specified by:
createAcein 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:
createAcein interfaceorg.apache.sling.jcr.contentloader.ContentCreator
-