Omaha #3132 fix compilation issue from merge

Change-Id: I76e189ff871c2ca8f99806e035abb07087626fba

Former-commit-id: a70df06392 [formerly 2f0b209e10] [formerly 0160955244] [formerly 3f7170f862 [formerly 0160955244 [formerly b45249baec6c6d4f77e5aeb23b910689df192c8a]]]
Former-commit-id: 3f7170f862
Former-commit-id: fc3a206bb36805ff0ce8c40da5b9af5501e60372 [formerly 281f360487]
Former-commit-id: 66c0933713
This commit is contained in:
Nate Jensen 2014-08-26 18:22:26 -05:00
parent 00b3ad8eb6
commit c508bb668c

View file

@ -32,9 +32,9 @@ import com.raytheon.uf.common.time.util.TimeUtil;
import com.raytheon.uf.common.util.FileUtil;
import com.raytheon.uf.edex.auth.AuthManager;
import com.raytheon.uf.edex.auth.AuthManagerFactory;
import com.raytheon.uf.edex.auth.authorization.IAuthorizer;
import com.raytheon.uf.edex.auth.req.AbstractPrivilegedRequestHandler;
import com.raytheon.uf.edex.auth.resp.AuthorizationResponse;
import com.raytheon.uf.edex.auth.roles.IRoleStorage;
/**
* Abstract class for the remote script handlers. Performs authorization and
@ -150,15 +150,16 @@ public abstract class AbstractRemoteScriptHandler extends
* @return authorizationResponse
* @throws AuthorizationException
*/
@Override
public AuthorizationResponse authorized(IUser user,
RemoteScriptRequest request) throws AuthorizationException {
AuthManager manager = AuthManagerFactory.getInstance().getManager();
IRoleStorage roleStorage = manager.getRoleStorage();
IAuthorizer auth = manager.getAuthorizer();
String roleId = getRoleId();
String role = getRoleId();
boolean authorized = roleStorage.isAuthorized(roleId, user.uniqueId()
.toString(), APPLICATION);
boolean authorized = auth.isAuthorized(role,
user.uniqueId().toString(), APPLICATION);
if (authorized) {
return new AuthorizationResponse(authorized);