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.common.util.FileUtil;
|
||||||
import com.raytheon.uf.edex.auth.AuthManager;
|
import com.raytheon.uf.edex.auth.AuthManager;
|
||||||
import com.raytheon.uf.edex.auth.AuthManagerFactory;
|
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.req.AbstractPrivilegedRequestHandler;
|
||||||
import com.raytheon.uf.edex.auth.resp.AuthorizationResponse;
|
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
|
* Abstract class for the remote script handlers. Performs authorization and
|
||||||
|
@ -150,15 +150,16 @@ public abstract class AbstractRemoteScriptHandler extends
|
||||||
* @return authorizationResponse
|
* @return authorizationResponse
|
||||||
* @throws AuthorizationException
|
* @throws AuthorizationException
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public AuthorizationResponse authorized(IUser user,
|
public AuthorizationResponse authorized(IUser user,
|
||||||
RemoteScriptRequest request) throws AuthorizationException {
|
RemoteScriptRequest request) throws AuthorizationException {
|
||||||
AuthManager manager = AuthManagerFactory.getInstance().getManager();
|
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()
|
boolean authorized = auth.isAuthorized(role,
|
||||||
.toString(), APPLICATION);
|
user.uniqueId().toString(), APPLICATION);
|
||||||
|
|
||||||
if (authorized) {
|
if (authorized) {
|
||||||
return new AuthorizationResponse(authorized);
|
return new AuthorizationResponse(authorized);
|
||||||
|
|
Loading…
Add table
Reference in a new issue