if (StringUtils.isNotEmpty(username) && this.userPrivileges.containsKey(username)) {
SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
// "nexus:target:" + <targetId> + ":" + <repoId> + ":" + <action>
// String priv = "nexus:target:" + "*" + ":" + "repo1" + ":" + "*";
info.addObjectPermissions(this.buildPermissions(this.userPrivileges.get(username)));
return info;
}
return null;
}