eXo JCR :: Applications :: Browser Demo 1.15.4-GA

org.exoplatform.applications.jcr.browser
Class JCRBrowser

java.lang.Object
  extended by org.exoplatform.applications.jcr.browser.JCRBrowser

public class JCRBrowser
extends Object

Created by The eXo Platform SAS.
Date: 27.05.2008
JavaBean for JCRBrowser sample application.
Since JCR 1.11 Browser supports Ext Repository synchronization.

Version:
$Id: JCRBrowser.java 111 2008-11-11 11:11:11Z peterit $
Author:
Peter Nedonosko

Field Summary
protected  List<String> errors
           
protected  javax.jcr.Node node
           
protected  ManageableRepository repository
           
protected  RepositoryService repositoryService
           
protected  javax.jcr.Session session
           
 
Constructor Summary
JCRBrowser()
           
 
Method Summary
 void addError(Throwable error)
           
 String[] getErrorsAndClean()
           
 javax.jcr.Node getNode()
          Get browser current node.
 ManageableRepository getRepository()
          Get browser repository.
 RepositoryService getRepositoryService()
           
 javax.jcr.Session getSession()
          Get browser JCR session.
 boolean isAsynchronousReplicationActive()
          Tell if Asynchronous Replication service available.
 boolean isAsynchronousReplicationPresent()
          Tell if Asynchronous Replication service available.
 boolean isErrorsFound()
           
 void refreshNode()
          Refreshing current node with node which got with current session.
 void runSynchronization()
          Runs synchronization process if service is present.
 void setNode(String absPath)
          Sets current node used by JCRBrowser.
 void setRepository(ManageableRepository repository)
          Set browser repository.
 void setRepositoryService(RepositoryService repositoryService)
           
 void setSession(javax.jcr.Session session)
          Set browser JCR session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repositoryService

protected RepositoryService repositoryService

repository

protected ManageableRepository repository

session

protected javax.jcr.Session session

node

protected javax.jcr.Node node

errors

protected List<String> errors
Constructor Detail

JCRBrowser

public JCRBrowser()
Method Detail

getRepository

public ManageableRepository getRepository()
Get browser repository.

Returns:
the repository

setRepository

public void setRepository(ManageableRepository repository)
Set browser repository.

Parameters:
repository - the repository to set

getSession

public javax.jcr.Session getSession()
Get browser JCR session.

Returns:
the session

setSession

public void setSession(javax.jcr.Session session)
                throws javax.jcr.RepositoryException
Set browser JCR session.

Parameters:
session - the session to set
Throws:
javax.jcr.RepositoryException

getNode

public javax.jcr.Node getNode()
Get browser current node.

Returns:
the node

refreshNode

public void refreshNode()
                 throws javax.jcr.RepositoryException
Refreshing current node with node which got with current session.

Throws:
javax.jcr.RepositoryException

setNode

public void setNode(String absPath)
             throws javax.jcr.RepositoryException
Sets current node used by JCRBrowser.

Parameters:
absPath - absolute path only
Throws:
javax.jcr.RepositoryException

addError

public void addError(Throwable error)

isErrorsFound

public boolean isErrorsFound()

getErrorsAndClean

public String[] getErrorsAndClean()

getRepositoryService

public RepositoryService getRepositoryService()
Returns:
the repositoryService

setRepositoryService

public void setRepositoryService(RepositoryService repositoryService)
Parameters:
repositoryService - the repositoryService to set

isAsynchronousReplicationPresent

public boolean isAsynchronousReplicationPresent()
Tell if Asynchronous Replication service available.

Returns:
boolean

isAsynchronousReplicationActive

public boolean isAsynchronousReplicationActive()
Tell if Asynchronous Replication service available.

Returns:
boolean

runSynchronization

public void runSynchronization()
Runs synchronization process if service is present.


eXo JCR :: Applications :: Browser Demo 1.15.4-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.