gr.uoa.di.madgik.rr.element.search
Class Field

java.lang.Object
  extended by gr.uoa.di.madgik.rr.element.RRElement
      extended by gr.uoa.di.madgik.rr.element.search.Field
All Implemented Interfaces:
gr.uoa.di.madgik.rr.element.IRRElement

public class Field
extends gr.uoa.di.madgik.rr.element.RRElement


Nested Class Summary
static class Field.Behavior
           
 
Constructor Summary
Field()
           
Field(FieldDao item)
           
 
Method Summary
protected  void apply(gr.uoa.di.madgik.rr.element.IRRElement target, boolean applyDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, boolean doStore)
           
protected  void apply(gr.uoa.di.madgik.rr.element.IRRElement target, boolean applyDetails, String scope, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, boolean doStore)
           
 String deepToString()
           
 void delete(boolean deleteDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 void delete(boolean deleteDetails, String scope)
           
 void delete(boolean deleteDetails, String scope, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 void delete(boolean deleteDetails, String scope, gr.uoa.di.madgik.rr.RRContext.WritePolicy policy)
           
 boolean equals(Object other)
           
 boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
static List<Field> getAll(boolean loadDetails)
           
static List<Field> getAll(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
static List<Field> getAll(boolean loadDetails, String scope)
           
static Field.Behavior getBehavior()
           
static List<Field> getBrowsableFieldsOfCollection(boolean loadDetails, String collection)
           
static List<Field> getBrowsableFieldsOfCollections(boolean loadDetails, boolean filter, Set<String> collections)
           
static Field getById(boolean loadDetails, String id)
           
 String getDescription()
           
static String getFieldNameById(String id)
           
static List<Field> getFieldsWithName(boolean loadDetails, String name)
           
 String getID()
           
 gr.uoa.di.madgik.rr.RRContext getISContext()
           
 FieldDao getItem()
           
 String getName()
           
 Presentable getPresentable(String id)
           
static List<Field> getPresentableFieldsOfCollection(boolean loadDetails, String collection)
           
static List<Field> getPresentableFieldsOfCollections(boolean loadDetails, boolean filter, Set<String> collections)
           
 Set<Presentable> getPresentables()
           
 Searchable getSearchable(String id)
           
static List<Field> getSearchableFieldsOfCollection(boolean loadDetails, String collection)
           
static List<Field> getSearchableFieldsOfCollectionByCapabilities(boolean loadDetails, String collection, Set<String> capabilities)
           
static List<Field> getSearchableFieldsOfCollections(boolean loadDetails, boolean filter, Set<String> collections)
           
 Set<Searchable> getSearchables()
           
 boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target, boolean includeDetails)
           
 boolean load(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 boolean load(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, boolean overridePrefetched)
           
 boolean load(boolean loadDetails, String scope)
           
 boolean load(boolean loadDetails, String scope, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 boolean load(boolean loadDetails, String scope, gr.uoa.di.madgik.rr.RRContext.ReadPolicy policy)
           
 void setDescription(String description)
           
 void setDirty()
           
 void setID(String id)
           
 void setName(String name)
           
 void store(boolean storeDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 void store(boolean storeDetails, String scope)
           
 void store(boolean storeDetails, String scope, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 void store(boolean storeDetails, String scope, gr.uoa.di.madgik.rr.RRContext.WritePolicy policy)
           
 
Methods inherited from class gr.uoa.di.madgik.rr.element.RRElement
delete, delete, exists, exists, load, load, store, store
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Field

public Field()
      throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

Field

public Field(FieldDao item)
      throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
Method Detail

getISContext

public gr.uoa.di.madgik.rr.RRContext getISContext()

getBehavior

public static Field.Behavior getBehavior()

getID

public String getID()

setID

public void setID(String id)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getSearchables

public Set<Searchable> getSearchables()

getPresentables

public Set<Presentable> getPresentables()

getItem

public FieldDao getItem()

setDirty

public void setDirty()

load

public boolean load(boolean loadDetails,
                    gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

load

public boolean load(boolean loadDetails,
                    gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
                    boolean overridePrefetched)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

load

public boolean load(boolean loadDetails,
                    String scope)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

load

public boolean load(boolean loadDetails,
                    String scope,
                    gr.uoa.di.madgik.rr.RRContext.ReadPolicy policy)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

load

public boolean load(boolean loadDetails,
                    String scope,
                    gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

delete

public void delete(boolean deleteDetails,
                   gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
            throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

delete

public void delete(boolean deleteDetails,
                   String scope)
            throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

delete

public void delete(boolean deleteDetails,
                   String scope,
                   gr.uoa.di.madgik.rr.RRContext.WritePolicy policy)
            throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

delete

public void delete(boolean deleteDetails,
                   String scope,
                   gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
            throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

store

public void store(boolean storeDetails,
                  gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

store

public void store(boolean storeDetails,
                  String scope)
           throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

store

public void store(boolean storeDetails,
                  String scope,
                  gr.uoa.di.madgik.rr.RRContext.WritePolicy policy)
           throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

store

public void store(boolean storeDetails,
                  String scope,
                  gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

apply

protected void apply(gr.uoa.di.madgik.rr.element.IRRElement target,
                     boolean applyDetails,
                     gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
                     boolean doStore)
              throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

apply

protected void apply(gr.uoa.di.madgik.rr.element.IRRElement target,
                     boolean applyDetails,
                     String scope,
                     gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
                     boolean doStore)
              throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

isEqual

public boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target,
                       boolean includeDetails)
                throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

equals

public boolean equals(Object other)
Overrides:
equals in class Object

getSearchable

public Searchable getSearchable(String id)

getPresentable

public Presentable getPresentable(String id)

deepToString

public String deepToString()

exists

public boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
               throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAll

public static List<Field> getAll(boolean loadDetails,
                                 gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
                          throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAll

public static List<Field> getAll(boolean loadDetails)
                          throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAll

public static List<Field> getAll(boolean loadDetails,
                                 String scope)
                          throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getById

public static Field getById(boolean loadDetails,
                            String id)
                     throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getFieldNameById

public static String getFieldNameById(String id)
                               throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getFieldsWithName

public static List<Field> getFieldsWithName(boolean loadDetails,
                                            String name)
                                     throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getSearchableFieldsOfCollection

public static List<Field> getSearchableFieldsOfCollection(boolean loadDetails,
                                                          String collection)
                                                   throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getSearchableFieldsOfCollections

public static List<Field> getSearchableFieldsOfCollections(boolean loadDetails,
                                                           boolean filter,
                                                           Set<String> collections)
                                                    throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getBrowsableFieldsOfCollection

public static List<Field> getBrowsableFieldsOfCollection(boolean loadDetails,
                                                         String collection)
                                                  throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getBrowsableFieldsOfCollections

public static List<Field> getBrowsableFieldsOfCollections(boolean loadDetails,
                                                          boolean filter,
                                                          Set<String> collections)
                                                   throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getPresentableFieldsOfCollection

public static List<Field> getPresentableFieldsOfCollection(boolean loadDetails,
                                                           String collection)
                                                    throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getPresentableFieldsOfCollections

public static List<Field> getPresentableFieldsOfCollections(boolean loadDetails,
                                                            boolean filter,
                                                            Set<String> collections)
                                                     throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getSearchableFieldsOfCollectionByCapabilities

public static List<Field> getSearchableFieldsOfCollectionByCapabilities(boolean loadDetails,
                                                                        String collection,
                                                                        Set<String> capabilities)
                                                                 throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException


Copyright © 2012. All Rights Reserved.