@Override public Boolean call() throws Exception { return repo.getAccessManagement().authenticate(userName, new String(password)); }
protected void checkPermission(Permission.Value perm) throws BagriException { //repo.getXQProcessor(clientId); ((SchemaRepositoryBase) repo).setClientId(clientId); repo.getAccessManagement().checkPermission(clientId, perm); }
@Autowired public void setAccessManager(AccessManagement accMgr) { this.accMgr = accMgr; String username = super.getUsername(); String password = super.getPassword(); authenticated = accMgr.authenticate(username, password); logger.trace("setAccessManager; got: {}; authentecated: {}", accMgr, authenticated); }