|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.repository.AbstractRepositoryFacade
public abstract class AbstractRepositoryFacade
Base implementation of the RepositoryFacade
interface.
Field Summary | |
---|---|
protected IssueManagementConfig |
config The configuration for the issue management connection. |
protected org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector |
connector The connector to use to connect to the remote issue management system. |
protected org.eclipse.mylyn.tasks.core.TaskRepository |
repository The reference to the repository. |
Constructor Summary | |
---|---|
protected |
AbstractRepositoryFacade(IssueManagementConfig config, org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector connector) Default constructor. |
Method Summary | |
---|---|
protected abstract org.eclipse.mylyn.tasks.core.IRepositoryQuery |
constructQuery(QueryData queryData) Constructs the query upon the queryData . |
protected org.eclipse.mylyn.tasks.core.sync.ISynchronizationSession |
createSession() Returns a session. |
org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector |
getConnector() Returns the connector used by this facade. |
protected abstract boolean |
isLogoutProblem(org.eclipse.core.runtime.IStatus status) Checks if the status signals a logout problem. |
List<org.eclipse.mylyn.tasks.core.data.TaskData> |
queryTasks(QueryData queryData) Runs the query and returns the matching issues. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final IssueManagementConfig config
protected final org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector connector
protected org.eclipse.mylyn.tasks.core.TaskRepository repository
Constructor Detail |
---|
protected AbstractRepositoryFacade(IssueManagementConfig config, org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector connector)
config
- the configuration for the issue management connection.
connector
- the connector to use to connect to the remote issue management system.
Method Detail |
---|
public org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector getConnector()
getConnector
in interface
RepositoryFacade
public List<org.eclipse.mylyn.tasks.core.data.TaskData> queryTasks(QueryData queryData) throws MavenReportException
queryTasks
in interface
RepositoryFacade
queryData
- the query information.
RepositoryFacade.queryTasks(QueryData)
MavenReportException
- if a problem is encountered while fetching the tasks.
protected abstract boolean isLogoutProblem(org.eclipse.core.runtime.IStatus status)
status
- the status returned from the issue management system.
true
if this is a logout problem,
false
otherwise. If unsure, subclasses should return
false
.
protected org.eclipse.mylyn.tasks.core.sync.ISynchronizationSession createSession()
null
since sessions are not necessary to run the query, but may be relevant to subclasses.
protected abstract org.eclipse.mylyn.tasks.core.IRepositoryQuery constructQuery(QueryData queryData) throws MavenReportException
queryData
. Since the query is dependent on the issue management system in use, this method is to be implemented by subclasses.
queryData
- the issue management independent representation of the query.
MavenReportException
- if the query data is invalid to create a issue management specific query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |