agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/JsonHandler.java
/**
     * Get permissions field from {@link JsonNode}
     *
     * @param permissionNode{@link JsonNode} to parse field from
     * @return {@link ArrayNode} of permissions, null if permission field is not specified
     * @throws MetadataQueryException if permissions field is not an array
     * @deprecated
     */
Get permissions field from  JsonNode
@param permissionNode JsonNode to parse field from
@return  ArrayNode of permissions, null if permission field is not specified
@throws MetadataQueryException if permissions field is not an array
@deprecated
Get permissions field from JsonNode @param permissionNode JsonNode to parse field from @return ArrayNode of permissions null if permission field is not specified @throws MetadataQueryException if permissions field is not an array @deprecated
public ArrayNode parsePermissionToArrayNode(JsonNode permissionNode) throws MetadataQueryException {
        if (permissionNode.hasNonNull("permissions")) {
            if (permissionNode.get("permissions").isArray()) {
                return (ArrayNode) permissionNode.get("permissions");
            } else {
                throw new MetadataQueryException(
                        "Invalid permissions value. permissions should be an "
                                + "JSON array of permission objects.");
            }
        }
        return null;
    }
public ArrayNode parsePermissionToArrayNode ( JsonNode permissionNode ) throws MetadataQueryException { if ( permissionNode . hasNonNull ( "permissions" ) ) { if ( permissionNode . get ( "permissions" ) . isArray ( ) ) { return ( ArrayNode ) permissionNode . get ( "permissions" ) ; } else { throw new MetadataQueryException ( "Invalid permissions value. permissions should be an " + "JSON array of permission objects." ) ; } } return null ; }
Get permissions field from {@link JsonNode}
 @param permissionNode{@link JsonNode} to parse field from
 @return {@link ArrayNode} of permissions, null if permission field is not specified
 @throws MetadataQueryException if permissions field is not an array
 @deprecated
Get permissions field from { @link JsonNode } @param permissionNode { @link JsonNode } to parse field from @return { @link ArrayNode } of permissions null if permission field is not specified @throws MetadataQueryException if permissions field is not an array @deprecated