directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject [15/51] [partial] directory-fortress-core git commit: FC-109 - rename rbac package to impl
Date Tue, 02 Jun 2015 18:36:40 GMT
http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/ba64d26a/src/test/java/org/apache/directory/fortress/core/impl/PRATestData.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/directory/fortress/core/impl/PRATestData.java b/src/test/java/org/apache/directory/fortress/core/impl/PRATestData.java
new file mode 100755
index 0000000..a513196
--- /dev/null
+++ b/src/test/java/org/apache/directory/fortress/core/impl/PRATestData.java
@@ -0,0 +1,1037 @@
+/*
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you under the Apache License, Version 2.0 (the
+ *   "License"); you may not use this file except in compliance
+ *   with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing,
+ *   software distributed under the License is distributed on an
+ *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *   KIND, either express or implied.  See the License for the
+ *   specific language governing permissions and limitations
+ *   under the License.
+ *
+ */
+package org.apache.directory.fortress.core.impl;
+
+
+import java.util.HashMap;
+import java.util.Map;
+
+import junit.framework.TestCase;
+
+import org.apache.commons.lang.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Description of the Class
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class PRATestData extends TestCase
+{
+    private static final String CLS_NM = PRATestData.class.getName();
+    private static final Logger LOG = LoggerFactory.getLogger( CLS_NM );
+
+    public static final String[][] PRA_T1 =
+        {
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "T", /* CAN_ASSIGN COL */
+        },
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+    },
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin1", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin2", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin3", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin4", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[0] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[1] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[2] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[3] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[0] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[1] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[2] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[3] ),
+                "F", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[4] ),
+                "T", /* CAN_ASSIGN COL */
+},
+            {
+                "oamT2UAdmin5", /* AROLE COL */
+                OrgUnitTestData.getName( OrgUnitTestData.ORGS_PRM_TO5[4] ),
+                RoleTestData.getName( RoleTestData.ROLES_TR15_ARBAC[5] ),
+                "F", /* CAN_ASSIGN COL */
+}
+    };
+
+    /**
+    * The Fortress test data for junit uses 2-dimensional arrays.
+    */
+    private final static int AROLE_COL = 0;
+    private final static int POU_COL = 1;
+    private final static int UROLE_COL = 2;
+    private final static int CAN_ASSIGN_COL = 3;
+
+
+    /**
+     *
+     * @param ura
+     * @return
+     */
+    public static String getArole( String[] ura )
+    {
+        return ura[AROLE_COL];
+    }
+
+
+    /**
+     *
+     * @param ura
+     * @return
+     */
+    public static String getPou( String[] ura )
+    {
+        return ura[POU_COL];
+    }
+
+
+    /**
+     *
+     * @param ura
+     * @return
+     */
+    public static String getUrole( String[] ura )
+    {
+        return ura[UROLE_COL];
+    }
+
+
+    /**
+     *
+     * @param ura
+     * @return
+     */
+    public static boolean isCanGrant( String[] ura )
+    {
+        boolean isCanGrant = false;
+        if ( StringUtils.isNotEmpty( ura[CAN_ASSIGN_COL] ) && ura[CAN_ASSIGN_COL].equalsIgnoreCase(
"T" ) )
+        {
+            isCanGrant = true;
+        }
+        return isCanGrant;
+    }
+
+
+    public static boolean isCanRevoke( String[] ura )
+    {
+        boolean isCanRevoke = false;
+        if ( StringUtils.isNotEmpty( ura[CAN_ASSIGN_COL] )
+            && ura[CAN_ASSIGN_COL].equalsIgnoreCase( "T" ) )
+        {
+            isCanRevoke = true;
+        }
+        return isCanRevoke;
+    }
+
+
+    public static PRA getPra( String[] ura )
+    {
+        return new PRA( getArole( ura ), getPou( ura ), getUrole( ura ), isCanGrant( ura
) );
+    }
+
+
+    /**
+     *
+     * @param uras
+     * @return
+     */
+    public static Map<PRA, PRA> getPRAs( String[][] uras )
+    {
+        Map<PRA, PRA> listUras = new HashMap<>();
+        for ( String[] szUra : uras )
+        {
+            PRA ura = getPra( szUra );
+            listUras.put( ura, ura );
+        }
+        return listUras;
+    }
+}


Mime
View raw message