public class JcrServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements JcrService
| Constructor and Description |
|---|
JcrServiceImpl() |
| 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) |
void |
setProperty(String repository,
String workspace,
String path,
String name,
Object 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) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic JcrServiceImpl()
public String getRequestedURI()
JcrServicegetRequestedURI in interface JcrServicepublic String getUserName() throws RemoteException
JcrServicegetUserName in interface JcrServiceRemoteExceptionpublic Collection<RepositoryName> getRepositories() throws RemoteException
JcrServicegetRepositories in interface JcrServiceRemoteException - if there is a problem communicating with a remote servicepublic Collection<RepositoryName> findRepositories(String criteria) throws RemoteException
JcrServicefindRepositories in interface JcrServicecriteria - the parameter for searching repositoryRemoteException - if there is a problem communicating with a remote servicepublic String[] getWorkspaces(String repositoryName) throws RemoteException
JcrServicegetWorkspaces in interface JcrServicerepositoryName - the name of the repository.RemoteExceptionpublic void login(String userName, String password) throws RemoteException
JcrServicelogin in interface JcrServiceuserName - the name of the userpassword - the user's passwordRemoteException - if there is a problem using the repositorypublic String logout()
JcrServicelogout in interface JcrServicepublic JcrNode node(String repository, String workspace, String path) throws RemoteException
JcrServicenode in interface JcrServiceRemoteExceptionpublic Collection<JcrNode> childNodes(String repository, String workspace, String path, int index, int count) throws RemoteException
JcrServicechildNodes in interface JcrServiceRemoteExceptionpublic JcrRepositoryDescriptor repositoryInfo(String repository) throws RemoteException
JcrServicerepositoryInfo in interface JcrServicerepository - the repositoryRemoteExceptionpublic ResultSet query(String repository, String workspace, String text, String lang) throws RemoteException
JcrServicequery in interface JcrServicetext - the query text.lang - query language nameRemoteException - if there is a problem using the repositorypublic String[] supportedQueryLanguages(String repository, String workspace) throws RemoteException
JcrServicesupportedQueryLanguages in interface JcrServiceRemoteException - if there is a problem using the repositorypublic JcrNode addNode(String repository, String workspace, String path, String name, String primaryType) throws RemoteException
JcrServiceaddNode in interface JcrServicepath - 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 repositorypublic void removeNode(String repository, String workspace, String path) throws RemoteException
JcrServiceremoveNode in interface JcrServicepath - the pass to the node to be deleted.RemoteException - if there is a problem using the repositorypublic void addMixin(String repository, String workspace, String path, String mixin) throws RemoteException
JcrServiceaddMixin in interface JcrServicepath - the path to the nodemixin - mixin to addRemoteException - Any exception on the server sidepublic void removeMixin(String repository, String workspace, String path, String mixin) throws RemoteException
JcrServiceremoveMixin in interface JcrServicepath - the path to the nodemixin - mixin to removeRemoteException - any server side exception.public void setProperty(JcrNode node, String name, String value) throws RemoteException
setProperty in interface JcrServiceRemoteExceptionpublic void setProperty(JcrNode node, String name, Boolean value) throws RemoteException
setProperty in interface JcrServiceRemoteExceptionpublic void setProperty(JcrNode node, String name, Date value) throws RemoteException
setProperty in interface JcrServiceRemoteExceptionpublic void setProperty(String repository, String workspace, String path, String name, Object value) throws RemoteException
RemoteExceptionpublic void addAccessList(String repository, String workspace, String path, String principal) throws RemoteException
JcrServiceaddAccessList in interface JcrServicepath - the path to the node.principal - the principal nameRemoteExceptionpublic void removeAccessList(String repository, String workspace, String path, String principal) throws RemoteException
JcrServiceremoveAccessList in interface JcrServiceRemoteExceptionpublic String[] getPrimaryTypes(String repository, String workspace, String superType, boolean allowAbstract) throws RemoteException
JcrServicegetPrimaryTypes in interface JcrServiceallowAbstract - true if allow to load abstract node types.RemoteExceptionpublic String[] getMixinTypes(String repository, String workspace, boolean allowAbstract) throws RemoteException
JcrServicegetMixinTypes in interface JcrServiceallowAbstract - true if allow to load abstract node types.RemoteExceptionpublic void save(String repository, String workspace) throws RemoteException
JcrServicesave in interface JcrServiceRemoteException - if there is a problem using the repositorypublic void updateAccessList(String repository, String workspace, String path, String principal, JcrPermission permission, boolean enabled) throws RemoteException
updateAccessList in interface JcrServiceRemoteExceptionpublic Collection<JcrNodeType> nodeTypes(String repository, String workspace) throws RemoteException
JcrServicenodeTypes in interface JcrServiceRemoteException - if there is a problem using the repositorypublic void renameNode(String repository, String workspace, String path, String name) throws RemoteException
renameNode in interface JcrServiceRemoteExceptionpublic void backup(String repository, String name, BackupParams params) throws RemoteException
backup in interface JcrServiceRemoteExceptionpublic void restore(String repository, String name, RestoreParams params) throws RemoteException
restore in interface JcrServiceRemoteExceptionpublic void export(String repository, String workspace, String path, String location, boolean skipBinary, boolean noRecurse) throws RemoteException
export in interface JcrServiceRemoteExceptionpublic void importXML(String repository, String workspace, String path, String location, int option) throws RemoteException
importXML in interface JcrServiceRemoteExceptionpublic void refreshSession(String repository, String workspace, boolean keepChanges) throws RemoteException
JcrServicerefreshSession in interface JcrServicerepository - the repository nameworkspace - the workspace namekeepChanges - true if session should keep modification and false
otherwiseRemoteExceptionpublic Collection<Stats> getValueStats(String repository, String param, String tu) throws RemoteException
JcrServicegetValueStats in interface JcrServiceparam - value metric nametu - time window nameRemoteExceptionpublic Collection<Stats> getDurationStats(String repository, String param, String tu) throws RemoteException
JcrServicegetDurationStats in interface JcrServiceparam - duration metric nametu - time window nameRemoteExceptionpublic String[] getValueMetrics() throws RemoteException
JcrServicegetValueMetrics in interface JcrServiceRemoteExceptionpublic String[] getDurationMetrics() throws RemoteException
JcrServicegetDurationMetrics in interface JcrServiceRemoteExceptionpublic String[] getTimeUnits() throws RemoteException
JcrServicegetTimeUnits in interface JcrServiceRemoteExceptionCopyright © 2008–2018 JBoss, a division of Red Hat. All rights reserved.