tvaultapi/src/main/java/com/tmobile/cso/vault/api/controller/ControllerUtil.java
public static boolean areSafeGroupInputsValid(Map<String,String> requestMap) {
		if (MapUtils.isEmpty(requestMap)) {
			return false;
		}
		if (ObjectUtils.isEmpty(requestMap.get("groupname"))
				|| ObjectUtils.isEmpty(requestMap.get("path"))
				|| ObjectUtils.isEmpty(requestMap.get(ACCESSTR))
				) {
			return false;
		}
		String path = requestMap.get("path");
		if (!isPathValid(path)) {
			return false;
		}
		String access = (String) requestMap.get(ACCESSTR);
		if (!ArrayUtils.contains(permissions, access)) {
			return false;
		}
		return true;
	}
/**
	 * Validates Safe Group Inputs
	 * @param requestMap
	 * @return
	 */
Validates Safe Group Inputs
@param requestMap
@return
Validates Safe Group Inputs @param requestMap @return
public static boolean areSafeGroupInputsValid(Map<String,String> requestMap) {
		if (MapUtils.isEmpty(requestMap)) {
			return false;
		}
		if (ObjectUtils.isEmpty(requestMap.get("groupname"))
				|| ObjectUtils.isEmpty(requestMap.get("path"))
				|| ObjectUtils.isEmpty(requestMap.get(ACCESSTR))
				) {
			return false;
		}
		String path = requestMap.get("path");
		if (!isPathValid(path)) {
			return false;
		}
		String access = (String) requestMap.get(ACCESSTR);
		if (!ArrayUtils.contains(permissions, access)) {
			return false;
		}
		return true;
	}
public static boolean areSafeGroupInputsValid ( Map < String , String > requestMap ) { if ( MapUtils . isEmpty ( requestMap ) ) { return false ; } if ( ObjectUtils . isEmpty ( requestMap . get ( "groupname" ) ) || ObjectUtils . isEmpty ( requestMap . get ( "path" ) ) || ObjectUtils . isEmpty ( requestMap . get ( ACCESSTR ) ) ) { return false ; } String path = requestMap . get ( "path" ) ; if ( ! isPathValid ( path ) ) { return false ; } String access = ( String ) requestMap . get ( ACCESSTR ) ; if ( ! ArrayUtils . contains ( permissions , access ) ) { return false ; } return true ; }
Validates Safe Group Inputs
 @param requestMap
 @return
Validates Safe Group Inputs @param requestMap @return