public class ResourceServiceClient extends Object
Constructor and Description |
---|
ResourceServiceClient(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session) |
ResourceServiceClient(String cookie,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session) |
ResourceServiceClient(String cookie,
String backendServerURL,
org.apache.axis2.context.ConfigurationContext configContext) |
Modifier and Type | Method and Description |
---|---|
String |
addCollection(String parentPath,
String collectionName,
String mediaType,
String description) |
void |
addRemoteLink(String parentPath,
String name,
String instance,
String targetPath) |
void |
addResource(String path,
String mediaType,
String description,
DataHandler content,
String symlinkLocation,
String[][] properties) |
void |
addRolePermission(String pathToAuthorize,
String roleToAuthorize,
String actionToAuthorize,
String permissionType) |
void |
addSymbolicLink(String parentPath,
String name,
String targetPath) |
void |
addTextResource(String parentPath,
String fileName,
String mediaType,
String description,
String content) |
void |
addUserPermission(String pathToAuthorize,
String userToAuthorize,
String actionToAuthorize,
String permissionType) |
void |
changeRolePermissions(String resourcePath,
String permissionsInput) |
void |
changeUserPermissions(String resourcePath,
String permissionsInput) |
void |
copyResource(String parentPath,
String oldResourcePath,
String destinationPath,
String resourceName) |
void |
createVersion(String resourcePath) |
void |
delete(String pathToDelete) |
org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean |
getCollectionContent(javax.servlet.http.HttpServletRequest request) |
org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean |
getCollectionContent(String path) |
String |
getCollectionMediatypeDefinitions() |
org.wso2.carbon.registry.resource.stub.beans.xsd.ContentBean |
getContent(javax.servlet.http.HttpServletRequest request) |
org.wso2.carbon.registry.resource.stub.beans.xsd.ContentDownloadBean |
getContentDownloadBean(String path) |
String |
getCustomUIMediatypeDefinitions() |
String |
getExternalURL(javax.servlet.http.HttpServletRequest request) |
String |
getHumanReadableMediaType() |
String |
getMediatypeDefinitions() |
org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean |
getMetadata(javax.servlet.http.HttpServletRequest request) |
org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean |
getMetadata(javax.servlet.http.HttpServletRequest request,
String root) |
org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean |
getMetadata(String path) |
org.wso2.carbon.registry.resource.stub.beans.xsd.PermissionBean |
getPermissions(javax.servlet.http.HttpServletRequest request) |
String |
getProperty(String path,
String key) |
org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] |
getResourceData(String[] paths) |
org.wso2.carbon.registry.resource.stub.beans.xsd.ResourceTreeEntryBean |
getResourceTreeEntry(String resourcePath) |
String |
getSessionResourcePath() |
String |
getTextContent(javax.servlet.http.HttpServletRequest request) |
org.wso2.carbon.registry.resource.stub.beans.xsd.VersionsBean |
getVersionsBean(String path) |
org.wso2.carbon.registry.resource.stub.beans.xsd.ContentDownloadBean |
getZipWithDependencies(String path) |
boolean |
hasAssociations(String path,
String type) |
void |
importResource(String parentPath,
String resourceName,
String mediaType,
String description,
String fetchURL,
String symlinkLocation,
String[][] properties,
boolean isAsync) |
void |
moveResource(String parentPath,
String oldResourcePath,
String destinationPath,
String resourceName) |
void |
removeVersionHistory(String path,
String snapshotId) |
void |
renameResource(String parentPath,
String oldResourcePath,
String newResourceName) |
void |
restoreVersion(String versionPath) |
void |
setDescription(String path,
String description) |
void |
setTextContent(String sessionResourcePath) |
void |
updateMediaType(String resourcePath,
String mediaType) |
void |
updateTextContent(String resourcePath,
String contentText,
String updateOverride,
String resourceVersion) |
public ResourceServiceClient(String cookie, String backendServerURL, org.apache.axis2.context.ConfigurationContext configContext) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public ResourceServiceClient(String cookie, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public ResourceServiceClient(javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
public org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean getMetadata(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean getMetadata(String path) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean getMetadata(javax.servlet.http.HttpServletRequest request, String root) throws Exception
Exception
public void setDescription(String path, String description) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean getCollectionContent(String path) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean getCollectionContent(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.ContentBean getContent(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] getResourceData(String[] paths) throws Exception
Exception
public String addCollection(String parentPath, String collectionName, String mediaType, String description) throws Exception
Exception
public void addTextResource(String parentPath, String fileName, String mediaType, String description, String content) throws Exception
Exception
public void addSymbolicLink(String parentPath, String name, String targetPath) throws Exception
Exception
public void addRemoteLink(String parentPath, String name, String instance, String targetPath) throws Exception
Exception
public void importResource(String parentPath, String resourceName, String mediaType, String description, String fetchURL, String symlinkLocation, String[][] properties, boolean isAsync) throws Exception
Exception
public void removeVersionHistory(String path, String snapshotId) throws Exception
Exception
public void renameResource(String parentPath, String oldResourcePath, String newResourceName) throws Exception
Exception
public void copyResource(String parentPath, String oldResourcePath, String destinationPath, String resourceName) throws Exception
Exception
public void moveResource(String parentPath, String oldResourcePath, String destinationPath, String resourceName) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.PermissionBean getPermissions(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public void addUserPermission(String pathToAuthorize, String userToAuthorize, String actionToAuthorize, String permissionType) throws Exception
Exception
public void addRolePermission(String pathToAuthorize, String roleToAuthorize, String actionToAuthorize, String permissionType) throws Exception
Exception
public void changeUserPermissions(String resourcePath, String permissionsInput) throws Exception
Exception
public void changeRolePermissions(String resourcePath, String permissionsInput) throws Exception
Exception
public String getTextContent(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public String getExternalURL(javax.servlet.http.HttpServletRequest request) throws Exception
Exception
public void updateTextContent(String resourcePath, String contentText, String updateOverride, String resourceVersion) throws Exception
Exception
public void addResource(String path, String mediaType, String description, DataHandler content, String symlinkLocation, String[][] properties) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.ResourceTreeEntryBean getResourceTreeEntry(String resourcePath) throws Exception
Exception
public void setTextContent(String sessionResourcePath) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.VersionsBean getVersionsBean(String path) throws Exception
Exception
public String getCollectionMediatypeDefinitions() throws Exception
Exception
public String getCustomUIMediatypeDefinitions() throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.ContentDownloadBean getContentDownloadBean(String path) throws Exception
Exception
public String getHumanReadableMediaType() throws Exception
Exception
public void updateMediaType(String resourcePath, String mediaType) throws Exception
Exception
public org.wso2.carbon.registry.resource.stub.beans.xsd.ContentDownloadBean getZipWithDependencies(String path) throws Exception
Exception
Copyright © 2015 WSO2. All rights reserved.