directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r822696 - /directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemVisualEditorComposite.java
Date Wed, 07 Oct 2009 12:39:10 GMT
Author: seelmann
Date: Wed Oct  7 12:39:09 2009
New Revision: 822696

URL: http://svn.apache.org/viewvc?rev=822696&view=rev
Log:
Use typed collection

Modified:
    directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemVisualEditorComposite.java

Modified: directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemVisualEditorComposite.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemVisualEditorComposite.java?rev=822696&r1=822695&r2=822696&view=diff
==============================================================================
--- directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemVisualEditorComposite.java
(original)
+++ directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemVisualEditorComposite.java
Wed Oct  7 12:39:09 2009
@@ -26,7 +26,11 @@
 import org.apache.directory.shared.ldap.aci.ACIItem;
 import org.apache.directory.shared.ldap.aci.ACIItemParser;
 import org.apache.directory.shared.ldap.aci.ItemFirstACIItem;
+import org.apache.directory.shared.ldap.aci.ItemPermission;
+import org.apache.directory.shared.ldap.aci.ProtectedItem;
+import org.apache.directory.shared.ldap.aci.UserClass;
 import org.apache.directory.shared.ldap.aci.UserFirstACIItem;
+import org.apache.directory.shared.ldap.aci.UserPermission;
 import org.apache.directory.shared.ldap.constants.AuthenticationLevel;
 import org.apache.directory.studio.aciitemeditor.ACIItemValueWithContext;
 import org.eclipse.swt.SWT;
@@ -220,15 +224,15 @@
         ACIItem aciItem = null;
         if ( generalComposite.isUserFirst() )
         {
-            Collection userClasses = userFirstUserClassesComposite.getUserClasses();
-            Collection userPermissions = userFirstUserPermissionsComposite.getUserPermissions();
+            Collection<UserClass> userClasses = userFirstUserClassesComposite.getUserClasses();
+            Collection<UserPermission> userPermissions = userFirstUserPermissionsComposite.getUserPermissions();
             aciItem = new UserFirstACIItem( identificationTag, precedence, authenticationLevel,
userClasses,
                 userPermissions );
         }
         else if ( generalComposite.isItemFirst() )
         {
-            Collection protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
-            Collection itemPermissions = itemFirstItemPermissionsComposite.getItemPermissions();
+            Collection<ProtectedItem> protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
+            Collection<ItemPermission> itemPermissions = itemFirstItemPermissionsComposite.getItemPermissions();
             aciItem = new ItemFirstACIItem( identificationTag, precedence, authenticationLevel,
protectedItems,
                 itemPermissions );
         }



Mime
View raw message