|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.application.editor.business.EditorService
This class provides the general editor services common to all the users.
| Method Summary | |
java.lang.String |
getClassName(java.lang.String topic)
Returns the class name associated with the given topic. |
java.lang.String |
getHelpURL(javax.servlet.http.HttpServletRequest request)
Returns the relative link to the help page. |
static EditorService |
getInstance()
Returns the only instance of this class using the default resources file. |
static EditorService |
getInstance(java.lang.String name)
Returns the only instance of this class using given resources file. |
java.util.Collection |
getIntactTypes()
Returns a collection of Intact types. |
int |
getInteger(java.lang.String key)
Retrieves the resource for given key from the editor resource file as an int. |
int |
getInteractionLimit()
A convenient method to return the interaction limit for JSPs. |
java.lang.String |
getInteractionPageLimit()
A convenient method to return the interaction per page limit for JSPs. |
java.lang.String |
getResource(java.lang.String key)
Retrieves the resource for given key from the editor resource file. |
java.lang.String |
getSearchURL(javax.servlet.http.HttpServletRequest request)
Returns the relative link to the search application. |
java.lang.String |
getTopic(java.lang.Class clazz)
Returns the topic name for given class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static EditorService getInstance()
getInstance(String), it will be returned instead (i.e, the default
resource is ignored).
getInstance(String)
public static EditorService getInstance(java.lang.String name)
throws EmptyTopicsException
name - the resource file name.
EmptyTopicsException - thrown for an empty resource file.public java.lang.String getClassName(java.lang.String topic)
topic - the topic to search in the Intact types resource.
topic.public java.lang.String getTopic(java.lang.Class clazz)
clazz - the Class object to extract the tipic name.
clazzpublic java.util.Collection getIntactTypes()
ArrayList of Intact types. The list sorted on an
alphabetical order. Since this reference refers to this class's
internal cache, handle this reference with care (do not modify contents).public java.lang.String getSearchURL(javax.servlet.http.HttpServletRequest request)
request - the request object to get the context path.
This is only used once when this method is called for the first time.
For subsequent calls, the cached value is returned.
public java.lang.String getHelpURL(javax.servlet.http.HttpServletRequest request)
request - the request object to get the context path.
This is only used once when this method is called for the first time.
For subsequent calls, the cached value is returned.
public java.lang.String getResource(java.lang.String key)
key - the key to search for the resource.
key if it is found.public int getInteger(java.lang.String key)
key - the key to search for the resource. This must be a key to an integer
property.
key if it is found as an integer.public int getInteractionLimit()
getInteger(String) with exp.interaction.limit
as the key.
getInteger(String)public java.lang.String getInteractionPageLimit()
getResource(String) with
exp.interaction.page.limit as the key.
getResource(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||