org.apache.jackrabbit.core
Class ProtectedItemModifier

java.lang.Object
  extended by org.apache.jackrabbit.core.ProtectedItemModifier
Direct Known Subclasses:
ACLEditor, ACLEditor, RetentionManagerImpl, 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
protected ProtectedItemModifier()
           
protected ProtectedItemModifier(int permission)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtectedItemModifier

protected ProtectedItemModifier()

ProtectedItemModifier

protected ProtectedItemModifier(int permission)
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


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.