Package com.esri.gpt.framework.security.principal

Examples of com.esri.gpt.framework.security.principal.Users


* @param context the active request context
* @param forManagement <code>true</code> for management
*/
public void build(RequestContext context, boolean forManagement) {
  _list.clear();
  Users users = Publisher.buildSelectablePublishers(context,forManagement);
  for (User u: users.values()) {
    _list.add(new SelectItem(u.getKey(),u.getName()));
  }
}
View Full Code Here


  } else {
    User user = context.getUser();
    if (sSelectedKey.equals(user.getKey())) {
      return new Publisher(context);
    } else {
      Users users = Publisher.buildSelectablePublishers(context,forManagement);
      if (users.containsKey(sSelectedKey)) {
        return new Publisher(context,sSelectedKey);
      } else {
        throw new NotAuthorizedException("Not authorized.");
      }
    }
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.security.principal.Users

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.