|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mantis.ta.MantisManager
public class MantisManager
Entry point for the API: use this class to communicate with Mantis SOAP services.
| Constructor Summary | |
|---|---|
MantisManager(String uri)
Creates an instance of MantisManager. |
|
MantisManager(String uri,
String login,
String password)
|
|
| Method Summary | |
|---|---|
BigInteger |
createIssue(IssueData issue)
Creates a new issue. |
BigInteger |
createProject(ProjectData project)
Creates a new project. |
BigInteger |
createRelationship(BigInteger issueId,
RelationshipData relation)
Add the specified issue's relationship. |
boolean |
deleteIssue(BigInteger issueId)
Deletes the specified issue. |
boolean |
deleteProject(BigInteger projectId)
Deletes the project. |
boolean |
deleteRelationship(BigInteger issueId,
BigInteger relationshipId)
Deletes the specified issue's relationship. |
AccountData |
getCurrentUser()
Tries to get user info based on login information in MantisManage class. |
IssueData |
getIssueById(BigInteger issueId)
Retrieves the issue by identified. |
IssueData |
getIssueBySummary(String summary)
Tries to find an issue by summary. |
List<IssueData> |
getIssuesByProject(BigInteger projectId)
Retrieves issues for the specified project. |
List<IssueHeaderData> |
getIssuesHeadersByProject(BigInteger projectId)
Retrieves issues headers for the specified project. |
int |
getItemsPerPage()
|
ProjectData |
getProjectById(BigInteger projectId)
Returns the project by identifier. |
List<ProjectData> |
getProjects()
Returns list of projects which are accessible for the current user. |
AccountData |
getUserById(BigInteger userId)
Retrieves the selected user. |
List<AccountData> |
getUsers()
Retrieves the user list. |
String |
getVersion()
Returns version of Mantis server. |
void |
setItemsPerPage(int itemsPerPage)
|
boolean |
updateIssue(BigInteger issueId,
IssueData issue)
Updates the specified issue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MantisManager(String uri)
uri - complete Mantis server web URI including protocol and port number. Example: http://localhost:8008/
public MantisManager(String uri,
String login,
String password)
| Method Detail |
|---|
public String getVersion()
throws RemoteException,
javax.xml.rpc.ServiceException
RemoteException
javax.xml.rpc.ServiceExceptionpublic int getItemsPerPage()
public void setItemsPerPage(int itemsPerPage)
public List<ProjectData> getProjects()
throws RemoteException,
javax.xml.rpc.ServiceException
RemoteException
javax.xml.rpc.ServiceException
public ProjectData getProjectById(BigInteger projectId)
throws RemoteException,
javax.xml.rpc.ServiceException
projectId - The project identifier.
RemoteException
javax.xml.rpc.ServiceException
public BigInteger createProject(ProjectData project)
throws RemoteException,
javax.xml.rpc.ServiceException,
RequiredItemException
project - The project to create.
RemoteException
javax.xml.rpc.ServiceException
RequiredItemException
public boolean deleteProject(BigInteger projectId)
throws RemoteException,
javax.xml.rpc.ServiceException
projectId - The project to delete.
RemoteException
javax.xml.rpc.ServiceException
public List<IssueHeaderData> getIssuesHeadersByProject(BigInteger projectId)
throws RemoteException,
javax.xml.rpc.ServiceException
projectId -
RemoteException
javax.xml.rpc.ServiceException
public List<IssueData> getIssuesByProject(BigInteger projectId)
throws RemoteException,
javax.xml.rpc.ServiceException
projectId -
RemoteException
javax.xml.rpc.ServiceException
public IssueData getIssueById(BigInteger issueId)
throws RemoteException,
javax.xml.rpc.ServiceException
issueId -
RemoteException
javax.xml.rpc.ServiceException
public IssueData getIssueBySummary(String summary)
throws RemoteException,
javax.xml.rpc.ServiceException
summary -
RemoteException
javax.xml.rpc.ServiceException
public BigInteger createIssue(IssueData issue)
throws RemoteException,
javax.xml.rpc.ServiceException,
RequiredItemException
issue -
RemoteException
javax.xml.rpc.ServiceException
RequiredItemException
public boolean updateIssue(BigInteger issueId,
IssueData issue)
throws RemoteException,
javax.xml.rpc.ServiceException
issueId - issue -
RemoteException
javax.xml.rpc.ServiceException
public boolean deleteIssue(BigInteger issueId)
throws RemoteException,
javax.xml.rpc.ServiceException
issueId -
RemoteException
javax.xml.rpc.ServiceException
public BigInteger createRelationship(BigInteger issueId,
RelationshipData relation)
throws RemoteException,
javax.xml.rpc.ServiceException
issueId - relation -
RemoteException
javax.xml.rpc.ServiceException
public boolean deleteRelationship(BigInteger issueId,
BigInteger relationshipId)
throws RemoteException,
javax.xml.rpc.ServiceException
issueId -
RemoteException
javax.xml.rpc.ServiceException
public List<AccountData> getUsers()
throws RemoteException,
javax.xml.rpc.ServiceException
RemoteException
javax.xml.rpc.ServiceException
public AccountData getUserById(BigInteger userId)
throws RemoteException,
javax.xml.rpc.ServiceException
userId -
RemoteException
javax.xml.rpc.ServiceException
public AccountData getCurrentUser()
throws RemoteException,
javax.xml.rpc.ServiceException
RemoteException
javax.xml.rpc.ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||