Package org.apache.jackrabbit.jcr2spi.state

Examples of org.apache.jackrabbit.jcr2spi.state.PropertyState.addListener()


                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here


                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here

                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation. {}", e.getMessage());
                }
            }
        }
View Full Code Here

                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here

                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here

            // be aware of another session removing the lock -> listen to
            // status changes of the jcr:lockIsDeep property.
            if (cacheBehaviour == CacheBehaviour.OBSERVATION) {
                try {
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Internal error", e);
                }
            }
        }
View Full Code Here

                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here

                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here

                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here

                    if (!lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        // force reloading of the lock holding node.
                        itemManager.getItem(lockHoldingState.getNodeEntry());
                    }
                    PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                    ps.addListener(this);
                } catch (RepositoryException e) {
                    log.warn("Unable to retrieve jcr:isDeep property after lock creation.", e.getMessage());
                }
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.