com.lmsal.solarb
Interface SotKbQuerier

All Known Implementing Classes:
SotSqlQuerier

public interface SotKbQuerier


Field Summary
static java.lang.String FIELD_NAME
           
static java.lang.String HUMAN_NAME
           
static java.lang.String LONG_DESC
           
static java.lang.String SHORT_DESC
           
static java.lang.String TABLE_NAME
           
 
Method Summary
 int addObservationAnnotation(java.lang.String eventId, java.lang.String author, java.lang.String institution, java.lang.String emailAddr, java.lang.String annotationTitle, java.lang.String featuresFound, java.lang.String description, java.lang.String refUrl, float xCen, float yCen, float fovX, float fovY, java.util.Date startTime, java.util.Date endTime)
           
 java.lang.String addObservationCitation(java.lang.String citedEventId, java.lang.String author, java.lang.String institution, java.lang.String emailAddr, java.lang.String citationTitle, java.lang.String featuresFound, java.lang.String description, java.lang.String refUrl, float xCen, float yCen, float fovX, float fovY, java.util.Date startTime, java.util.Date endTime)
           
 void addObservationNote(java.lang.String eventId, java.lang.String userId, java.lang.String note)
           
 void addObservationRating(java.lang.String userId, java.lang.String eventId, float rating, java.lang.String note)
           
 int addPOD(java.lang.String assignedId, java.lang.String title, java.lang.String shortText, java.lang.String fullText, java.lang.String firstName, java.lang.String lastName, java.lang.String contactInfo, java.lang.String category, float importance, java.lang.String url, java.lang.String thumbUrl, java.util.Date startTime, java.util.Date endTime, java.util.Vector seeAlso)
           
 void addPODRating(java.lang.String userId, java.lang.String assignedId, float rating, java.lang.String note)
           
 void addVOEvent(java.lang.String argXml, boolean lintMode, boolean followup)
          Common code for Planning Events, Utility Events, and Observation Events
 void addVOEvents(java.lang.String[] args, boolean lintMode, boolean followup)
          Common code for ingesting a list of XML files
 java.util.Vector getCitedEvents(java.lang.String citingEventId)
           
 java.util.Vector getCitingEvents(java.lang.String citingEventId)
           
 java.util.HashMap getEventById(java.lang.String eventId)
           
 java.lang.String getEventXml(java.lang.String eventId)
           
 java.util.HashMap getGroupNames()
           
 java.lang.String getITunes(java.lang.String channelTitle, java.lang.String description, java.util.Vector voevents)
           
 java.lang.String getKML(java.lang.String title, java.lang.String description, java.util.Vector voevents)
           
 java.util.Vector getObservationAnnotations(java.lang.String eventId)
           
 java.util.Vector getObservationNotes(java.lang.String eventId, java.lang.String userId, java.lang.String note)
           
 java.util.Vector getObservationParams(java.lang.String eventId)
           
 int getPlanningEventCount(Filters filters)
           
 java.util.Vector getPlanningEvents(Filters filters, int startIdx, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getPlanningEvents(Filters filters, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getPOD(int maxCount, SortOrder sortInfo)
           
 java.util.HashMap getPODById(java.lang.String assignedId)
           
 java.util.HashMap getPODField(java.lang.String fieldName)
           
 java.util.HashMap getPODFields()
           
 int getPopularEventCount(float threshold, Filters filters)
           
 java.util.Vector getPopularEvents(float threshold, Filters filters, int startIdx, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getPopularEvents(float threshold, Filters filters, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getPopularPOD(float threshold, int maxCount, SortOrder sortInfo)
           
 int getRecentEventCount(int numDays, Filters filters)
           
 java.util.Vector getRecentEvents(Filters filters, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getRecentEvents(int numDays, Filters filters, int startIdx, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getRecentEvents(int numDays, Filters filters, int maxCount, SortOrder sortInfo)
           
 int getRecommendedEventCount(float threshold, Filters filters)
           
 java.util.Vector getRecommendedEvents(float threshold, Filters filters, int startIdx, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getRecommendedEvents(float threshold, Filters filters, int maxCount, SortOrder sortInfo)
           
 java.util.Vector getRecommendedPOD(float threshold, int startIdx, int maxCount, SortOrder sortInfo)
           
 java.util.HashMap getReferences(java.lang.String eventId)
           
 java.lang.String getRSS(java.lang.String channelTitle, java.lang.String description, java.util.Vector voevents)
           
 int getSearchObservationCount(java.lang.String phrase)
           
 int getSearchObservationCount(java.lang.String phrase, int eventType)
           
 java.util.HashMap getVOEventField(java.lang.String fieldName)
           
 java.util.HashMap getVOEventFields()
           
 void incrementDetailViewCount(java.lang.String eventId)
           
 void incrementDetailViewCount(java.lang.String eventId, int count)
           
 void incrementViewPOD(java.lang.String assignedId)
           
 void incrementViewPOD(java.lang.String assignedId, int count)
           
 int PODCount()
           
 int popularPODCount(float threshold)
           
 int recommendedPODCount(float threshold)
           
 java.util.Vector searchObservations(java.lang.String phrase, int eventType, int startIdx, int maxCount, SortOrder sortInfo)
           
 java.util.Vector searchObservations(java.lang.String phrase, int startIdx, int maxCount, SortOrder sortInfo)
           
 java.util.Vector searchPOD(java.lang.String phrase, int startIdx, int maxCount, SortOrder sortInfo)
           
 void setLogger(java.util.logging.Logger nLog)
           
 

Field Detail

FIELD_NAME

static final java.lang.String FIELD_NAME
See Also:
Constant Field Values

TABLE_NAME

static final java.lang.String TABLE_NAME
See Also:
Constant Field Values

HUMAN_NAME

static final java.lang.String HUMAN_NAME
See Also:
Constant Field Values

SHORT_DESC

static final java.lang.String SHORT_DESC
See Also:
Constant Field Values

LONG_DESC

static final java.lang.String LONG_DESC
See Also:
Constant Field Values
Method Detail

setLogger

void setLogger(java.util.logging.Logger nLog)

getVOEventFields

java.util.HashMap getVOEventFields()

getVOEventField

java.util.HashMap getVOEventField(java.lang.String fieldName)

getGroupNames

java.util.HashMap getGroupNames()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getCitedEvents

java.util.Vector getCitedEvents(java.lang.String citingEventId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getCitingEvents

java.util.Vector getCitingEvents(java.lang.String citingEventId)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getReferences

java.util.HashMap getReferences(java.lang.String eventId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getEventXml

java.lang.String getEventXml(java.lang.String eventId)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getEventById

java.util.HashMap getEventById(java.lang.String eventId)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getPlanningEventCount

int getPlanningEventCount(Filters filters)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getPlanningEvents

java.util.Vector getPlanningEvents(Filters filters,
                                   int startIdx,
                                   int maxCount,
                                   SortOrder sortInfo)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getPlanningEvents

java.util.Vector getPlanningEvents(Filters filters,
                                   int maxCount,
                                   SortOrder sortInfo)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getRecentEventCount

int getRecentEventCount(int numDays,
                        Filters filters)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getRecentEvents

java.util.Vector getRecentEvents(int numDays,
                                 Filters filters,
                                 int startIdx,
                                 int maxCount,
                                 SortOrder sortInfo)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getRecentEvents

java.util.Vector getRecentEvents(int numDays,
                                 Filters filters,
                                 int maxCount,
                                 SortOrder sortInfo)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getRecentEvents

java.util.Vector getRecentEvents(Filters filters,
                                 int maxCount,
                                 SortOrder sortInfo)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getPopularEventCount

int getPopularEventCount(float threshold,
                         Filters filters)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getPopularEvents

java.util.Vector getPopularEvents(float threshold,
                                  Filters filters,
                                  int startIdx,
                                  int maxCount,
                                  SortOrder sortInfo)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getPopularEvents

java.util.Vector getPopularEvents(float threshold,
                                  Filters filters,
                                  int maxCount,
                                  SortOrder sortInfo)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getRecommendedEventCount

int getRecommendedEventCount(float threshold,
                             Filters filters)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getRecommendedEvents

java.util.Vector getRecommendedEvents(float threshold,
                                      Filters filters,
                                      int startIdx,
                                      int maxCount,
                                      SortOrder sortInfo)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getRecommendedEvents

java.util.Vector getRecommendedEvents(float threshold,
                                      Filters filters,
                                      int maxCount,
                                      SortOrder sortInfo)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

addObservationCitation

java.lang.String addObservationCitation(java.lang.String citedEventId,
                                        java.lang.String author,
                                        java.lang.String institution,
                                        java.lang.String emailAddr,
                                        java.lang.String citationTitle,
                                        java.lang.String featuresFound,
                                        java.lang.String description,
                                        java.lang.String refUrl,
                                        float xCen,
                                        float yCen,
                                        float fovX,
                                        float fovY,
                                        java.util.Date startTime,
                                        java.util.Date endTime)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

addObservationAnnotation

int addObservationAnnotation(java.lang.String eventId,
                             java.lang.String author,
                             java.lang.String institution,
                             java.lang.String emailAddr,
                             java.lang.String annotationTitle,
                             java.lang.String featuresFound,
                             java.lang.String description,
                             java.lang.String refUrl,
                             float xCen,
                             float yCen,
                             float fovX,
                             float fovY,
                             java.util.Date startTime,
                             java.util.Date endTime)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getObservationAnnotations

java.util.Vector getObservationAnnotations(java.lang.String eventId)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

addObservationNote

void addObservationNote(java.lang.String eventId,
                        java.lang.String userId,
                        java.lang.String note)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getObservationNotes

java.util.Vector getObservationNotes(java.lang.String eventId,
                                     java.lang.String userId,
                                     java.lang.String note)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

incrementDetailViewCount

void incrementDetailViewCount(java.lang.String eventId,
                              int count)
                              throws java.lang.Exception
Throws:
java.lang.Exception

incrementDetailViewCount

void incrementDetailViewCount(java.lang.String eventId)
                              throws java.lang.Exception
Throws:
java.lang.Exception

addObservationRating

void addObservationRating(java.lang.String userId,
                          java.lang.String eventId,
                          float rating,
                          java.lang.String note)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getObservationParams

java.util.Vector getObservationParams(java.lang.String eventId)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getSearchObservationCount

int getSearchObservationCount(java.lang.String phrase,
                              int eventType)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getSearchObservationCount

int getSearchObservationCount(java.lang.String phrase)
                              throws java.lang.Exception
Throws:
java.lang.Exception

searchObservations

java.util.Vector searchObservations(java.lang.String phrase,
                                    int eventType,
                                    int startIdx,
                                    int maxCount,
                                    SortOrder sortInfo)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

searchObservations

java.util.Vector searchObservations(java.lang.String phrase,
                                    int startIdx,
                                    int maxCount,
                                    SortOrder sortInfo)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getRSS

java.lang.String getRSS(java.lang.String channelTitle,
                        java.lang.String description,
                        java.util.Vector voevents)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getITunes

java.lang.String getITunes(java.lang.String channelTitle,
                           java.lang.String description,
                           java.util.Vector voevents)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getKML

java.lang.String getKML(java.lang.String title,
                        java.lang.String description,
                        java.util.Vector voevents)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getPODFields

java.util.HashMap getPODFields()

getPODField

java.util.HashMap getPODField(java.lang.String fieldName)

getPODById

java.util.HashMap getPODById(java.lang.String assignedId)
                             throws java.lang.Exception
Throws:
java.lang.Exception

addPOD

int addPOD(java.lang.String assignedId,
           java.lang.String title,
           java.lang.String shortText,
           java.lang.String fullText,
           java.lang.String firstName,
           java.lang.String lastName,
           java.lang.String contactInfo,
           java.lang.String category,
           float importance,
           java.lang.String url,
           java.lang.String thumbUrl,
           java.util.Date startTime,
           java.util.Date endTime,
           java.util.Vector seeAlso)
           throws java.lang.Exception
Throws:
java.lang.Exception

PODCount

int PODCount()
             throws java.lang.Exception
Throws:
java.lang.Exception

getPOD

java.util.Vector getPOD(int maxCount,
                        SortOrder sortInfo)
                        throws java.lang.Exception
Throws:
java.lang.Exception

popularPODCount

int popularPODCount(float threshold)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getPopularPOD

java.util.Vector getPopularPOD(float threshold,
                               int maxCount,
                               SortOrder sortInfo)
                               throws java.lang.Exception
Throws:
java.lang.Exception

recommendedPODCount

int recommendedPODCount(float threshold)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getRecommendedPOD

java.util.Vector getRecommendedPOD(float threshold,
                                   int startIdx,
                                   int maxCount,
                                   SortOrder sortInfo)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

searchPOD

java.util.Vector searchPOD(java.lang.String phrase,
                           int startIdx,
                           int maxCount,
                           SortOrder sortInfo)
                           throws java.lang.Exception
Throws:
java.lang.Exception

incrementViewPOD

void incrementViewPOD(java.lang.String assignedId,
                      int count)
                      throws java.lang.Exception
Throws:
java.lang.Exception

incrementViewPOD

void incrementViewPOD(java.lang.String assignedId)
                      throws java.lang.Exception
Throws:
java.lang.Exception

addPODRating

void addPODRating(java.lang.String userId,
                  java.lang.String assignedId,
                  float rating,
                  java.lang.String note)
                  throws java.lang.Exception
Throws:
java.lang.Exception

addVOEvent

void addVOEvent(java.lang.String argXml,
                boolean lintMode,
                boolean followup)
                throws java.lang.Exception
Common code for Planning Events, Utility Events, and Observation Events

Parameters:
argXml - VOEvent XML file
lintMode - If true, will activate debug mode for extra printouts
followup - If true, treated as a followup event
Throws:
java.lang.Exception

addVOEvents

void addVOEvents(java.lang.String[] args,
                 boolean lintMode,
                 boolean followup)
                 throws java.lang.Exception
Common code for ingesting a list of XML files

Parameters:
args - A list of VOEvent XML files
lintMode - If true, will activate debug mode for extra printouts
followup - If true, treated as a followup event
Throws:
java.lang.Exception