|
Ontimize Document Management 0.035EN | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ontimize.dms.jcr.JcrWrapperAbstract
com.ontimize.dms.jcr.JcrWrapperPropertyAbstract
com.ontimize.dms.jcr.JcrPropertyBase
public abstract class JcrPropertyBase
| Field Summary | |
|---|---|
protected static java.util.List |
ALLOWED_STATUS_TYPES
|
protected static java.lang.String |
DEFAULT_DENY_READ_PATH
|
protected static java.lang.String |
DEFAULT_DENY_WRITE_PATH
|
protected static java.util.List |
DENY_READ
Internal properties. |
protected static java.util.List |
DENY_WRITE
Internal properties. |
protected static java.lang.String |
JCR_PREFIX
Internal JCR properties prefix. |
| Fields inherited from class com.ontimize.dms.jcr.JcrWrapperAbstract |
|---|
MSG_CREATE_NM |
| Constructor Summary | |
|---|---|
JcrPropertyBase(JcrNode node,
java.lang.Boolean hasInternal)
|
|
| Method Summary | |
|---|---|
void |
add(java.util.Map properties,
java.util.Map alias)
|
static void |
addToDenyReadList(java.lang.String resource)
|
static void |
addToDenyWriteList(java.lang.String resource)
|
protected static void |
addToList(java.util.List list,
java.lang.String resource)
|
static boolean |
canRead(java.lang.String name)
|
static boolean |
canWrite(java.lang.String name)
|
static java.util.List |
checkDisabled(Property[] property)
|
protected void |
checkEditable()
|
protected void |
checkLock()
|
static Value[] |
convert(Property property)
|
static java.util.Map |
convert(Property[] property)
|
JcrResult |
copy(Node source,
java.util.List properties)
|
protected JcrLock |
createEmptyLock(Status status)
|
static EntityResult |
createEmptyResult(java.util.List keys,
java.util.Map alias)
|
static java.util.Hashtable |
createMap(boolean absolute,
java.lang.String base,
Node node,
java.util.List keys,
java.util.Map alias)
|
static java.util.Hashtable |
createMap(boolean absolute,
java.lang.String base,
Node node,
java.util.List keys,
java.util.Map alias,
boolean hasInternal)
|
static EntityResult |
createResult(boolean absolute,
java.lang.String base,
Node node,
java.util.List keys,
java.util.Map alias)
|
static EntityResult |
createResult(JcrNodeIterator iterator,
java.util.List keys,
java.util.Map alias)
|
java.util.List |
doAdd(java.util.Map properties,
java.util.Map alias,
java.util.List excluded)
|
java.util.List |
doCopy(Node source,
java.util.List properties)
Copy the given properties list from the source node to the target node. |
java.util.Map |
doGet(java.util.List properties,
java.util.Map alias,
java.util.List excluded)
|
java.util.Map |
doGetWithout(java.util.List exclude,
java.util.Map alias)
|
JcrResult |
doRemove(java.util.List excluded)
|
JcrResult |
doRemove(java.util.List properties,
java.util.List excluded)
|
JcrResult |
doRemove(java.util.Map properties,
java.util.List excluded)
|
java.util.List |
doSet(java.util.Map properties,
java.util.Map alias,
java.util.List excluded)
|
java.util.Map |
get(java.util.List properties,
java.util.Map alias)
|
protected abstract Node |
getInternalNode(JcrNode node,
java.lang.Boolean hasInternal)
Return the internal node without the properties list. |
protected abstract Node |
getInternalNode(Node parent)
|
java.lang.Object |
getValue(java.lang.String key)
|
java.util.Map |
getWithout(java.util.List exclude,
java.util.Map alias)
|
boolean |
has(java.util.Map properties)
|
JcrLock |
isLocked()
Check if the current node is locked (directory or file). |
JcrLock |
lock(Status status)
Tags the current element as locked with the Status. |
JcrResult |
remove(java.util.List properties,
java.util.List excluded)
|
JcrResult |
remove(java.util.Map properties,
java.util.List excluded)
|
JcrResult |
set(Property[] properties,
java.util.Map alias,
java.util.List excluded)
|
JcrLock |
unlock()
|
JcrLock |
unlock(boolean emptyLength)
|
JcrLock |
unlock(Status status)
|
JcrLock |
unlock(Status[] status)
|
| Methods inherited from class com.ontimize.dms.jcr.JcrWrapperPropertyAbstract |
|---|
getProperty, hasProperty, setProperty |
| Methods inherited from class com.ontimize.dms.jcr.JcrWrapperAbstract |
|---|
createNodeManager, createNodeManager, getConverter, getInnerSession, getInternal, getSession, getWrapper, isSaveInSessionEnabled, save, save, setConverter, setInnerSession, setInternal, setSaveInSession, setSession, setWrapper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ontimize.dms.jcr.JcrWrapperProperty |
|---|
getProperty, hasProperty, setProperty |
| Methods inherited from interface com.ontimize.dms.jcr.JcrWrapper |
|---|
getInnerSession, getInternal, getSession, getWrapper, save |
| Field Detail |
|---|
protected static final java.lang.String JCR_PREFIX
protected static final java.lang.String DEFAULT_DENY_READ_PATH
protected static java.util.List DENY_READ
protected static final java.lang.String DEFAULT_DENY_WRITE_PATH
protected static java.util.List DENY_WRITE
protected static java.util.List ALLOWED_STATUS_TYPES
| Constructor Detail |
|---|
public JcrPropertyBase(JcrNode node,
java.lang.Boolean hasInternal)
throws RepositoryException
RepositoryException| Method Detail |
|---|
protected static void addToList(java.util.List list,
java.lang.String resource)
public static boolean canRead(java.lang.String name)
public static void addToDenyReadList(java.lang.String resource)
public static boolean canWrite(java.lang.String name)
public static void addToDenyWriteList(java.lang.String resource)
protected abstract Node getInternalNode(JcrNode node,
java.lang.Boolean hasInternal)
throws RepositoryException
Return the internal node without the properties list.
Is created if the node doesn't exists.
RepositoryException
public java.lang.Object getValue(java.lang.String key)
throws RepositoryException
getValue in interface JcrPropertyRepositoryException
public java.util.Map get(java.util.List properties,
java.util.Map alias)
throws RepositoryException
get in interface JcrPropertyRepositoryException
public java.util.Map doGet(java.util.List properties,
java.util.Map alias,
java.util.List excluded)
throws RepositoryException
doGet in interface JcrPropertyRepositoryException
public java.util.Map getWithout(java.util.List exclude,
java.util.Map alias)
throws RepositoryException
getWithout in interface JcrPropertyRepositoryException
public java.util.Map doGetWithout(java.util.List exclude,
java.util.Map alias)
throws RepositoryException
RepositoryException
public boolean has(java.util.Map properties)
throws RepositoryException
has in interface JcrPropertyRepositoryException
public void add(java.util.Map properties,
java.util.Map alias)
throws RepositoryException
add in interface JcrPropertyRepositoryException
public java.util.List doAdd(java.util.Map properties,
java.util.Map alias,
java.util.List excluded)
throws RepositoryException
doAdd in interface JcrPropertyRepositoryException
public JcrResult set(Property[] properties,
java.util.Map alias,
java.util.List excluded)
throws RepositoryException
set in interface JcrPropertyRepositoryException
public java.util.List doSet(java.util.Map properties,
java.util.Map alias,
java.util.List excluded)
throws RepositoryException
RepositoryException
public JcrResult copy(Node source,
java.util.List properties)
throws RepositoryException
copy in interface JcrPropertyRepositoryException
protected abstract Node getInternalNode(Node parent)
throws RepositoryException
RepositoryException
public java.util.List doCopy(Node source,
java.util.List properties)
throws RepositoryException
Copy the given properties list from the source node to the target node.
If the property already exists in the current node, doesn't nothing.
doCopy in interface JcrPropertysource - Node source with the properties to copy.properties - List with the properties to copy.
RepositoryException
public JcrResult remove(java.util.List properties,
java.util.List excluded)
throws RepositoryException
remove in interface JcrPropertyRepositoryException
public JcrResult doRemove(java.util.List properties,
java.util.List excluded)
throws RepositoryException
doRemove in interface JcrPropertyRepositoryException
public JcrResult remove(java.util.Map properties,
java.util.List excluded)
throws RepositoryException
remove in interface JcrPropertyRepositoryException
public JcrResult doRemove(java.util.Map properties,
java.util.List excluded)
throws RepositoryException
RepositoryException
public JcrResult doRemove(java.util.List excluded)
throws RepositoryException
RepositoryException
public JcrLock isLocked()
throws RepositoryException
JcrLockableCheck if the current node is locked (directory or file).
Directory is locked if any of this children is locked.
File is locked if STREAM_STATUS exists.
isLocked in interface JcrLockableRepositoryException - if JCR exception ocurrs.
protected void checkEditable()
throws RepositoryException
RepositoryException
protected void checkLock()
throws LockException,
RepositoryException
LockException
RepositoryException
public JcrLock lock(Status status)
throws RepositoryException
JcrLockableTags the current element as locked with the Status.
lock in interface JcrLockablestatus - New status.
RepositoryException - if JCR exception ocurrs.
protected JcrLock createEmptyLock(Status status)
throws RepositoryException
RepositoryException
public JcrLock unlock()
throws RepositoryException
unlock in interface JcrLockableRepositoryException
public JcrLock unlock(boolean emptyLength)
throws RepositoryException
JcrLockable
unlock in interface JcrLockableemptyLength - Allows to set a zero length to reset status.
RepositoryException
public JcrLock unlock(Status status)
throws RepositoryException
unlock in interface JcrLockableRepositoryException
public JcrLock unlock(Status[] status)
throws RepositoryException
unlock in interface JcrLockableRepositoryExceptionpublic static java.util.List checkDisabled(Property[] property)
public static java.util.Map convert(Property[] property)
throws RepositoryException
RepositoryException
public static Value[] convert(Property property)
throws RepositoryException
RepositoryException
public static java.util.Hashtable createMap(boolean absolute,
java.lang.String base,
Node node,
java.util.List keys,
java.util.Map alias)
throws RepositoryException
RepositoryException
public static java.util.Hashtable createMap(boolean absolute,
java.lang.String base,
Node node,
java.util.List keys,
java.util.Map alias,
boolean hasInternal)
throws RepositoryException
RepositoryException
public static EntityResult createResult(boolean absolute,
java.lang.String base,
Node node,
java.util.List keys,
java.util.Map alias)
throws RepositoryException
RepositoryException
public static EntityResult createResult(JcrNodeIterator iterator,
java.util.List keys,
java.util.Map alias)
throws RepositoryException
RepositoryException
public static EntityResult createEmptyResult(java.util.List keys,
java.util.Map alias)
|
Ontimize Document Management | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||