de.smartics.maven.issues.bugzilla
Class BugzillaRepositoryFacade

Package class diagram package BugzillaRepositoryFacade
java.lang.Object
  extended by de.smartics.maven.issues.repository.AbstractRepositoryFacade
      extended by de.smartics.maven.issues.bugzilla.BugzillaRepositoryFacade
All Implemented Interfaces:
RepositoryFacade

public final class BugzillaRepositoryFacade
     
     
extends AbstractRepositoryFacade

Facade to interface with a Bugzilla repository.

Author:
Robert Reiner

Field Summary
 
Fields inherited from class de.smartics.maven.issues.repository.AbstractRepositoryFacade
config, connector, repository
 
Method Summary
protected  org.eclipse.mylyn.tasks.core.IRepositoryQuery constructQuery(QueryData queryData)
          Constructs the query upon the queryData.
static RepositoryFacade create(IssueManagementConfig config)
          Factory method to create the facade.
protected  boolean isLogoutProblem(org.eclipse.core.runtime.IStatus status)
          Checks if the status signals a logout problem.
 
Methods inherited from class de.smartics.maven.issues.repository.AbstractRepositoryFacade
createSession, getConnector, queryTasks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

constructQuery

protected org.eclipse.mylyn.tasks.core.IRepositoryQuery constructQuery(QueryData queryData)
                                                                throws MavenReportException
Constructs the query upon the queryData. Since the query is dependent on the issue management system in use, this method is to be implemented by subclasses.

Specified by:
constructQuery in class AbstractRepositoryFacade
Parameters:
queryData - the issue management independent representation of the query.
Returns:
the query to execute to fetch the specified task data.
Throws:
MavenReportException - if the query data is invalid to create a issue management specific query.

create

public static RepositoryFacade create(IssueManagementConfig config)
Factory method to create the facade.

Parameters:
config - the configuration to pass to the facade.
Returns:
the created facade.

isLogoutProblem

protected boolean isLogoutProblem(org.eclipse.core.runtime.IStatus status)
Checks if the status signals a logout problem. Logout problems may be treated differently depending on the configuration. Subclasses are responsible to check if the status is reporting a logout problem or not.

Specified by:
isLogoutProblem in class AbstractRepositoryFacade
Parameters:
status - the status returned from the issue management system.
Returns:
true if this is a logout problem, false otherwise. If unsure, subclasses should return false.


Copyright © 2008-2010 Kronseder & Reiner GmbH - smartics. All Rights Reserved.