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