|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.registry.common.services.RegistryAbstractAdmin
org.wso2.carbon.registry.ws.api.WSRegistry
public class WSRegistry
| Field Summary |
|---|
| Fields inherited from class org.wso2.carbon.registry.common.services.RegistryAbstractAdmin |
|---|
SERVELT_SESSION |
| Fields inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
axisConfig, configurationContext |
| Constructor Summary | |
|---|---|
WSRegistry()
Constructs a new Registry WS API instance. |
|
| Method Summary | |
|---|---|
boolean |
addAspect(String name,
org.wso2.carbon.registry.core.Aspect aspect)
|
void |
addAssociation(String sourcePath,
String targetPath,
String associationType)
Adds an association stating that the resource at "associationPath" associate on the resource at "associationPath". |
String |
addComment(String s,
org.wso2.carbon.registry.api.Comment comment)
|
String |
addComment(String resourcePath,
org.wso2.carbon.registry.core.Comment comment)
|
void |
applyTag(String resourcePath,
String tag)
Applies the given tag to the resource in the given path. |
void |
associateAspect(String resourcePath,
String aspect)
Associate an Aspect with a resource. |
void |
beginTransaction()
|
void |
commitTransaction()
|
String |
copy(String sourcePath,
String targetPath)
Copy a resource in the registry. |
void |
createLink(String path,
String target)
Create a symbolic link or mount a registry |
void |
createLink(String path,
String target,
String subTargetPath)
|
void |
createLinkWithSubTarget(String path,
String target,
String subTargetPath)
Create a symbolic link or mount a registy |
void |
createVersion(String path)
Creates a new version of the resource. |
void |
delete(String path)
Deletes the resource at the given path. |
void |
dump(String path,
Writer writer)
|
void |
editComment(String commentPath,
String text)
Change the text of an existing comment. |
org.wso2.carbon.registry.core.Collection |
executeQuery(String path,
Map parameters)
|
org.wso2.carbon.registry.core.Resource |
get(String path)
|
org.wso2.carbon.registry.core.Collection |
get(String path,
int start,
int pageSize)
|
WSResourceData |
getAll(String path)
|
org.wso2.carbon.registry.core.Association[] |
getAllAssociations(String resourcePath)
Get all associations of the given resource. |
String[] |
getAspectActions(String resourcePath,
String aspectName)
Obtain a list of the available actions on a given resource for a given Aspect. |
org.wso2.carbon.registry.core.Association[] |
getAssociations(String resourcePath,
String associationType)
Get all associations of the given resource for a give association type. |
String[] |
getAvailableAspects()
Get a list of the available Aspects for this Registry |
float |
getAverageRating(String resourcePath)
Returns the average rating for the given resource. |
org.wso2.carbon.registry.core.Collection |
getChildCollection(String path,
int start,
int pageSize)
|
int |
getChildCount(String path)
|
String[] |
getCollectionContent(String path)
Returns content of a specific Collection. |
org.wso2.carbon.registry.core.Comment[] |
getComments(String resourcePath)
|
DataHandler |
getContent(String path)
Returns content of a Resource at the specified path. |
String |
getEventingServiceURL(String path)
Gets the URL of the WS-Eventing Service. |
org.wso2.carbon.registry.core.LogEntryCollection |
getLogCollection(String resourcePath,
int action,
String userName,
Date from,
Date to,
boolean recentFirst)
This method is not supported in WS-API |
org.wso2.carbon.registry.core.LogEntry[] |
getLogs(String resourcePath,
int action,
String userName,
Date from,
Date to,
boolean recentFirst)
Returns the logs of the activities occurred in the Registry. |
org.wso2.carbon.registry.core.Resource |
getMetaData(String path)
|
int |
getRating(String path,
String userName)
Returns the rating given to the specified resource by the given user |
org.wso2.carbon.registry.core.config.RegistryContext |
getRegistryContext()
|
org.wso2.carbon.registry.core.TaggedResourcePath[] |
getResourcePathsWithTag(String tag)
|
org.wso2.carbon.registry.core.Tag[] |
getTags(String resourcePath)
Returns all tags used for tagging the given resource. |
String[] |
getVersions(String path)
Get a list of all versions of the resource located at the given path. |
String |
importResource(String s,
String s1,
org.wso2.carbon.registry.api.Resource resource)
|
String |
importResource(String suggestedPath,
String sourceURL,
org.wso2.carbon.registry.core.Resource metadata)
|
void |
invokeAspect(String resourcePath,
String aspectName,
String action)
This invokes an action on a specified Aspect, which must be associated with the Resource at the given path. |
void |
invokeAspect(String resourcePath,
String aspectName,
String action,
Map<String,String> parameters)
This invokes an action on a specified Aspect, which must be associated with the Resource at the given path. |
void |
invokeAspectNoParam(String resourcePath,
String aspectName,
String action)
This invokes an action on a specified Aspect, which must be associated with the Resource at the given path. |
void |
invokeAspectWithParam(String resourcePath,
String aspectName,
String action,
String[] keys,
String[] values)
This invokes an action on a specified Aspect, which must be associated with the Resource at the given path. |
String |
move(String currentPath,
String newPath)
Move or rename a resource in the registry. |
org.wso2.carbon.registry.core.Collection |
newCollection()
|
org.wso2.carbon.registry.core.Resource |
newResource()
|
String |
put(String s,
org.wso2.carbon.registry.api.Resource resource)
|
String |
put(String suggestedPath,
org.wso2.carbon.registry.core.Resource resource)
|
void |
rateResource(String resourcePath,
int rating)
Rate the given resource. |
boolean |
removeAspect(String name)
Remove the given aspect from registry context. |
void |
removeAssociation(String sourcePath,
String targetPath,
String associationType)
To remove an association for a given resource |
void |
removeComment(String commentPath)
Delete an existing comment. |
void |
removeLink(String path)
Remove a symbolic link or mount point created |
void |
removeTag(String path,
String tag)
Removes a tag on a resource. |
boolean |
removeVersionHistory(String path,
long snapshotId)
|
String |
rename(String currentPath,
String newName)
Move or rename a resource in the registry. |
boolean |
resourceExists(String path)
Check whether a resource exists at the given path |
void |
restore(String path,
Reader reader)
|
void |
restoreVersion(String versionPath)
Reverts a resource to a given version. |
void |
rollbackTransaction()
|
org.wso2.carbon.registry.core.Collection |
searchContent(String keywords)
|
void |
setEventingServiceURL(String path,
String eventingServiceURL)
Sets the URL of the WS-Eventing Service. |
String |
WSaddComment(String resourcePath,
WSComment comment)
Adds a comment to a resource. |
DataHandler |
wsDump(String path)
|
WSCollection |
WSexecuteQuery(String path,
String[] key,
String[] value)
Executes a custom query which lives at the given path in the Registry. |
WSResource |
WSget(String path)
Returns the resource at the given path. |
WSAssociation[] |
WSgetAllAssociations(String resoucePath)
This is the web service friendly version of getAllAssociations(String resourcePath) method |
WSAssociation[] |
WSgetAssociations(String resourcePath,
String associationType)
Get all associations of the given resource for a give association type. |
WSCollection |
WSgetChildCollection(String path,
int start,
int pageSize)
|
WSComment[] |
WSgetComments(String resourcePath)
Get all comments for the given resource. |
WSLogEntry[] |
WSgetLogs(String resourcePath,
int action,
String userName,
Date from,
Date to,
boolean recentFirst)
Returns the logs of the activities occurred in the Registry. |
WSResource |
WSgetMetaData(String path)
Returns the meta data of the resource at the given path. |
WSTaggedResourcePath[] |
WSgetResourcePathsWithTag(String tag)
Returns the paths of all Resources that are tagged with the given tag. |
WSComment |
WSgetSingleComment(String commentPath)
Get the comment for the given comment path. |
WSTag[] |
WSgetTags(String resourcePath)
Returns all tags used for tagging the given resource. |
WSCollection |
WSgetWithPageSize(String path,
int start,
int pageSize)
Returns the WSCollection according to the Collection at the given path, with the content paginated according to the arguments. |
String |
WSimportResource(String suggestedPath,
String sourceURL,
WSResource metadata)
Creates a resource by fetching the resource content from the given URL. |
WSCollection |
WSnewCollection()
Returns a new WSCollection instance. |
WSResource |
WSnewResource()
Returns a new WSResource instance. |
String |
WSput(String suggestedPath,
WSResource wsResource)
Adds or updates resources in the registry. |
void |
wsRestore(String path,
DataHandler dataHandler)
|
WSCollection |
WSsearchContent(String keywords)
Search the content of resources |
| Methods inherited from class org.wso2.carbon.registry.common.services.RegistryAbstractAdmin |
|---|
getRootRegistry, getRootRegistry |
| Methods inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSRegistry()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException| Method Detail |
|---|
public org.wso2.carbon.registry.core.Resource newResource()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
newResource in interface org.wso2.carbon.registry.api.CoreRegistryorg.wso2.carbon.registry.core.exceptions.RegistryException
public org.wso2.carbon.registry.core.Collection newCollection()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
newCollection in interface org.wso2.carbon.registry.api.CoreRegistryorg.wso2.carbon.registry.core.exceptions.RegistryException
public WSResource WSnewResource()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public WSCollection WSnewCollection()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public org.wso2.carbon.registry.core.Resource get(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
get in interface org.wso2.carbon.registry.api.CoreRegistryorg.wso2.carbon.registry.core.exceptions.RegistryException
public WSResource WSget(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - Path of the resource. e.g. /project1/server/deployment.xml
org.wso2.carbon.registry.core.exceptions.RegistryException - is thrown if the resource is not in the registry
public org.wso2.carbon.registry.core.Resource getMetaData(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getMetaData in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public String importResource(String s,
String s1,
org.wso2.carbon.registry.api.Resource resource)
throws org.wso2.carbon.registry.api.RegistryException
importResource in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.api.RegistryException
public WSResource WSgetMetaData(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - Path of the resource. e.g. /project1/server/deployment.xml
org.wso2.carbon.registry.core.exceptions.RegistryException - is thrown if the resource is not in the registry
public org.wso2.carbon.registry.core.Collection get(String path,
int start,
int pageSize)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
get in interface org.wso2.carbon.registry.api.CoreRegistryorg.wso2.carbon.registry.core.exceptions.RegistryException
public org.wso2.carbon.registry.core.Collection getChildCollection(String path,
int start,
int pageSize)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public WSCollection WSgetWithPageSize(String path,
int start,
int pageSize)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - the path of the collection. MUST point to a collection!start - the initial index of the child to return. If there are fewer children than
the specified value, a RegistryException will be thrown.pageSize - the maximum number of results to return
org.wso2.carbon.registry.core.exceptions.RegistryException - if the resource is not found, or if the path does not
reference a Collection, or if the start index is greater than
the number of children.
public WSCollection WSgetChildCollection(String path,
int start,
int pageSize)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public boolean resourceExists(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourceExists in interface org.wso2.carbon.registry.api.CoreRegistrypath - Path of the resource to be checked
org.wso2.carbon.registry.core.exceptions.RegistryException - if an error occurs
public String put(String s,
org.wso2.carbon.registry.api.Resource resource)
throws org.wso2.carbon.registry.api.RegistryException
put in interface org.wso2.carbon.registry.api.CoreRegistryorg.wso2.carbon.registry.api.RegistryException
public String put(String suggestedPath,
org.wso2.carbon.registry.core.Resource resource)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public String WSput(String suggestedPath,
WSResource wsResource)
throws org.wso2.carbon.registry.core.exceptions.RegistryException,
IOException
suggestedPath - the path which we'd like to use for the new resource.wsResource - WSResource instance for the new resource. This will be converted to a Resource instance internally.
org.wso2.carbon.registry.core.exceptions.RegistryException
IOException
public void delete(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
delete in interface org.wso2.carbon.registry.api.CoreRegistrypath - Path of the resource to be deleted.
org.wso2.carbon.registry.core.exceptions.RegistryException - is thrown depending on the implementation.
public String importResource(String suggestedPath,
String sourceURL,
org.wso2.carbon.registry.core.Resource metadata)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public String WSimportResource(String suggestedPath,
String sourceURL,
WSResource metadata)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
suggestedPath - path where we'd like to add the new resource. Although this path is
specified by the caller of the method, resource may not be actually
added at this path.sourceURL - where to fetch the resource contentmetadata - a WSResource instance containing meta data parameters
org.wso2.carbon.registry.core.exceptions.RegistryException - if we couldn't get or store the new resource
public String rename(String currentPath,
String newName)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
rename in interface org.wso2.carbon.registry.api.RegistrycurrentPath - current path of the resourcenewName - where we'd like to move the reosurce
org.wso2.carbon.registry.core.exceptions.RegistryException - if something went wrong
public String move(String currentPath,
String newPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
move in interface org.wso2.carbon.registry.api.RegistrycurrentPath - current path of the resourcenewPath - where we'd like to move the reosurce
org.wso2.carbon.registry.core.exceptions.RegistryException - if something went wrong
public String copy(String sourcePath,
String targetPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
copy in interface org.wso2.carbon.registry.api.RegistrysourcePath - current path of the resourcetargetPath - where we'd like to copy the resource
org.wso2.carbon.registry.core.exceptions.RegistryException - if something went wrong
public void createVersion(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
createVersion in interface org.wso2.carbon.registry.api.Registrypath - the resource path.
org.wso2.carbon.registry.core.exceptions.RegistryException - if something went wrong.
public String[] getVersions(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getVersions in interface org.wso2.carbon.registry.api.Registrypath - path of a current version of a resource
org.wso2.carbon.registry.core.exceptions.RegistryException - if there is an error
public void restoreVersion(String versionPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
restoreVersion in interface org.wso2.carbon.registry.api.RegistryversionPath - path of the version to be reverted. It is not necessary to provide the
path of the resource as it can be derived from the version path.
org.wso2.carbon.registry.core.exceptions.RegistryException - if there is an error
public void addAssociation(String sourcePath,
String targetPath,
String associationType)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
addAssociation in interface org.wso2.carbon.registry.api.RegistrysourcePath - Path of the source resourcetargetPath - Path of the target resourceassociationType - Type of the association
org.wso2.carbon.registry.core.exceptions.RegistryException - Depends on the implementation
public void removeAssociation(String sourcePath,
String targetPath,
String associationType)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
removeAssociation in interface org.wso2.carbon.registry.api.RegistrysourcePath - Path of the source resourcetargetPath - Path of the target resourceassociationType - Type of the association
org.wso2.carbon.registry.core.exceptions.RegistryException - Depends on the implementation
public org.wso2.carbon.registry.core.Association[] getAllAssociations(String resourcePath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getAllAssociations in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resource to analyse associations.
org.wso2.carbon.registry.core.exceptions.RegistryException - : If something went wrong
public WSAssociation[] WSgetAllAssociations(String resoucePath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resoucePath - path of resource
org.wso2.carbon.registry.core.exceptions.RegistryException
public org.wso2.carbon.registry.core.Association[] getAssociations(String resourcePath,
String associationType)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getAssociations in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resource to analyse associations.associationType - : Type of the association , that could be dependecy , or some other type
org.wso2.carbon.registry.core.exceptions.RegistryException - : If something went wrong
public WSAssociation[] WSgetAssociations(String resourcePath,
String associationType)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - Path of the resource to analyse associations.associationType - : Type of the association , that could be dependecy , or some other type
org.wso2.carbon.registry.core.exceptions.RegistryException - : If something went wrong
public void applyTag(String resourcePath,
String tag)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
applyTag in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resource to be tagged.tag - Tag. Any string can be used for the tag.
org.wso2.carbon.registry.core.exceptions.RegistryException - is thrown if a resource does not exist in the given path.
public org.wso2.carbon.registry.core.TaggedResourcePath[] getResourcePathsWithTag(String tag)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getResourcePathsWithTag in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public WSTaggedResourcePath[] WSgetResourcePathsWithTag(String tag)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
tag - the tag to search for
org.wso2.carbon.registry.core.exceptions.RegistryException - if an error occurs
public org.wso2.carbon.registry.core.Tag[] getTags(String resourcePath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getTags in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resource
org.wso2.carbon.registry.core.exceptions.RegistryException - is thrown if a resource does not exist in the given path.
public WSTag[] WSgetTags(String resourcePath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - Path of the resource
org.wso2.carbon.registry.core.exceptions.RegistryException - is thrown if a resource does not exist in the given path.
public void removeTag(String path,
String tag)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
removeTag in interface org.wso2.carbon.registry.api.Registrypath - Resource path tagged with the given tag.tag - Name of the tag to be removed.
org.wso2.carbon.registry.core.exceptions.RegistryException - if there's a problem
public String addComment(String s,
org.wso2.carbon.registry.api.Comment comment)
throws org.wso2.carbon.registry.api.RegistryException
addComment in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.api.RegistryException
public String addComment(String resourcePath,
org.wso2.carbon.registry.core.Comment comment)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public String WSaddComment(String resourcePath,
WSComment comment)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - Path of the resource to add the comment.comment - WSComment instance for the new comment. This will be converted to a Comment instance internally.
org.wso2.carbon.registry.core.exceptions.RegistryException - is thrown if a resource does not exist in the given path.
public void editComment(String commentPath,
String text)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
editComment in interface org.wso2.carbon.registry.api.RegistrycommentPath - path to comment resource ("..foo/r1;comment:1")text - new text for the comment.
org.wso2.carbon.registry.core.exceptions.RegistryException - Registry implementations may handle exceptions and throw
RegistryException if the exception has to be propagated to the
client.
public org.wso2.carbon.registry.core.Comment[] getComments(String resourcePath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getComments in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public WSComment[] WSgetComments(String resourcePath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - path of the resource.
org.wso2.carbon.registry.core.exceptions.RegistryException - Registry implementations may handle exceptions and throw
RegistryException if the exception has to be propagated to the
client.
public WSComment WSgetSingleComment(String commentPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
commentPath - path of the resource.
org.wso2.carbon.registry.core.exceptions.RegistryException - Registry implementations may handle exceptions and throw
RegistryException if the exception has to be propagated to the
client.
public void rateResource(String resourcePath,
int rating)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
rateResource in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resource.rating - Rating value between 1 and 5.
org.wso2.carbon.registry.core.exceptions.RegistryException - Registry implementations may handle exceptions and throw
RegistryException if the exception has to be propagated to the
client.
public float getAverageRating(String resourcePath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getAverageRating in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resource.
org.wso2.carbon.registry.core.exceptions.RegistryException - if an error occurs
public int getRating(String path,
String userName)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getRating in interface org.wso2.carbon.registry.api.Registrypath - Path of the resourceuserName - username of the user
org.wso2.carbon.registry.core.exceptions.RegistryException - if there is a problem
public org.wso2.carbon.registry.core.Collection executeQuery(String path,
Map parameters)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
executeQuery in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public WSCollection WSexecuteQuery(String path,
String[] key,
String[] value)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - Path of the query to execute.key - an array of String containing key parameters. These should correspond with the value parameters (key -> value)value - an array of String containing value parameters to the corresponding key parameters (key -> value)
org.wso2.carbon.registry.core.exceptions.RegistryException - depends on the implementation.
public org.wso2.carbon.registry.core.LogEntry[] getLogs(String resourcePath,
int action,
String userName,
Date from,
Date to,
boolean recentFirst)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getLogs in interface org.wso2.carbon.registry.api.RegistryresourcePath - If given, only the logs related to the resource path will be returned. If
null, logs for all resources will be returned.action - Only the logs pertaining to this action will be returned. For
acceptable values, see LogEntry.userName - If given, only the logs for activities done by the given user will be
returned. If null, logs for all users will be returned.from - If given, logs for activities occurred after the given date will be
returned. If null, there will not be a bound for the starting date.to - If given, logs for activities occurred before the given date will be
returned. If null, there will not be a bound for the ending date.recentFirst - If true, returned activities will be most-recent first. If false,
returned activities will be oldest first.
org.wso2.carbon.registry.core.exceptions.RegistryException - if there is a problemAccepted values for action parameter
public WSLogEntry[] WSgetLogs(String resourcePath,
int action,
String userName,
Date from,
Date to,
boolean recentFirst)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - If given, only the logs related to the resource path will be returned. If
null, logs for all resources will be returned.action - Only the logs pertaining to this action will be returned. For
acceptable values, see LogEntry.userName - If given, only the logs for activities done by the given user will be
returned. If null, logs for all users will be returned.from - If given, logs for activities occurred after the given date will be
returned. If null, there will not be a bound for the starting date.to - If given, logs for activities occurred before the given date will be
returned. If null, there will not be a bound for the ending date.recentFirst - If true, returned activities will be most-recent first. If false,
returned activities will be oldest first.
org.wso2.carbon.registry.core.exceptions.RegistryException - if there is a problemAccepted values for action parameter
public org.wso2.carbon.registry.core.LogEntryCollection getLogCollection(String resourcePath,
int action,
String userName,
Date from,
Date to,
boolean recentFirst)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic String[] getAvailableAspects()
getAvailableAspects in interface org.wso2.carbon.registry.api.Registry
public void associateAspect(String resourcePath,
String aspect)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
associateAspect in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resourceaspect - Name of the aspect
org.wso2.carbon.registry.core.exceptions.RegistryException - : If some thing went wrong while doing associating the phase
public void invokeAspectNoParam(String resourcePath,
String aspectName,
String action)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - Path of the resourceaspectName - Name of the aspectaction - Which action was selected - actions are aspect-specific
org.wso2.carbon.registry.core.exceptions.RegistryException - if the Aspect isn't associated with the Resource, or the action
isn't valid, or an Aspect-specific problem occurs.
public void invokeAspect(String resourcePath,
String aspectName,
String action)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
invokeAspect in interface org.wso2.carbon.registry.api.RegistryresourcePath - Path of the resourceaspectName - Name of the aspectaction - Which action was selected - actions are aspect-specific
org.wso2.carbon.registry.core.exceptions.RegistryException - if the Aspect isn't associated with the Resource, or the action
isn't valid, or an Aspect-specific problem occurs.
public void invokeAspectWithParam(String resourcePath,
String aspectName,
String action,
String[] keys,
String[] values)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - Path of the resourceaspectName - Name of the aspectaction - Which action was selected - actions are aspect-specifickeys - Parameters keys to be used for the operationvalues - Parameters values to be used for the operation
org.wso2.carbon.registry.core.exceptions.RegistryException - if the Aspect isn't associated with the Resource, or the action
isn't valid, or an Aspect-specific problem occurs.
public void invokeAspect(String resourcePath,
String aspectName,
String action,
Map<String,String> parameters)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
resourcePath - Path of the resourceaspectName - Name of the aspectaction - Which action was selected - actions are aspect-specificparameters - Parameters to be used for the operation
org.wso2.carbon.registry.core.exceptions.RegistryException - if the Aspect isn't associated with the Resource, or the action
isn't valid, or an Aspect-specific problem occurs.
public String[] getAspectActions(String resourcePath,
String aspectName)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getAspectActions in interface org.wso2.carbon.registry.api.RegistryresourcePath - path of the ResourceaspectName - name of the Aspect to query for available actions
org.wso2.carbon.registry.core.exceptions.RegistryException - if the Aspect isn't associated or an Aspect-specific problem occurs
public void beginTransaction()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
beginTransaction in interface org.wso2.carbon.registry.core.dataaccess.TransactionManagerorg.wso2.carbon.registry.core.exceptions.RegistryException
public void commitTransaction()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
commitTransaction in interface org.wso2.carbon.registry.core.dataaccess.TransactionManagerorg.wso2.carbon.registry.core.exceptions.RegistryException
public void rollbackTransaction()
throws org.wso2.carbon.registry.core.exceptions.RegistryException
rollbackTransaction in interface org.wso2.carbon.registry.core.dataaccess.TransactionManagerorg.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic org.wso2.carbon.registry.core.config.RegistryContext getRegistryContext()
public org.wso2.carbon.registry.core.Collection searchContent(String keywords)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
searchContent in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public WSCollection WSsearchContent(String keywords)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
keywords - keywords to look for
org.wso2.carbon.registry.core.exceptions.RegistryException
public void createLink(String path,
String target)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
createLink in interface org.wso2.carbon.registry.api.Registrypath - the mount pathtarget - the point to be mounted
org.wso2.carbon.registry.core.exceptions.RegistryException
public void createLink(String path,
String target,
String subTargetPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
createLink in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public void createLinkWithSubTarget(String path,
String target,
String subTargetPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - the mount pathtarget - the point to be mountedsubTargetPath - sub path in the remote instance to be mounted
org.wso2.carbon.registry.core.exceptions.RegistryException
public void removeLink(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
removeLink in interface org.wso2.carbon.registry.api.Registrypath - the mount path
org.wso2.carbon.registry.core.exceptions.RegistryException
public void restore(String path,
Reader reader)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
restore in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public void wsRestore(String path,
DataHandler dataHandler)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void dump(String path,
Writer writer)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
dump in interface org.wso2.carbon.registry.api.Registryorg.wso2.carbon.registry.core.exceptions.RegistryException
public DataHandler wsDump(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public String getEventingServiceURL(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
getEventingServiceURL in interface org.wso2.carbon.registry.api.Registrypath - the path to which the WS-Eventing Service URL is required
org.wso2.carbon.registry.core.exceptions.RegistryException - throws if the operation fail
public void setEventingServiceURL(String path,
String eventingServiceURL)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
setEventingServiceURL in interface org.wso2.carbon.registry.api.Registrypath - the path to which the WS-Eventing Service URL is associatedeventingServiceURL - the URL of the WS-Eventing Service
org.wso2.carbon.registry.core.exceptions.RegistryException - throws if the operation fail
public boolean removeAspect(String name)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
name - the name of the aspect to be removed
org.wso2.carbon.registry.core.exceptions.RegistryException - throws if the operation fail
public boolean addAspect(String name,
org.wso2.carbon.registry.core.Aspect aspect)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void removeComment(String commentPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
removeComment in interface org.wso2.carbon.registry.api.RegistrycommentPath - path to comment resource ("..foo/r1;comment:1")
org.wso2.carbon.registry.core.exceptions.RegistryException - Registry implementations may handle exceptions and throw
RegistryException if the exception has to be propagated to the
client.
public DataHandler getContent(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - Path of the resource
org.wso2.carbon.registry.core.exceptions.RegistryException
public String[] getCollectionContent(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - Path of the resource
org.wso2.carbon.registry.core.exceptions.RegistryException
public int getChildCount(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
path - resource path
org.wso2.carbon.registry.core.exceptions.RegistryException
public WSResourceData getAll(String path)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public boolean removeVersionHistory(String path,
long snapshotId)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||