Omaha #3132 fix compilation issue from merge
Change-Id: I76e189ff871c2ca8f99806e035abb07087626fba Former-commit-id: b45249baec6c6d4f77e5aeb23b910689df192c8a
This commit is contained in:
parent
99ae9bdc10
commit
0160955244
1 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue