@ProviderType
public interface ContentCreator
ContentCreator is used by the ContentReader to create the actual content.| Modifier and Type | Method and Description |
|---|---|
void |
createAce(java.lang.String principal,
java.lang.String[] grantedPrivileges,
java.lang.String[] deniedPrivileges,
java.lang.String order)
Creates an Access Control Entry for the current node for the specified
principal and privileges.
|
default void |
createAce(java.lang.String principal,
java.lang.String[] grantedPrivileges,
java.lang.String[] deniedPrivileges,
java.lang.String order,
java.util.Map<java.lang.String,javax.jcr.Value> restrictions,
java.util.Map<java.lang.String,javax.jcr.Value[]> mvRestrictions,
java.util.Set<java.lang.String> removedRestrictionNames)
Creates an Access Control Entry for the current node for the specified
principal and privileges.
|
void |
createFileAndResourceNode(java.lang.String name,
java.io.InputStream data,
java.lang.String mimeType,
long lastModified)
Create a file and a resource node.
|
void |
createGroup(java.lang.String name,
java.lang.String[] members,
java.util.Map<java.lang.String,java.lang.Object> extraProperties)
Create a Group in the jackrabbit UserManager
|
void |
createNode(java.lang.String name,
java.lang.String primaryNodeType,
java.lang.String[] mixinNodeTypes)
Create a new node.
|
void |
createProperty(java.lang.String name,
int propertyType,
java.lang.String value)
Create a new property to the current node.
|
void |
createProperty(java.lang.String name,
int propertyType,
java.lang.String[] values)
Create a new multi value property to the current node.
|
void |
createProperty(java.lang.String name,
java.lang.Object value)
Add a new property to the current node.
|
void |
createProperty(java.lang.String name,
java.lang.Object[] values)
Add a new multi value property to the current node.
|
void |
createUser(java.lang.String name,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.Object> extraProperties)
Create a User in the jackrabbit UserManager
|
void |
finish()
Indicates that the import is finished
|
void |
finishNode()
Indicates that a node is finished.
|
default javax.jcr.Node |
getParent()
Gets the current parent Node
|
boolean |
switchCurrentNode(java.lang.String subPath,
java.lang.String newNodeType)
Switch the current node to the path (which must be relative
to the current node).
|
void createNode(java.lang.String name,
java.lang.String primaryNodeType,
java.lang.String[] mixinNodeTypes)
throws javax.jcr.RepositoryException
finishNode() must be called.name - The name of the node.primaryNodeType - The primary node type or null.mixinNodeTypes - The mixin node types or null.javax.jcr.RepositoryException - If anything goes wrong.void finishNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - If anything goes wrong.void finish()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - If anything goes wrong.void createProperty(java.lang.String name,
int propertyType,
java.lang.String value)
throws javax.jcr.RepositoryException
name - The property name.propertyType - The type of the property.value - The string value.javax.jcr.RepositoryException - If anything goes wrong.void createProperty(java.lang.String name,
int propertyType,
java.lang.String[] values)
throws javax.jcr.RepositoryException
name - The property name.propertyType - The type of the property.values - The string values.javax.jcr.RepositoryException - If anything goes wrong.void createProperty(java.lang.String name,
java.lang.Object value)
throws javax.jcr.RepositoryException
name - The property name.value - The value.javax.jcr.RepositoryException - If anything goes wrong.void createProperty(java.lang.String name,
java.lang.Object[] values)
throws javax.jcr.RepositoryException
name - The property name.values - The values.javax.jcr.RepositoryException - If anything goes wrong.void createFileAndResourceNode(java.lang.String name,
java.io.InputStream data,
java.lang.String mimeType,
long lastModified)
throws javax.jcr.RepositoryException
finishNode()
to be on the same level as before the file creation.name - The name of the file nodedata - The data of the filemimeType - The mime type or nulllastModified - The last modified or -1javax.jcr.RepositoryException - If anything goes wrong.boolean switchCurrentNode(java.lang.String subPath,
java.lang.String newNodeType)
throws javax.jcr.RepositoryException
finishNode()
must be called.subPath - The relative pathnewNodeType - Node type for newly created nodes.javax.jcr.RepositoryException - If anything goes wrong.void createUser(java.lang.String name,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.Object> extraProperties)
throws javax.jcr.RepositoryException
name - the name of the userpassword - the password of the userextraProperties - extra properties to assign to the created userjavax.jcr.RepositoryException - If anything goes wrong.void createGroup(java.lang.String name,
java.lang.String[] members,
java.util.Map<java.lang.String,java.lang.Object> extraProperties)
throws javax.jcr.RepositoryException
name - the name of the groupmembers - the members of the group (principal names)extraProperties - extra properties to assign to the created groupjavax.jcr.RepositoryExceptionvoid createAce(java.lang.String principal,
java.lang.String[] grantedPrivileges,
java.lang.String[] deniedPrivileges,
java.lang.String order)
throws javax.jcr.RepositoryException
principal - the user or group id for the ACEgrantedPrivileges - the set of privileges to grant the principaldeniedPrivileges - the set of privileges to deny the principal (for users only)order - specifies the position of the ACE in the containing ACL. (may be null)
Value should be one of these:
| first | Place the target ACE as the first amongst its siblings |
| last | Place the target ACE as the last amongst its siblings |
| before xyz | Place the target ACE immediately before the sibling whose name is xyz |
| after xyz | Place the target ACE immediately after the sibling whose name is xyz |
| numeric | Place the target ACE at the specified index |
javax.jcr.RepositoryException - If anything goes wrong.default void createAce(java.lang.String principal,
java.lang.String[] grantedPrivileges,
java.lang.String[] deniedPrivileges,
java.lang.String order,
java.util.Map<java.lang.String,javax.jcr.Value> restrictions,
java.util.Map<java.lang.String,javax.jcr.Value[]> mvRestrictions,
java.util.Set<java.lang.String> removedRestrictionNames)
throws javax.jcr.RepositoryException
principal - the user or group id for the ACEgrantedPrivileges - the set of privileges to grant the principaldeniedPrivileges - the set of privileges to deny the principal (for users only)order - specifies the position of the ACE in the containing ACL. (may be null)
Value should be one of these:
| first | Place the target ACE as the first amongst its siblings |
| last | Place the target ACE as the last amongst its siblings |
| before xyz | Place the target ACE immediately before the sibling whose name is xyz |
| after xyz | Place the target ACE immediately after the sibling whose name is xyz |
| numeric | Place the target ACE at the specified index |
restrictions - specifies additional Map of single-value restrictions to apply. (optional)mvRestrictions - specifies additional Map of multi-value restrictions to apply. (optional)removedRestrictionNames - optional set of restriction names that should be removed (if they already exist).javax.jcr.RepositoryException - If anything goes wrong.default javax.jcr.Node getParent()
Copyright © 2022 The Apache Software Foundation. All rights reserved.