Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2010-06-29 17:50:36 -0400
committerrescobar2010-06-29 17:50:36 -0400
commitabdd4d48a5d270fc4dcd484342b3511f8306b30d (patch)
treee1ddfc04b16a482d5c900958496d30e6b7981260 /plugins/org.eclipse.osee.framework.access.test
parente390a4645c9cda60a2340762d71fc3c58539e736 (diff)
downloadorg.eclipse.osee-abdd4d48a5d270fc4dcd484342b3511f8306b30d.tar.gz
org.eclipse.osee-abdd4d48a5d270fc4dcd484342b3511f8306b30d.tar.xz
org.eclipse.osee-abdd4d48a5d270fc4dcd484342b3511f8306b30d.zip
"Team Workflow" - YGHW1 - "Block changes to requirements unless done under an appropriate action."
Diffstat (limited to 'plugins/org.eclipse.osee.framework.access.test')
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java
new file mode 100644
index 0000000000..1ceb17a6b2
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java
@@ -0,0 +1,28 @@
+/*
+ * Created on Jun 29, 2010
+ *
+ * PLACE_YOUR_DISTRIBUTION_STATEMENT_RIGHT_HERE
+ */
+package org.eclipse.osee.framework.access.test.internal;
+
+import org.eclipse.osee.framework.core.enums.PermissionEnum;
+
+public class PermissionTest {
+
+ public void main(String[] args) {
+ PermissionEnum[] a = {PermissionEnum.DENY, PermissionEnum.FULLACCESS, null};
+ PermissionEnum[] b = {PermissionEnum.LOCK, PermissionEnum.FULLACCESS, null};
+ for (int i = 0; i < 3; i++) {
+ for (int j = 0; j < 3; j++) {
+ PermissionEnum branchPermission = a[i];
+ PermissionEnum userPermission = b[j];
+ if (branchPermission == PermissionEnum.DENY || userPermission == null) {
+ System.out.print("T");
+ } else {
+ System.out.print("F");
+ }
+ }
+ System.out.println();
+ }
+ }
+}

Back to the top