org.gcube.contentmanagement.timeseriesservice.impl.curation.rules
Class Rule

java.lang.Object
  extended by org.gcube.common.dbinterface.persistence.ObjectStateControl
      extended by org.gcube.contentmanagement.timeseriesservice.impl.curation.rules.Rule
All Implemented Interfaces:
Serializable

public class Rule
extends org.gcube.common.dbinterface.persistence.ObjectStateControl
implements Serializable

See Also:
Serialized Form

Constructor Summary
Rule(String name, String description, String humanReadable, org.gcube.contentmanagement.timeseriesservice.stubs.types.FilterCondition filter, org.gcube.common.dbinterface.types.Type.Types type)
           
 
Method Summary
static void destroy(String id)
           
static Rule get(String id)
           
static Iterator<Rule> getAll()
           
static Iterator<Rule> getByType(org.gcube.common.dbinterface.types.Type.Types type)
           
 String getDescription()
           
 org.gcube.contentmanagement.timeseriesservice.stubs.types.FilterCondition getFilter()
           
 String getHumanReadable()
           
 String getId()
           
 String getName()
           
 org.gcube.common.dbinterface.types.Type.Types getType()
           
 boolean store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rule

public Rule(String name,
            String description,
            String humanReadable,
            org.gcube.contentmanagement.timeseriesservice.stubs.types.FilterCondition filter,
            org.gcube.common.dbinterface.types.Type.Types type)
Method Detail

getId

public String getId()
Returns:
the id

getName

public String getName()
Returns:
the name

getDescription

public String getDescription()
Returns:
the description

getHumanReadable

public String getHumanReadable()
Returns:
the humanReadable

getType

public org.gcube.common.dbinterface.types.Type.Types getType()
Returns:
the type

getFilter

public org.gcube.contentmanagement.timeseriesservice.stubs.types.FilterCondition getFilter()
Returns:
the filter

store

public boolean store()

getAll

public static Iterator<Rule> getAll()
                             throws Exception
Returns:
Throws:
Exception

getByType

public static Iterator<Rule> getByType(org.gcube.common.dbinterface.types.Type.Types type)
                                throws Exception
Returns:
Throws:
Exception

get

public static Rule get(String id)
                throws Exception
Parameters:
id -
Returns:
Throws:
Exception

destroy

public static void destroy(String id)
                    throws Exception
Parameters:
id -
Throws:
Exception


Copyright © 2012. All Rights Reserved.