tvaultapi/src/main/java/com/tmobile/cso/vault/api/controller/ControllerUtil.java
public static  String populateUserMetaJson(String RoleName, String username,String type) {
        String _path = TVaultConstants.AWS_USERS_METADATA_MOUNT_PATH + "/" + username +"/" + RoleName;
        AWSMetadataDetails awsRoleMetadataDetails = new AWSMetadataDetails();
        awsRoleMetadataDetails.setCreatedBy(username);
        awsRoleMetadataDetails.setName(RoleName);
        awsRoleMetadataDetails.setType(type);
		AWSRoleMetadata awsRoleMetadata =  new AWSRoleMetadata(_path, awsRoleMetadataDetails);
		String jsonStr = JSONUtil.getJSON(awsRoleMetadata);
		Map<String,Object> rqstParams = ControllerUtil.parseJson(jsonStr);
		rqstParams.put("path",_path);
		return ControllerUtil.convetToJson(rqstParams);
    }
/**
     * Populate aws metadata json with the user information
     * @param RoleName
     * @param username
     * @param auth_type
     * @return
     */
Populate aws metadata json with the user information
@param RoleName
@param username
@param auth_type
@return
Populate aws metadata json with the user information @param RoleName @param username @param auth_type @return
public static  String populateUserMetaJson(String RoleName, String username,String type) {
        String _path = TVaultConstants.AWS_USERS_METADATA_MOUNT_PATH + "/" + username +"/" + RoleName;
        AWSMetadataDetails awsRoleMetadataDetails = new AWSMetadataDetails();
        awsRoleMetadataDetails.setCreatedBy(username);
        awsRoleMetadataDetails.setName(RoleName);
        awsRoleMetadataDetails.setType(type);
		AWSRoleMetadata awsRoleMetadata =  new AWSRoleMetadata(_path, awsRoleMetadataDetails);
		String jsonStr = JSONUtil.getJSON(awsRoleMetadata);
		Map<String,Object> rqstParams = ControllerUtil.parseJson(jsonStr);
		rqstParams.put("path",_path);
		return ControllerUtil.convetToJson(rqstParams);
    }
public static String populateUserMetaJson ( String RoleName , String username , String type ) { String _path = TVaultConstants . AWS_USERS_METADATA_MOUNT_PATH + "/" + username + "/" + RoleName ; AWSMetadataDetails awsRoleMetadataDetails = new AWSMetadataDetails ( ) ; awsRoleMetadataDetails . setCreatedBy ( username ) ; awsRoleMetadataDetails . setName ( RoleName ) ; awsRoleMetadataDetails . setType ( type ) ; AWSRoleMetadata awsRoleMetadata = new AWSRoleMetadata ( _path , awsRoleMetadataDetails ) ; String jsonStr = JSONUtil . getJSON ( awsRoleMetadata ) ; Map < String , Object > rqstParams = ControllerUtil . parseJson ( jsonStr ) ; rqstParams . put ( "path" , _path ) ; return ControllerUtil . convetToJson ( rqstParams ) ; }
Populate aws metadata json with the user information
 @param RoleName
 @param username
 @param auth_type
 @return
Populate aws metadata json with the user information @param RoleName @param username @param auth_type @return