@RemoteServiceRelativePath(value="jcr") public interface JcrService extends com.google.gwt.user.client.rpc.RemoteService
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessList(String repository,
String workspace,
String path,
String principal)
Creates empty access list for given principal.
|
void |
addMixin(String repository,
String workspace,
String path,
String mixin)
Adds mixin to the node.
|
JcrNode |
addNode(String repository,
String workspace,
String path,
String name,
String primaryType)
Adds new node.
|
void |
backup(String repository,
String name,
BackupParams params) |
Collection<JcrNode> |
childNodes(String repository,
String workspace,
String path,
int index,
int count)
Gets set of child nodes for the node at the given path.
|
void |
export(String repository,
String workspace,
String path,
String location,
boolean skipBinary,
boolean noRecurse) |
Collection<RepositoryName> |
findRepositories(String criteria)
Searches repositories with given criteria
|
String[] |
getDurationMetrics()
Gets names of available duration metrics.
|
Collection<Stats> |
getDurationStats(String repository,
String param,
String tu)
Obtains repository metrics.
|
String[] |
getMixinTypes(String repository,
String workspace,
boolean allowAbstract)
Reads list of mixin types.
|
String[] |
getPrimaryTypes(String repository,
String workspace,
String superType,
boolean allowAbstract)
Reads list of primary types.
|
Collection<RepositoryName> |
getRepositories()
Lists all available repositories.
|
String |
getRequestedURI()
Initial URI requested by user.
|
String[] |
getTimeUnits()
Gets possible time frames.
|
String |
getUserName()
Currently logged in user.
|
String[] |
getValueMetrics()
Gets names of available value metrics.
|
Collection<Stats> |
getValueStats(String repository,
String param,
String tu)
Obtains repository metrics.
|
String[] |
getWorkspaces(String repositoryName)
Enlists workspaces available for the given repository and user previously
logged in.
|
void |
importXML(String repository,
String workspace,
String path,
String location,
int option) |
void |
login(String userName,
String password)
Provides access for the given user to the given repository.
|
String |
logout()
Logs out from all repositories.
|
JcrNode |
node(String repository,
String workspace,
String path)
Gets node at the given path.
|
Collection<JcrNodeType> |
nodeTypes(String repository,
String workspace)
Gets all registered node types.
|
ResultSet |
query(String repository,
String workspace,
String text,
String lang)
Executes query.
|
void |
refreshSession(String repository,
String workspace,
boolean keepChanges)
Reload session to the given workspace and repository.
|
void |
removeAccessList(String repository,
String workspace,
String path,
String principal)
Deletes access list.
|
void |
removeMixin(String repository,
String workspace,
String path,
String mixin)
Removes mixin from the given node.
|
void |
removeNode(String repository,
String workspace,
String path)
Deletes node.
|
void |
renameNode(String repository,
String workspace,
String path,
String name) |
JcrRepositoryDescriptor |
repositoryInfo(String repository)
Gets repository capabilities.
|
void |
restore(String repository,
String name,
RestoreParams params) |
void |
save(String repository,
String workspace)
Saves changes in the current session.
|
void |
setProperty(JcrNode node,
String name,
Boolean value) |
void |
setProperty(JcrNode node,
String name,
Date value) |
void |
setProperty(JcrNode node,
String name,
String value) |
String[] |
supportedQueryLanguages(String repository,
String workspace)
Gets supported query languages.
|
void |
updateAccessList(String repository,
String workspace,
String path,
String principal,
JcrPermission permission,
boolean enabled) |
String getRequestedURI()
String getUserName() throws RemoteException
RemoteExceptionCollection<RepositoryName> getRepositories() throws RemoteException
RemoteException - if there is a problem communicating with a remote serviceCollection<RepositoryName> findRepositories(String criteria) throws RemoteException
criteria - the parameter for searching repositoryRemoteException - if there is a problem communicating with a remote serviceString[] getWorkspaces(String repositoryName) throws RemoteException
repositoryName - the name of the repository.RemoteExceptionvoid login(String userName, String password) throws RemoteException
userName - the name of the userpassword - the user's passwordRemoteException - if there is a problem using the repositoryJcrNode node(String repository, String workspace, String path) throws RemoteException
repository - workspace - path - RemoteExceptionCollection<JcrNode> childNodes(String repository, String workspace, String path, int index, int count) throws RemoteException
repository - workspace - path - index - count - RemoteExceptionJcrRepositoryDescriptor repositoryInfo(String repository) throws RemoteException
repository - the repositoryRemoteExceptionCollection<JcrNodeType> nodeTypes(String repository, String workspace) throws RemoteException
repository - workspace - RemoteException - if there is a problem using the repositoryString[] supportedQueryLanguages(String repository, String workspace) throws RemoteException
repository - workspace - RemoteException - if there is a problem using the repositoryResultSet query(String repository, String workspace, String text, String lang) throws RemoteException
repository - workspace - text - the query text.lang - query language nameRemoteException - if there is a problem using the repositoryJcrNode addNode(String repository, String workspace, String path, String name, String primaryType) throws RemoteException
repository - workspace - path - the path to the parent nodename - the name of node to addprimaryType - the primary type of the node to add.RemoteException - if there is a problem using the repositoryvoid renameNode(String repository, String workspace, String path, String name) throws RemoteException
repository - workspace - path - name - RemoteExceptionvoid removeNode(String repository, String workspace, String path) throws RemoteException
repository - workspace - path - the pass to the node to be deleted.RemoteException - if there is a problem using the repositoryvoid addMixin(String repository, String workspace, String path, String mixin) throws RemoteException
repository - workspace - path - the path to the nodemixin - mixin to addRemoteException - Any exception on the server sidevoid removeMixin(String repository, String workspace, String path, String mixin) throws RemoteException
repository - workspace - path - the path to the nodemixin - mixin to removeRemoteException - any server side exception.void setProperty(JcrNode node, String name, String value) throws RemoteException
RemoteExceptionvoid setProperty(JcrNode node, String name, Boolean value) throws RemoteException
RemoteExceptionvoid setProperty(JcrNode node, String name, Date value) throws RemoteException
RemoteExceptionvoid addAccessList(String repository, String workspace, String path, String principal) throws RemoteException
repository - workspace - path - the path to the node.principal - the principal nameRemoteExceptionvoid removeAccessList(String repository, String workspace, String path, String principal) throws RemoteException
repository - workspace - path - principal - RemoteExceptionvoid updateAccessList(String repository, String workspace, String path, String principal, JcrPermission permission, boolean enabled) throws RemoteException
RemoteExceptionString[] getPrimaryTypes(String repository, String workspace, String superType, boolean allowAbstract) throws RemoteException
repository - workspace - superType - allowAbstract - true if allow to load abstract node types.RemoteExceptionString[] getMixinTypes(String repository, String workspace, boolean allowAbstract) throws RemoteException
repository - workspace - allowAbstract - true if allow to load abstract node types.RemoteExceptionvoid save(String repository, String workspace) throws RemoteException
repository - workspace - RemoteException - if there is a problem using the repositoryvoid backup(String repository, String name, BackupParams params) throws RemoteException
RemoteExceptionvoid restore(String repository, String name, RestoreParams params) throws RemoteException
RemoteExceptionvoid export(String repository, String workspace, String path, String location, boolean skipBinary, boolean noRecurse) throws RemoteException
RemoteExceptionvoid importXML(String repository, String workspace, String path, String location, int option) throws RemoteException
RemoteExceptionvoid refreshSession(String repository, String workspace, boolean keepChanges) throws RemoteException
repository - the repository nameworkspace - the workspace namekeepChanges - true if session should keep modification and false
otherwiseRemoteExceptionCollection<Stats> getValueStats(String repository, String param, String tu) throws RemoteException
repository - param - value metric nametu - time window nameRemoteExceptionCollection<Stats> getDurationStats(String repository, String param, String tu) throws RemoteException
repository - param - duration metric nametu - time window nameRemoteExceptionString[] getValueMetrics() throws RemoteException
RemoteExceptionString[] getDurationMetrics() throws RemoteException
RemoteExceptionString[] getTimeUnits() throws RemoteException
RemoteExceptionCopyright © 2008–2018 JBoss, a division of Red Hat. All rights reserved.