Author: doogie
Date: Wed Apr 22 19:33:44 2015
New Revision: 1675463

URL: http://svn.apache.org/r1675463
Log:
OFBIZ-6280: SecurityFactory implements deprecated methods, so add the
@Deprecation tag to prevent javac from emmiting warnings.

Modified:
    
ofbiz/branches/OFBIZ-6275/framework/security/src/org/ofbiz/security/SecurityFactory.java

Modified: 
ofbiz/branches/OFBIZ-6275/framework/security/src/org/ofbiz/security/SecurityFactory.java
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-6275/framework/security/src/org/ofbiz/security/SecurityFactory.java?rev=1675463&r1=1675462&r2=1675463&view=diff
==============================================================================
--- 
ofbiz/branches/OFBIZ-6275/framework/security/src/org/ofbiz/security/SecurityFactory.java
 (original)
+++ 
ofbiz/branches/OFBIZ-6275/framework/security/src/org/ofbiz/security/SecurityFactory.java
 Wed Apr 22 19:33:44 2015
@@ -102,6 +102,7 @@ public final class SecurityFactory {
         }
 
         @Override
+        @Deprecated
         public Iterator<GenericValue> 
findUserLoginSecurityGroupByUserLoginId(String userLoginId) {
             try {
                 List<GenericValue> collection = 
EntityUtil.filterByDate(EntityQuery.use(delegator).from("UserLoginSecurityGroup").where("userLoginId",
 userLoginId).cache(true).queryList());
@@ -113,6 +114,7 @@ public final class SecurityFactory {
         }
 
         @Override
+        @Deprecated
         public Delegator getDelegator() {
             return this.delegator;
         }
@@ -261,6 +263,7 @@ public final class SecurityFactory {
         }
 
         @Override
+        @Deprecated
         public boolean securityGroupPermissionExists(String groupId, String 
permission) {
             try {
                 return 
EntityQuery.use(delegator).from("SecurityGroupPermission").where("groupId", 
groupId, "permissionId", permission).cache(true).queryOne() != null;
@@ -271,6 +274,7 @@ public final class SecurityFactory {
         }
 
         @Override
+        @Deprecated
         public void setDelegator(Delegator delegator) {
             if (this.delegator != null) {
                 throw new IllegalStateException("This object has been 
initialized already.");


Reply via email to