org.gcube.contentmanagement.contentmanager.smsplugin.delegates
Class ReadUtil

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.smsplugin.delegates.ReadUtil

public class ReadUtil
extends java.lang.Object

Author:
Federico De Faveri defaveri@isti.cnr.it

Field Summary
static TreeWalkRule ALTERNATIVE_WALK_RULE
           
static TreeWalkRule ANNOTATION_WALK_RULE
           
static InformationObjectTreeResponse COMPLETE_TREE
           
static TreeWalkRule METADATA_WALK_RULE
           
static TreeWalkRule PART_WALK_RULE
           
 
Constructor Summary
ReadUtil()
           
 
Method Summary
static PropertyCondition calculatePropertyCondition(DocumentProperty label)
           
static PropertyCondition calculatePropertyConditionForContentLocation(DocumentProjection projection)
           
static java.util.List<TreeWalkRule> calculateWalkingRules(DocumentProjection projection)
          Convert the given projection into a TreeWalk rules list.
static InformationObjectTreeResponse createResponseConfig(DocumentProjection projection)
          Creates the ResponseConfig for the SMS call based on passed projection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPLETE_TREE

public static final InformationObjectTreeResponse COMPLETE_TREE

PART_WALK_RULE

public static final TreeWalkRule PART_WALK_RULE

ALTERNATIVE_WALK_RULE

public static final TreeWalkRule ALTERNATIVE_WALK_RULE

METADATA_WALK_RULE

public static final TreeWalkRule METADATA_WALK_RULE

ANNOTATION_WALK_RULE

public static final TreeWalkRule ANNOTATION_WALK_RULE
Constructor Detail

ReadUtil

public ReadUtil()
Method Detail

createResponseConfig

public static InformationObjectTreeResponse createResponseConfig(DocumentProjection projection)
Creates the ResponseConfig for the SMS call based on passed projection.

Parameters:
projection -
Returns:

calculateWalkingRules

public static java.util.List<TreeWalkRule> calculateWalkingRules(DocumentProjection projection)
Convert the given projection into a TreeWalk rules list.

Parameters:
projection - the projection to convert.
Returns:
the walk rules list.

calculatePropertyConditionForContentLocation

public static PropertyCondition calculatePropertyConditionForContentLocation(DocumentProjection projection)

calculatePropertyCondition

public static PropertyCondition calculatePropertyCondition(DocumentProperty label)