org.wso2.registry.utils
Class AuthorizationUtil
java.lang.Object
org.wso2.registry.utils.AuthorizationUtil
public class AuthorizationUtil
- extends java.lang.Object
Method Summary |
static java.lang.String |
getAuthorizationPath(java.lang.String resourcePath)
Path of a resource given to the Registry interface may contain extensions to refer metadata
about resources. |
static java.lang.String |
getParentPath(java.lang.String childPath)
|
static void |
populateUserStore(org.wso2.usermanager.Realm realm)
|
static void |
setDefaultAuthorizations(org.wso2.usermanager.Realm realm,
java.lang.String path,
java.lang.String authorUserName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthorizationUtil
public AuthorizationUtil()
setDefaultAuthorizations
public static void setDefaultAuthorizations(org.wso2.usermanager.Realm realm,
java.lang.String path,
java.lang.String authorUserName)
throws RegistryException
- Throws:
RegistryException
populateUserStore
public static void populateUserStore(org.wso2.usermanager.Realm realm)
throws org.wso2.usermanager.UserManagerException
- Throws:
org.wso2.usermanager.UserManagerException
getParentPath
public static java.lang.String getParentPath(java.lang.String childPath)
getAuthorizationPath
public static java.lang.String getAuthorizationPath(java.lang.String resourcePath)
- Path of a resource given to the Registry interface may contain extensions to refer metadata
about resources. But we always store the authorization for resources against the pure
resource path, stored in the ARTIFACTS table. This methods extracts that pure resource path
from a given path.
- Parameters:
resourcePath
- A path string, which may contain extensions
- Returns:
- pure resource path for the given path
Copyright © 2007 Apache Web Services Project. All Rights Reserved.