Package org.apache.jackrabbit.core
Class ProtectedItemModifier
- java.lang.Object
-
- org.apache.jackrabbit.core.ProtectedItemModifier
-
- Direct Known Subclasses:
ACLEditor
,ACLEditor
,RetentionManagerImpl
,TokenProvider
,UserManagerImpl
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProtectedItemModifier()
protected
ProtectedItemModifier(int permission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
addNode
protected NodeImpl addNode(NodeImpl parentImpl, Name name, Name ntName) throws RepositoryException
- Throws:
RepositoryException
-
addNode
protected NodeImpl addNode(NodeImpl parentImpl, Name name, Name ntName, NodeId nodeId) throws RepositoryException
- Throws:
RepositoryException
-
setProperty
protected Property setProperty(NodeImpl parentImpl, Name name, Value value) throws RepositoryException
- Throws:
RepositoryException
-
setProperty
protected Property setProperty(NodeImpl parentImpl, Name name, Value value, boolean ignorePermissions) throws RepositoryException
- Throws:
RepositoryException
-
setProperty
protected Property setProperty(NodeImpl parentImpl, Name name, Value[] values) throws RepositoryException
- Throws:
RepositoryException
-
setProperty
protected Property setProperty(NodeImpl parentImpl, Name name, Value[] values, int type) throws RepositoryException
- Throws:
RepositoryException
-
removeItem
protected void removeItem(ItemImpl itemImpl) throws RepositoryException
- Throws:
RepositoryException
-
markModified
protected void markModified(NodeImpl parentImpl) throws RepositoryException
- Throws:
RepositoryException
-
performProtected
protected <T> T performProtected(SessionImpl session, SessionOperation<T> operation) throws RepositoryException
- Throws:
RepositoryException
-
-