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(UserRealm realm)
Populates all necessary users, roles and authorizations related user store. |
static void |
setDefaultAuthorizations(UserRealm 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(UserRealm realm,
java.lang.String path,
java.lang.String authorUserName)
throws RegistryException
- Throws:
RegistryException
populateUserStore
public static void populateUserStore(UserRealm realm)
throws UserStoreException
- Populates all necessary users, roles and authorizations related user store. Note that the
authorizations related to resource store is not populated by this method.
- Parameters:
realm
- Realm for which data has to be populated
- Throws:
UserStoreException
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.