|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.service.MockJiraServiceContainer
public class MockJiraServiceContainer
Nested Class Summary | |
---|---|
static class |
MockJiraServiceContainer.Builder
|
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.service.JiraService |
---|
NAME_COMPARATOR |
Method Summary | |
---|---|
void |
destroy()
This method is called when the service is unloaded (usually when the web application or server is being shut down). |
boolean |
equals(Object obj)
|
String |
getDefaultProperty(String propertyKey)
Returns the default property value for a key |
long |
getDelay()
|
String |
getDescription()
A textual description of the service. |
Long |
getId()
|
String |
getKey()
Return the key of this object |
long |
getLastRun()
|
Long |
getLongProperty(String propertyKey)
Returns a property of this object with the specified key as a long |
String |
getName()
A textual name of the service as entered by the user from the web interface. |
ObjectConfiguration |
getObjectConfiguration()
Retrieves an object configuration object with properties that can be set |
com.opensymphony.module.propertyset.PropertySet |
getProperties()
Retrieve all the specified Properties for this object |
String |
getProperty(String propertyKey)
Returns a property of this object with the specified key |
String |
getServiceClass()
|
Class |
getServiceClassObject()
|
String |
getTextProperty(String propertyKey)
Returns a property of this object with the specified key, the property is of type text |
boolean |
hasProperty(String propertyKey)
Checks if this object has a particular property |
void |
init(com.opensymphony.module.propertyset.PropertySet props)
Initialise the service. |
boolean |
isDueAt(long time)
Is this service due to run at the specified time. |
boolean |
isInternal()
Indicates whether administrators can delete this service from within the web interface. |
boolean |
isRunning()
|
boolean |
isUnique()
Whether this service class should be unique. |
boolean |
isUsable()
|
void |
run()
Perform the action of this service. |
void |
setDelay(long delay)
|
void |
setLastRun()
Record when run. |
void |
setName(String name)
Used to set the service's name. |
void |
setRunning(boolean running)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public long getDelay()
getDelay
in interface JiraServiceContainer
public Long getId()
getId
in interface JiraServiceContainer
public long getLastRun()
getLastRun
in interface JiraServiceContainer
public boolean isDueAt(long time)
JiraServiceContainer
isDueAt
in interface JiraServiceContainer
time
- the time to check whether it is due.
public String getServiceClass()
getServiceClass
in interface JiraServiceContainer
public Class getServiceClassObject()
getServiceClassObject
in interface JiraServiceContainer
public boolean isRunning()
isRunning
in interface JiraServiceContainer
public boolean isUsable()
isUsable
in interface JiraServiceContainer
public void setDelay(long delay)
setDelay
in interface JiraServiceContainer
public void setLastRun()
JiraServiceContainer
setLastRun
in interface JiraServiceContainer
public void setRunning(boolean running)
public void destroy()
JiraService
destroy
in interface JiraService
public String getDescription()
JiraService
getDescription
in interface JiraService
public String getName()
JiraService
getName
in interface JiraService
public void init(com.opensymphony.module.propertyset.PropertySet props) throws ObjectConfigurationException
JiraService
init
in interface JiraService
props
- initialisation parameters
ObjectConfigurationException
- in case of an error with initialisation parameterspublic boolean isInternal()
JiraService
isInternal
in interface JiraService
public boolean isUnique()
JiraService
isUnique
in interface JiraService
public void run()
JiraService
run
in interface JiraService
run
in interface Runnable
JiraService.init(com.opensymphony.module.propertyset.PropertySet)
public void setName(String name)
JiraService
JiraService.getName()
setName
in interface JiraService
name
- service name to setpublic String getDefaultProperty(String propertyKey) throws ObjectConfigurationException
ObjectConfigurable
getDefaultProperty
in interface ObjectConfigurable
propertyKey
- String key used to retrieve the properties default value
ObjectConfigurationException
public String getKey()
ObjectConfigurable
getKey
in interface ObjectConfigurable
public Long getLongProperty(String propertyKey) throws ObjectConfigurationException
ObjectConfigurable
getLongProperty
in interface ObjectConfigurable
propertyKey
- String key used to retrieve the property value
ObjectConfigurationException
public ObjectConfiguration getObjectConfiguration() throws ObjectConfigurationException
ObjectConfigurable
getObjectConfiguration
in interface ObjectConfigurable
ObjectConfigurationException
public com.opensymphony.module.propertyset.PropertySet getProperties() throws ObjectConfigurationException
ObjectConfigurable
getProperties
in interface ObjectConfigurable
ObjectConfigurationException
public String getProperty(String propertyKey) throws ObjectConfigurationException
ObjectConfigurable
getProperty
in interface ObjectConfigurable
propertyKey
- String key used to retrieve the property value
ObjectConfigurationException
public String getTextProperty(String propertyKey) throws ObjectConfigurationException
ObjectConfigurable
getTextProperty
in interface ObjectConfigurable
propertyKey
- String key used to retrieve the property value
ObjectConfigurationException
public boolean hasProperty(String propertyKey) throws ObjectConfigurationException
ObjectConfigurable
hasProperty
in interface ObjectConfigurable
propertyKey
- to look for
ObjectConfigurationException
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |