Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-06-09 15:02:08 +0000
committerEike Stepper2012-06-09 15:02:08 +0000
commit9945d9f9085226e122ead08990c100790977866c (patch)
tree2a19ed9381f9c95e6de366eb28139367cd5177c6 /plugins/org.eclipse.emf.cdo.security.edit/src
parent6f1faab6f60b6c691c05a5629ff89497906e10c9 (diff)
downloadcdo-9945d9f9085226e122ead08990c100790977866c.tar.gz
cdo-9945d9f9085226e122ead08990c100790977866c.tar.xz
cdo-9945d9f9085226e122ead08990c100790977866c.zip
[380629] Design a default Security model
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380629
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.security.edit/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/GroupItemProvider.java48
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java64
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java32
3 files changed, 0 insertions, 144 deletions
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/GroupItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/GroupItemProvider.java
index 236bb331a7..aee28b3b49 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/GroupItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/GroupItemProvider.java
@@ -66,10 +66,7 @@ public class GroupItemProvider extends AssigneeItemProvider implements IEditingD
super.getPropertyDescriptors(object);
addInheritedGroupsPropertyDescriptor(object);
- addAllInheritedGroupsPropertyDescriptor(object);
addInheritingGroupsPropertyDescriptor(object);
- addAllInheritingGroupsPropertyDescriptor(object);
- addAllRolesPropertyDescriptor(object);
addUsersPropertyDescriptor(object);
}
return itemPropertyDescriptors;
@@ -121,51 +118,6 @@ public class GroupItemProvider extends AssigneeItemProvider implements IEditingD
}
/**
- * This adds a property descriptor for the All Inheriting Groups feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllInheritingGroupsPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Group_allInheritingGroups_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Group_allInheritingGroups_feature", "_UI_Group_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.GROUP__ALL_INHERITING_GROUPS, false, false, false, null, null, null));
- }
-
- /**
- * This adds a property descriptor for the All Inherited Groups feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllInheritedGroupsPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Group_allInheritedGroups_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Group_allInheritedGroups_feature", "_UI_Group_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.GROUP__ALL_INHERITED_GROUPS, false, false, false, null, null, null));
- }
-
- /**
- * This adds a property descriptor for the All Roles feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllRolesPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Group_allRoles_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Group_allRoles_feature", "_UI_Group_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.GROUP__ALL_ROLES, false, false, false, null, null, null));
- }
-
- /**
* This returns Group.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java
index 6794166b79..b75fc58340 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java
@@ -69,76 +69,12 @@ public class RealmItemProvider extends SecurityElementItemProvider implements IE
{
super.getPropertyDescriptors(object);
- addAllUsersPropertyDescriptor(object);
- addAllGroupsPropertyDescriptor(object);
- addAllRolesPropertyDescriptor(object);
- addAllChecksPropertyDescriptor(object);
addNamePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
- * This adds a property descriptor for the All Users feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllUsersPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Realm_allUsers_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Realm_allUsers_feature", "_UI_Realm_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.REALM__ALL_USERS, false, false, false, null, null, null));
- }
-
- /**
- * This adds a property descriptor for the All Groups feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllGroupsPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Realm_allGroups_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Realm_allGroups_feature", "_UI_Realm_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.REALM__ALL_GROUPS, false, false, false, null, null, null));
- }
-
- /**
- * This adds a property descriptor for the All Roles feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllRolesPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Realm_allRoles_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Realm_allRoles_feature", "_UI_Realm_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.REALM__ALL_ROLES, false, false, false, null, null, null));
- }
-
- /**
- * This adds a property descriptor for the All Checks feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllChecksPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Realm_allChecks_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Realm_allChecks_feature", "_UI_Realm_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.REALM__ALL_CHECKS, false, false, false, null, null, null));
- }
-
- /**
* This adds a property descriptor for the Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java
index 68b2b2c70a..d66b443fea 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java
@@ -70,8 +70,6 @@ public class UserItemProvider extends AssigneeItemProvider implements IEditingDo
super.getPropertyDescriptors(object);
addGroupsPropertyDescriptor(object);
- addAllGroupsPropertyDescriptor(object);
- addAllRolesPropertyDescriptor(object);
addLabelPropertyDescriptor(object);
addFirstNamePropertyDescriptor(object);
addLastNamePropertyDescriptor(object);
@@ -97,36 +95,6 @@ public class UserItemProvider extends AssigneeItemProvider implements IEditingDo
}
/**
- * This adds a property descriptor for the All Groups feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllGroupsPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_User_allGroups_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_User_allGroups_feature", "_UI_User_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.USER__ALL_GROUPS, false, false, false, null, null, null));
- }
-
- /**
- * This adds a property descriptor for the All Roles feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addAllRolesPropertyDescriptor(Object object)
- {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_User_allRoles_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_User_allRoles_feature", "_UI_User_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.USER__ALL_ROLES, false, false, false, null, null, null));
- }
-
- /**
* This adds a property descriptor for the Label feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->

Back to the top