|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.dwr.AjaxServices
public class AjaxServices
This class contains the methods called through DWR Ajax
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
AjaxServices()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
addTag(java.lang.String tag,
java.lang.String taggedObject,
java.lang.String type)
Adds tag and assures that there is only one tag for this combination of tag name, tagged Object and type. |
void |
addToSortOrder(java.lang.String path,
java.lang.String direction)
Add a Node from the sort order |
java.lang.String |
changeViewPathDescription(java.lang.String pathString,
java.lang.String description)
Set the description of a view path. |
java.lang.String |
convertObjects(java.lang.String bagType,
java.lang.String bagName,
java.lang.String param,
java.lang.String selectedValue)
used on list analysis page to convert list contents to orthologues. |
static java.lang.String |
deleteTag(java.lang.String tagName,
java.lang.String tagged,
java.lang.String type)
Deletes tag. |
static java.util.List<java.lang.String> |
deSelectId(java.lang.String deSelectId,
java.lang.String tableId)
remove an Id from the PagedTable |
static java.util.Set<java.lang.String> |
filterByTag(java.lang.String type,
java.lang.String tag)
Returns all objects names tagged with specified tag type and tag name. |
static java.util.List<java.lang.String> |
filterWebSearchables(java.lang.String scope,
java.lang.String type,
java.util.List<java.lang.String> tags,
java.lang.String filterText,
java.lang.String filterAction,
java.lang.String callId)
Given a scope, type, tags and some filter text, produce a list of matching WebSearchable, in a format useful in JavaScript. |
static java.util.List |
getColumnSummary(java.lang.String tableName,
java.lang.String summaryPath)
Get the summary for the given column |
static java.lang.String |
getConstraintLogic()
Get the grouped constraint logic |
java.lang.String[] |
getContent(java.lang.String suffix,
boolean wholeList,
java.lang.String field,
java.lang.String className)
|
static int |
getConvertCountForBag(java.lang.String bagName,
java.lang.String type)
For a given bag name and a type different from the bag type, give the number of converted objects |
static java.lang.String |
getNewsRead(java.lang.String rssURI)
Get the news |
static java.util.Set<java.lang.String> |
getObjectTags(java.lang.String type,
java.lang.String tagged)
Returns all tags by which is specified object tagged. |
static EnrichmentWidget |
getProcessEnrichmentWidget(java.lang.String widgetId,
java.lang.String bagName,
java.lang.String errorCorrection,
java.lang.String max,
java.lang.String filters,
java.lang.String externalLink,
java.lang.String externalLinkLabel)
|
static GraphWidget |
getProcessGraphWidget(java.lang.String widgetId,
java.lang.String bagName,
java.lang.String selectedExtraAttribute)
|
static HTMLWidget |
getProcessHTMLWidget(java.lang.String widgetId,
java.lang.String bagName)
|
static TableWidget |
getProcessTableWidget(java.lang.String widgetId,
java.lang.String bagName)
|
static java.lang.Integer |
getResultsSize(java.lang.String qid)
Return the number of rows of results from the query with the given query id. |
static java.util.Set<java.lang.String> |
getTags(java.lang.String type)
Returns all tags of specified tag type together with prefixes of these tags. |
java.lang.String |
preCompute(java.lang.String templateName)
Precomputes the given template query |
java.lang.String |
rename(java.lang.String name,
java.lang.String type,
java.lang.String reName)
Rename a element such as history, name, bag |
void |
reorder(java.lang.String newOrder,
java.lang.String oldOrder)
AJAX request - reorder view. |
void |
reorderConstraints(java.lang.String newOrder,
java.lang.String oldOrder)
AJAX request - reorder the constraints. |
java.lang.String |
saveBagDescription(java.lang.String bagName,
java.lang.String description)
For a given bag, set its description |
static void |
saveToggleState(java.lang.String elementId,
boolean opened)
Saves information, that some element was toggled - displayed or hidden. |
static void |
selectAll(int index,
java.lang.String tableId)
Select all the elements in a PagedTable |
static java.util.List<java.lang.String> |
selectId(java.lang.String selectedId,
java.lang.String tableId,
java.lang.String columnIndex)
Add an ID to the PagedTable selection |
static void |
setConstraintLogic(java.lang.String expression)
Set the constraint logic on a query to be the given expression. |
void |
setFavourite(java.lang.String name,
java.lang.String type,
boolean isFavourite)
Creates a favourite Tag for the given templateName |
static void |
setState(java.lang.String name,
java.lang.String value)
Set state that should be saved during the session. |
java.lang.String |
summarise(java.lang.String templateName)
Summarises the given template query. |
static java.lang.String |
validateBagName(java.lang.String bagName)
validate bag upload |
static java.lang.String |
validateBagOperations(java.lang.String bagName,
java.lang.String[] selectedBags,
java.lang.String operation)
validation that happens before new bag is saved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public AjaxServices()
| Method Detail |
|---|
public void setFavourite(java.lang.String name,
java.lang.String type,
boolean isFavourite)
name - the name of the template we want to set as a favouritetype - type of tag (bag or template)isFavourite - whether or not this item is currently a favouritepublic java.lang.String preCompute(java.lang.String templateName)
templateName - the template query name
public java.lang.String summarise(java.lang.String templateName)
templateName - the template query name
public java.lang.String rename(java.lang.String name,
java.lang.String type,
java.lang.String reName)
throws java.lang.Exception
name - the name of the elementtype - history, saved, bagreName - the new name for the element
java.lang.Exception - if the application business logic throws
an exception
public java.lang.String saveBagDescription(java.lang.String bagName,
java.lang.String description)
throws java.lang.Exception
bagName - the bagdescription - the description as entered by the user
java.lang.Exception - an exception
public java.lang.String changeViewPathDescription(java.lang.String pathString,
java.lang.String description)
pathString - the string representation of the pathdescription - the new description
public static java.util.List getColumnSummary(java.lang.String tableName,
java.lang.String summaryPath)
throws java.lang.Exception
summaryPath - the path for the column as a StringtableName - name of column-owning table
java.lang.Exception - an exceptionpublic static java.lang.Integer getResultsSize(java.lang.String qid)
qid - the id
public static java.util.List<java.lang.String> filterWebSearchables(java.lang.String scope,
java.lang.String type,
java.util.List<java.lang.String> tags,
java.lang.String filterText,
java.lang.String filterAction,
java.lang.String callId)
scope - the scope (from TemplateHelper.GLOBAL_TEMPLATE or TemplateHelper.USER_TEMPLATE,
even though not all WebSearchables are templates)type - the type (from TagTypes)tags - the tags to filter onfilterText - the text to pass to LucenefilterAction - toggles favourites filter off an on; will be blank or 'favourites'callId - unique id
public static int getConvertCountForBag(java.lang.String bagName,
java.lang.String type)
bagName - the name of the bagtype - the type to convert to
public static void saveToggleState(java.lang.String elementId,
boolean opened)
elementId - element idopened - new aspect state
public static void setState(java.lang.String name,
java.lang.String value)
name - name of statevalue - value of statepublic static java.lang.String validateBagName(java.lang.String bagName)
bagName - name of new bag to be validated
public static java.lang.String validateBagOperations(java.lang.String bagName,
java.lang.String[] selectedBags,
java.lang.String operation)
bagName - name of new bagselectedBags - bags involved in operationoperation - which operation is taking place - delete, union, intersect or subtract
public static GraphWidget getProcessGraphWidget(java.lang.String widgetId,
java.lang.String bagName,
java.lang.String selectedExtraAttribute)
widgetId - unique id for this widgetbagName - name of listselectedExtraAttribute - extra attribute (like organism)
public static HTMLWidget getProcessHTMLWidget(java.lang.String widgetId,
java.lang.String bagName)
widgetId - unique id for this widgetbagName - name of list
public static TableWidget getProcessTableWidget(java.lang.String widgetId,
java.lang.String bagName)
widgetId - unique ID for this widgetbagName - name of list
public static EnrichmentWidget getProcessEnrichmentWidget(java.lang.String widgetId,
java.lang.String bagName,
java.lang.String errorCorrection,
java.lang.String max,
java.lang.String filters,
java.lang.String externalLink,
java.lang.String externalLinkLabel)
widgetId - unique ID for each widgetbagName - name of listerrorCorrection - error correction method to usemax - maximum value to displayfilters - list of strings used to filter widget results, ie OntologyexternalLink - link to external datasourceexternalLinkLabel - name of external datasource.
public static java.util.List<java.lang.String> selectId(java.lang.String selectedId,
java.lang.String tableId,
java.lang.String columnIndex)
selectedId - the idtableId - the identifier for the PagedTablecolumnIndex - the column of the selected id
public static java.util.List<java.lang.String> deSelectId(java.lang.String deSelectId,
java.lang.String tableId)
deSelectId - the ID to remove from the selectiontableId - the PagedTable identifier
public static void selectAll(int index,
java.lang.String tableId)
index - the index of the selected columntableId - the PagedTable identifier
public void reorder(java.lang.String newOrder,
java.lang.String oldOrder)
newOrder - the new order as a StringoldOrder - the previous order as a String
public void reorderConstraints(java.lang.String newOrder,
java.lang.String oldOrder)
newOrder - the new order as a StringoldOrder - the previous order as a String
public void addToSortOrder(java.lang.String path,
java.lang.String direction)
throws java.lang.Exception
path - the Path as a Stringdirection - the direction to sort by
java.lang.Exception - if the application business logic throwspublic static java.lang.String getNewsRead(java.lang.String rssURI)
rssURI - the URI of the rss feed
public static java.util.Set<java.lang.String> filterByTag(java.lang.String type,
java.lang.String tag)
type - tag typetag - tag name
public static java.lang.String addTag(java.lang.String tag,
java.lang.String taggedObject,
java.lang.String type)
tag - tag nametaggedObject - object id that is tagged by this tagtype - tag type
public static java.lang.String deleteTag(java.lang.String tagName,
java.lang.String tagged,
java.lang.String type)
tagName - tag nametagged - id of tagged objecttype - tag type
public static java.util.Set<java.lang.String> getTags(java.lang.String type)
type - tag type
public static java.util.Set<java.lang.String> getObjectTags(java.lang.String type,
java.lang.String tagged)
type - tag typetagged - id of tagged object
public static void setConstraintLogic(java.lang.String expression)
throws PathException
expression - the constraint logic for the query
PathException - if the query is invalidpublic static java.lang.String getConstraintLogic()
public java.lang.String[] getContent(java.lang.String suffix,
boolean wholeList,
java.lang.String field,
java.lang.String className)
suffix - string of input before request for more resultswholeList - whether or not to show the entire list or a truncated versionfield - field name from the table for the lucene searchclassName - class name (table in the database) for lucene search
public java.lang.String convertObjects(java.lang.String bagType,
java.lang.String bagName,
java.lang.String param,
java.lang.String selectedValue)
throws java.io.UnsupportedEncodingException
bagType - class of bagbagName - name of bagparam - name of parameter value, eg. `orthologue`selectedValue - orthologue organism
java.io.UnsupportedEncodingException - bad encoding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||