|
|
@ -39,8 +39,8 @@ import java.util.StringTokenizer;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class PermissionUtils {
|
|
|
|
public class PermissionUtils {
|
|
|
|
|
|
|
|
|
|
|
|
public static String ADMIN_PERMISSION_REGISTRY_PATH = "/permission/admin";
|
|
|
|
public static final String ADMIN_PERMISSION_REGISTRY_PATH = "/permission/admin";
|
|
|
|
public static String PERMISSION_PROPERTY_NAME = "name";
|
|
|
|
public static final String PERMISSION_PROPERTY_NAME = "name";
|
|
|
|
|
|
|
|
|
|
|
|
public static Registry getGovernanceRegistry() throws PermissionManagementException {
|
|
|
|
public static Registry getGovernanceRegistry() throws PermissionManagementException {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -82,7 +82,7 @@ public class PermissionUtils {
|
|
|
|
currentToken = tokenizer.nextToken();
|
|
|
|
currentToken = tokenizer.nextToken();
|
|
|
|
tempPath = lastToken + "/" + currentToken;
|
|
|
|
tempPath = lastToken + "/" + currentToken;
|
|
|
|
if(!checkResourceExists(tempPath)) {
|
|
|
|
if(!checkResourceExists(tempPath)) {
|
|
|
|
createRegistryCollection(tempPath, currentToken.substring(0));
|
|
|
|
createRegistryCollection(tempPath, currentToken);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lastToken = tempPath;
|
|
|
|
lastToken = tempPath;
|
|
|
|
}
|
|
|
|
}
|
|
|
|