Package com.esri.gpt.framework.collection

Examples of com.esri.gpt.framework.collection.StringAttributeMap.containsKey()


  RequestContext rc = getContextBroker().extractRequestContext();
  UsernamePasswordCredentials upc = rc.getIdentityConfiguration().getSimpleConfiguration().getServiceAccountCredentials();
  if(upc !=null) return _manageUser;
 
  StringAttributeMap sNavParameters = rc.getCatalogConfiguration().getParameters();
  if(sNavParameters.containsKey("ldap.identity.manage.userRoleEnabled")){ 
    String hasManageUser = Val.chkStr(sNavParameters.getValue("ldap.identity.manage.userRoleEnabled"));
    _manageUser = Boolean.valueOf(hasManageUser);
  }
  return _manageUser;
}
View Full Code Here


  boolean umHasDeleteUserLink = false;
  UsernamePasswordCredentials upc = context.getIdentityConfiguration().getSimpleConfiguration().getServiceAccountCredentials();
  if(upc !=null) return umHasDeleteUserLink;
 
  StringAttributeMap umParameters = context.getCatalogConfiguration().getParameters();
  if(umParameters.containsKey("ldap.identity.manage.userRoleEnabled")){ 
    String umHasDeleteUserLinkEnabled = com.esri.gpt.framework.util.Val.chkStr(umParameters.getValue("ldap.identity.manage.userRoleEnabled"));
    umHasDeleteUserLink = Boolean.valueOf(umHasDeleteUserLinkEnabled);
  }
  return umHasDeleteUserLink;
}
View Full Code Here

* @return true is the functionality is enabled
*/
private boolean checkHasDeleteUser(RequestContext context) {
  boolean umHasDeleteUserButton = false;
  StringAttributeMap umParameters = context.getCatalogConfiguration().getParameters();
  if(umParameters.containsKey("ldap.identity.manage.userRoleEnabled")){ 
     String umDeleteUserButtonEnabled = com.esri.gpt.framework.util.Val.chkStr(umParameters.getValue("ldap.identity.manage.userRoleEnabled"));
     umHasDeleteUserButton = Boolean.valueOf(umDeleteUserButtonEnabled);
  }
  return umHasDeleteUserButton;
}
View Full Code Here

* @return true is the functionality is enabled
*/
protected boolean checkIfAllowConfigured(RequestContext context) {
  boolean bCheckIfAllowed = false;
  StringAttributeMap umParameters = context.getCatalogConfiguration().getParameters();
  if(umParameters.containsKey("ldap.identity.restrictToConfiguredRoles")){ 
     String sCheckIfAllowed = com.esri.gpt.framework.util.Val.chkStr(umParameters.getValue("ldap.identity.restrictToConfiguredRoles"));
     bCheckIfAllowed = Boolean.valueOf(sCheckIfAllowed);
  }
  return bCheckIfAllowed;
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.