public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
buildReference(String resourcePath,
ResourceServiceClient client,
String rootName) |
static String |
calculatePath(String parentPath,
String resourceName)
return the concatenated full path of the resource
|
static String[][] |
getProperties(javax.servlet.http.HttpServletRequest request) |
static String[][] |
getProperties(String propertyString) |
static String |
getResourceConsumer(javax.servlet.http.HttpServletRequest request) |
static String |
getResourceContentURL(javax.servlet.http.HttpServletRequest request,
String resourcePath) |
static String |
getResourceDownloadURL(javax.servlet.http.HttpServletRequest request,
String resourcePath) |
static String |
getResourcePath(javax.servlet.http.HttpServletRequest request) |
static String |
getResourceViewMode(javax.servlet.http.HttpServletRequest request) |
static String[] |
getSortedChildNodes(org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean bean) |
static String[] |
getSortedChildNodes(String[] childPaths) |
static String |
getSynapseRoot(javax.servlet.http.HttpServletRequest request) |
static String |
getTargetDivID(javax.servlet.http.HttpServletRequest request) |
static boolean |
hasDependencies(org.wso2.carbon.registry.relations.stub.beans.xsd.DependenciesBean dependenciesBean,
String srcPath) |
static String |
resolveResourceKey(String completePath,
String root) |
public static String[] getSortedChildNodes(org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean bean)
public static String getResourceContentURL(javax.servlet.http.HttpServletRequest request, String resourcePath)
public static String getResourceDownloadURL(javax.servlet.http.HttpServletRequest request, String resourcePath)
public static String getResourceViewMode(javax.servlet.http.HttpServletRequest request)
public static String getResourceConsumer(javax.servlet.http.HttpServletRequest request)
public static String getResourcePath(javax.servlet.http.HttpServletRequest request)
public static String getSynapseRoot(javax.servlet.http.HttpServletRequest request)
public static String getTargetDivID(javax.servlet.http.HttpServletRequest request)
public static String buildReference(String resourcePath, ResourceServiceClient client, String rootName)
public static boolean hasDependencies(org.wso2.carbon.registry.relations.stub.beans.xsd.DependenciesBean dependenciesBean, String srcPath)
public static String[][] getProperties(javax.servlet.http.HttpServletRequest request)
public static String calculatePath(String parentPath, String resourceName)
parentPath
- location of the resource in registryresourceName
- resource name which entered by userCopyright © 2015 WSO2. All rights reserved.