public abstract class ProtectedItemModifier extends Object
ProtectedItemModifier
: An abstract helper class to allow classes
residing outside of the core package to modify and remove protected items.
The protected item definitions are required in order not to have security
relevant content being changed through common item operations but forcing
the usage of the corresponding APIs, which assert that implementation
specific constraints are not violated.Modifier | Constructor and Description |
---|---|
protected |
ProtectedItemModifier() |
protected |
ProtectedItemModifier(int permission) |
Modifier and Type | Method and Description |
---|---|
protected NodeImpl |
addNode(NodeImpl parentImpl,
Name name,
Name ntName) |
protected NodeImpl |
addNode(NodeImpl parentImpl,
Name name,
Name ntName,
NodeId nodeId) |
protected void |
markModified(NodeImpl parentImpl) |
protected <T> T |
performProtected(SessionImpl session,
SessionOperation<T> operation) |
protected void |
removeItem(ItemImpl itemImpl) |
protected javax.jcr.Property |
setProperty(NodeImpl parentImpl,
Name name,
javax.jcr.Value value) |
protected javax.jcr.Property |
setProperty(NodeImpl parentImpl,
Name name,
javax.jcr.Value[] values) |
protected javax.jcr.Property |
setProperty(NodeImpl parentImpl,
Name name,
javax.jcr.Value[] values,
int type) |
protected javax.jcr.Property |
setProperty(NodeImpl parentImpl,
Name name,
javax.jcr.Value value,
boolean ignorePermissions) |
protected ProtectedItemModifier()
protected ProtectedItemModifier(int permission)
protected NodeImpl addNode(NodeImpl parentImpl, Name name, Name ntName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected NodeImpl addNode(NodeImpl parentImpl, Name name, Name ntName, NodeId nodeId) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Property setProperty(NodeImpl parentImpl, Name name, javax.jcr.Value value) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Property setProperty(NodeImpl parentImpl, Name name, javax.jcr.Value value, boolean ignorePermissions) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Property setProperty(NodeImpl parentImpl, Name name, javax.jcr.Value[] values) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Property setProperty(NodeImpl parentImpl, Name name, javax.jcr.Value[] values, int type) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void removeItem(ItemImpl itemImpl) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void markModified(NodeImpl parentImpl) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected <T> T performProtected(SessionImpl session, SessionOperation<T> operation) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.