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 Property |
setProperty(NodeImpl parentImpl,
Name name,
Value value) |
protected Property |
setProperty(NodeImpl parentImpl,
Name name,
Value[] values) |
protected Property |
setProperty(NodeImpl parentImpl,
Name name,
Value[] values,
int type) |
protected Property |
setProperty(NodeImpl parentImpl,
Name name,
Value value,
boolean ignorePermissions) |
protected ProtectedItemModifier()
protected ProtectedItemModifier(int permission)
protected NodeImpl addNode(NodeImpl parentImpl, Name name, Name ntName) throws RepositoryException
RepositoryException
protected NodeImpl addNode(NodeImpl parentImpl, Name name, Name ntName, NodeId nodeId) throws RepositoryException
RepositoryException
protected Property setProperty(NodeImpl parentImpl, Name name, Value value) throws RepositoryException
RepositoryException
protected Property setProperty(NodeImpl parentImpl, Name name, Value value, boolean ignorePermissions) throws RepositoryException
RepositoryException
protected Property setProperty(NodeImpl parentImpl, Name name, Value[] values) throws RepositoryException
RepositoryException
protected Property setProperty(NodeImpl parentImpl, Name name, Value[] values, int type) throws RepositoryException
RepositoryException
protected void removeItem(ItemImpl itemImpl) throws RepositoryException
RepositoryException
protected void markModified(NodeImpl parentImpl) throws RepositoryException
RepositoryException
protected <T> T performProtected(SessionImpl session, SessionOperation<T> operation) throws RepositoryException
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.