@Service(value="squashtest.tm.service.BugTrackersLocalService") public class BugTrackersLocalServiceImpl extends Object implements BugTrackersLocalService
| Constructor and Description |
|---|
BugTrackersLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
attachIssue(org.squashtest.tm.domain.bugtracker.IssueDetector bugged,
String remoteIssueKey)
Will attach an existing issue to the issue detector
|
org.squashtest.tm.domain.servers.AuthenticationStatus |
checkAuthenticationStatus(Long bugtrackerId)
says whether the user is authenticated against that bugtracker regardless
of the bindings with projects.
|
org.squashtest.tm.domain.servers.AuthenticationStatus |
checkBugTrackerStatus(Long projectId)
same as
BugTrackersLocalService.checkBugTrackerStatus(Project), using the id of the project
instead. |
org.squashtest.tm.domain.servers.AuthenticationStatus |
checkBugTrackerStatus(org.squashtest.tm.domain.project.Project project)
tests if the bugtracker is ready for use
|
org.squashtest.tm.bugtracker.definition.RemoteIssue |
createIssue(org.squashtest.tm.domain.bugtracker.IssueDetector entity,
org.squashtest.tm.bugtracker.definition.RemoteIssue btIssue)
adds a new Issue to the entity.
|
org.squashtest.tm.bugtracker.definition.RemoteIssue |
createReportIssueTemplate(String projectName,
org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
Must return ready-to-fill issue, ie with empty fields and its project configured with as many metadata as possible related to issue creation.
|
void |
detachIssue(long id)
Will detach an existing issue from an issue detector
|
org.squashtest.tm.domain.execution.Execution |
findExecutionByIssueId(Long id) |
List<org.squashtest.tm.domain.execution.Execution> |
findExecutionsByRemoteIssue(String remoteid,
String name) |
org.squashtest.tm.domain.bugtracker.Issue |
findIssueById(Long id) |
List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>> |
findIssueOwnershipForTestCase(long tcId)
Given a TestCase, returns a list of linked BTIssue (not Issue).
|
int |
findNumberOfIssueForExecutionStep(Long testStepId)
self-explanatory
|
int |
findNumberOfIssueForItemTestPlanLastExecution(Long itemTestPlanId)
self-explanatory
|
int |
findNumberOfIssueForTestCase(Long tcId) |
org.squashtest.tm.bugtracker.definition.RemoteProject |
findRemoteProject(String name,
org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
returns an instance of the remote project.
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> |
findSortedIssueOwnershipForCampaignFolder(Long cfId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Given a CampaignFolder, returns a list of linked BTIssue (not Issue) for all campaigns, iterations etc this folder contains.
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> |
findSortedIssueOwnershipForIteration(Long iterId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Given an Iteration, returns a list of linked BTIssue (not Issue).
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> |
findSortedIssueOwnershipForTestCase(Long tcId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Given a TestCase, returns a list of linked BTIssue (not Issue).
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> |
findSortedIssueOwnershipsForCampaign(Long campId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Given an Campaign, returns a list of linked BTIssue (not Issue)
To keep track of which IssueDetector owns which issue, the data are wrapped in a IssueOwnership (that just pair the informations together). |
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> |
findSortedIssueOwnershipsforExecution(Long execId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Given an Execution, returns a list of linked BTIssue (not Issue).
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> |
findSortedIssueOwnerShipsForExecutionStep(Long stepId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Given an ExecutionStep, returns a list of linked BTIssue (not Issue).
|
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> |
findSortedIssueOwnershipsForTestSuite(Long testSuiteId,
org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
Given a TestSuite, returns a list of linked BTIssue (not Issue).
|
org.squashtest.tm.domain.testcase.TestCase |
findTestCaseRelatedToIssue(Long issueId) |
void |
forwardAttachments(String remoteIssueKey,
String bugtrackerName,
List<org.squashtest.tm.bugtracker.definition.Attachment> attachments)
Given a remote issue key, will ask the bugtracker to attach the attachments to that issue.
|
Object |
forwardDelegateCommand(org.squashtest.tm.bugtracker.advanceddomain.DelegateCommand command,
String bugtrackerName)
forwards a
DelegateCommand to a connector |
org.squashtest.csp.core.bugtracker.spi.BugTrackerInterfaceDescriptor |
getInterfaceDescriptor(org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
An InterfaceDescriptor contains informations relevant to the generation of a view/GUI.
|
org.squashtest.tm.bugtracker.definition.RemoteIssue |
getIssue(String issueKey,
org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
returns a remote issue using its key
|
List<org.squashtest.tm.domain.bugtracker.Issue> |
getIssueList(String remoteid,
String name) |
List<org.squashtest.tm.bugtracker.definition.RemoteIssue> |
getIssues(List<String> issueKeyList,
org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
returns a list of BTIssu corresponding to the given string keys
|
URL |
getIssueUrl(String btIssueId,
org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
Gets the url of a remote Issue given its Id
|
Set<String> |
getProviderKinds() |
void |
setCredentials(String username,
String password,
org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
sets the credentials of an user for authentication bugtracker-side.
|
void |
setCredentials(String username,
String password,
Long bugtrackerId)
Same as
BugTrackersLocalService.setCredentials(String, String, BugTracker), but the bugtracker is identified by its id. |
public org.squashtest.csp.core.bugtracker.spi.BugTrackerInterfaceDescriptor getInterfaceDescriptor(org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
BugTrackersLocalServicegetInterfaceDescriptor in interface BugTrackersLocalServicebugTracker - the concerned BugTracker@PreAuthorize(value="hasPermission(#entity, \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.servers.AuthenticationStatus checkBugTrackerStatus(org.squashtest.tm.domain.project.Project project)
BugTrackersLocalServicecheckBugTrackerStatus in interface BugTrackersLocalServiceproject - : the concerned Projectpublic org.squashtest.tm.domain.servers.AuthenticationStatus checkBugTrackerStatus(Long projectId)
BugTrackersLocalServiceBugTrackersLocalService.checkBugTrackerStatus(Project), using the id of the project
instead.checkBugTrackerStatus in interface BugTrackersLocalServicepublic org.squashtest.tm.domain.servers.AuthenticationStatus checkAuthenticationStatus(Long bugtrackerId)
BugTrackersLocalServicecheckAuthenticationStatus in interface BugTrackersLocalServicepublic org.squashtest.tm.bugtracker.definition.RemoteIssue createIssue(org.squashtest.tm.domain.bugtracker.IssueDetector entity,
org.squashtest.tm.bugtracker.definition.RemoteIssue btIssue)
BugTrackersLocalServicecreateIssue in interface BugTrackersLocalServicebtIssue - : the issue to addpublic org.squashtest.tm.bugtracker.definition.RemoteIssue getIssue(String issueKey, org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
BugTrackersLocalServicegetIssue in interface BugTrackersLocalServicebugTracker - : the concerned BugTrackerpublic List<org.squashtest.tm.bugtracker.definition.RemoteIssue> getIssues(List<String> issueKeyList, org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
BugTrackersLocalServicegetIssues in interface BugTrackersLocalServiceissueKeyList - the remote issue key listbugTracker - : the concerned BugTrackerpublic org.squashtest.tm.bugtracker.definition.RemoteProject findRemoteProject(String name, org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
BugTrackersLocalServicefindRemoteProject in interface BugTrackersLocalServicename - : the name of the project.bugTracker - : the concerned BugTrackerpublic org.squashtest.tm.bugtracker.definition.RemoteIssue createReportIssueTemplate(String projectName, org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
BugTrackersLocalServicecreateReportIssueTemplate in interface BugTrackersLocalServicepublic void setCredentials(String username, String password, org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
BugTrackersLocalServicesetCredentials in interface BugTrackersLocalServicebugTracker - : the concerned BugTrackerpublic void setCredentials(String username, String password, Long bugtrackerId) throws org.squashtest.csp.core.bugtracker.core.BugTrackerRemoteException
BugTrackersLocalServiceBugTrackersLocalService.setCredentials(String, String, BugTracker), but the bugtracker is identified by its id.setCredentials in interface BugTrackersLocalServiceorg.squashtest.csp.core.bugtracker.core.BugTrackerRemoteExceptionpublic URL getIssueUrl(String btIssueId, org.squashtest.csp.core.bugtracker.domain.BugTracker bugTracker)
BugTrackersLocalServicegetIssueUrl in interface BugTrackersLocalServicebtIssueId - the id of that issuebugTracker - : the concerned BugTrackerpublic void forwardAttachments(String remoteIssueKey, String bugtrackerName, List<org.squashtest.tm.bugtracker.definition.Attachment> attachments)
BugTrackersLocalServiceforwardAttachments in interface BugTrackersLocalServicepublic Object forwardDelegateCommand(org.squashtest.tm.bugtracker.advanceddomain.DelegateCommand command, String bugtrackerName)
BugTrackersLocalServiceDelegateCommand to a connectorforwardDelegateCommand in interface BugTrackersLocalService@PreAuthorize(value="hasPermission(#bugged, \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public void attachIssue(org.squashtest.tm.domain.bugtracker.IssueDetector bugged,
String remoteIssueKey)
BugTrackersLocalServiceattachIssue in interface BugTrackersLocalServicebugged - : the future issue holderremoteIssueKey - : the identificator of the issue in the BTpublic void detachIssue(long id)
BugTrackersLocalServicedetachIssue in interface BugTrackersLocalService@PreAuthorize(value="hasPermission(#stepId, \'org.squashtest.tm.domain.execution.ExecutionStep\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> findSortedIssueOwnerShipsForExecutionStep(Long stepId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
BugTrackersLocalServicefindSortedIssueOwnerShipsForExecutionStep in interface BugTrackersLocalServicestepId - of which we need to get the issues,sorter - that tells us how we should sort and filter the data@PreAuthorize(value="hasPermission(#execId, \'org.squashtest.tm.domain.execution.Execution\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> findSortedIssueOwnershipsforExecution(Long execId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
BugTrackersLocalServicefindSortedIssueOwnershipsforExecution in interface BugTrackersLocalServiceexecId - of which we need to get the issues,sorter - that tells us how we should sort and filter the data@PreAuthorize(value="hasPermission(#testSuiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> findSortedIssueOwnershipsForTestSuite(Long testSuiteId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
BugTrackersLocalServicefindSortedIssueOwnershipsForTestSuite in interface BugTrackersLocalServicetestSuiteId - for which we need to get the issues,sorter - that tells us how we should sort and filter the data@PreAuthorize(value="hasPermission(#iterId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> findSortedIssueOwnershipForIteration(Long iterId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
BugTrackersLocalServicefindSortedIssueOwnershipForIteration in interface BugTrackersLocalServiceiterId - of which we need to get the issues,sorter - that tells us how we should sort and filter the data@PreAuthorize(value="hasPermission(#campId, \'org.squashtest.tm.domain.campaign.Campaign\' ,\'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> findSortedIssueOwnershipsForCampaign(Long campId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
BugTrackersLocalServicefindSortedIssueOwnershipsForCampaign in interface BugTrackersLocalServicecampId - of which we need to get the issues,sorter - that tells us how we should sort and filter the data@PreAuthorize(value="hasPermission(#cfId, \'org.squashtest.tm.domain.campaign.CampaignFolder\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> findSortedIssueOwnershipForCampaignFolder(Long cfId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
BugTrackersLocalServicefindSortedIssueOwnershipForCampaignFolder in interface BugTrackersLocalServicecfId - for which we need to get the issues,sorter - that tells us how we should sort and filter the data@PreAuthorize(value="hasPermission(#tcId, \'org.squashtest.tm.domain.testcase.TestCase\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>>> findSortedIssueOwnershipForTestCase(Long tcId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter)
BugTrackersLocalServicefindSortedIssueOwnershipForTestCase in interface BugTrackersLocalServicesorter - that tells us how we should sort and filter the data@PreAuthorize(value="hasPermission(#tcId, \'org.squashtest.tm.domain.testcase.TestCase\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.bugtracker.IssueOwnership<org.squashtest.tm.domain.bugtracker.RemoteIssueDecorator>> findIssueOwnershipForTestCase(long tcId)
BugTrackersLocalServicefindIssueOwnershipForTestCase in interface BugTrackersLocalServicepublic Set<String> getProviderKinds()
getProviderKinds in interface BugTrackersLocalServicepublic int findNumberOfIssueForTestCase(Long tcId)
findNumberOfIssueForTestCase in interface BugTrackersLocalServicepublic int findNumberOfIssueForItemTestPlanLastExecution(Long itemTestPlanId)
BugTrackersLocalServicefindNumberOfIssueForItemTestPlanLastExecution in interface BugTrackersLocalServicepublic int findNumberOfIssueForExecutionStep(Long testStepId)
BugTrackersLocalServicefindNumberOfIssueForExecutionStep in interface BugTrackersLocalServicepublic org.squashtest.tm.domain.testcase.TestCase findTestCaseRelatedToIssue(Long issueId)
findTestCaseRelatedToIssue in interface BugTrackersLocalServicepublic org.squashtest.tm.domain.bugtracker.Issue findIssueById(Long id)
findIssueById in interface BugTrackersLocalServicepublic List<org.squashtest.tm.domain.bugtracker.Issue> getIssueList(String remoteid, String name)
getIssueList in interface BugTrackersLocalServicepublic org.squashtest.tm.domain.execution.Execution findExecutionByIssueId(Long id)
findExecutionByIssueId in interface BugTrackersLocalServicepublic List<org.squashtest.tm.domain.execution.Execution> findExecutionsByRemoteIssue(String remoteid, String name)
findExecutionsByRemoteIssue in interface BugTrackersLocalServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.