svn commit: r704835 - /ofbiz/trunk/framework/security/src/org/ofbiz/security/OFBizSecurity.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r704835 - /ofbiz/trunk/framework/security/src/org/ofbiz/security/OFBizSecurity.java

bibryam
Author: bibryam
Date: Wed Oct 15 02:58:53 2008
New Revision: 704835

URL: http://svn.apache.org/viewvc?rev=704835&view=rev
Log:
Replaced deprecated FacilityRole reference with FacilityParty.

Modified:
    ofbiz/trunk/framework/security/src/org/ofbiz/security/OFBizSecurity.java

Modified: ofbiz/trunk/framework/security/src/org/ofbiz/security/OFBizSecurity.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/security/src/org/ofbiz/security/OFBizSecurity.java?rev=704835&r1=704834&r2=704835&view=diff
==============================================================================
--- ofbiz/trunk/framework/security/src/org/ofbiz/security/OFBizSecurity.java (original)
+++ ofbiz/trunk/framework/security/src/org/ofbiz/security/OFBizSecurity.java Wed Oct 15 02:58:53 2008
@@ -49,7 +49,7 @@
     
     public static final Map<String, Map<String, String>> simpleRoleEntity = UtilMisc.toMap(
         "ORDERMGR", UtilMisc.toMap("name", "OrderRole", "pkey", "orderId"),
-        "FACILITY", UtilMisc.toMap("name", "FacilityRole", "pkey", "facilityId"),
+        "FACILITY", UtilMisc.toMap("name", "FacilityParty", "pkey", "facilityId"),
         "MARKETING", UtilMisc.toMap("name", "MarketingCampaignRole", "pkey", "marketingCampaignId"));    
 
     GenericDelegator delegator = null;
@@ -220,8 +220,8 @@
         
         Map<String, String> simpleRoleMap = OFBizSecurity.simpleRoleEntity.get(application);
         if (simpleRoleMap != null && roles != null) {
-            entityName = (String) simpleRoleMap.get("name");
-            String pkey = (String) simpleRoleMap.get("pkey");
+            entityName = simpleRoleMap.get("name");
+            String pkey = simpleRoleMap.get("pkey");
             if (pkey != null) {
                 List<EntityExpr> expressions = new ArrayList<EntityExpr>();
                 for (String role: roles) {