|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mantisbt.connect.axis.MCSession
Default implementation for a Session which delegates all operations to axis.
The following information is cached:
If you need to set a HTTP proxy then use
org.mantisbt.connect.axis.Proxy.
| Constructor Summary | |
MCSession(java.net.URL url,
java.lang.String user,
java.lang.String pwd)
|
|
| Method Summary | |
long |
addIssue(IIssue issue)
Submit the specified issue. |
long |
addIssueAttachment(long issueId,
java.lang.String name,
java.lang.String fileType,
byte[] content)
Submit an issue attachment |
long |
addNote(long issueId,
INote note)
Submit a new note. |
long |
addProject(IProject project)
Add a new project to the tracker (must have admin privileges). |
long |
addProjectAttachment(long projectId,
java.lang.String name,
java.lang.String fileType,
java.lang.String title,
java.lang.String description,
byte[] content)
Submit a project attachment |
long |
addRelationship(long issueId,
IRelationship relationship)
Submit a new realtionship. |
long |
addVersion(IProjectVersion version)
Submit the specified version details. |
protected void |
cacheCategories(long projectId,
java.lang.String[] categories)
|
protected void |
cacheConfigString(java.lang.String configVar,
java.lang.String string)
|
protected void |
cacheCusomFieldDefinitionData(long projectId,
org.mantisbt.connect.axis.CustomFieldDefinition[] data)
|
protected void |
cacheFilters(long projectId,
org.mantisbt.connect.axis.Filter[] data)
|
protected void |
cacheNamedEnum(java.lang.String enumeration,
java.lang.String value)
|
protected void |
cachEnum(Enumeration enumeration,
org.mantisbt.connect.axis.MCAttribute[] values)
|
protected void |
cacheProjectData(org.mantisbt.connect.axis.Project[] data)
|
protected void |
cacheProjectUsers(long projectId,
int access,
org.mantisbt.connect.axis.Account[] data)
|
protected void |
cacheReleasedVersions(long projectId,
org.mantisbt.connect.axis.ProjectVersion[] data)
|
protected void |
cacheUnreleasedVersion(long projectId,
org.mantisbt.connect.axis.ProjectVersion[] data)
|
protected void |
cacheVersion(java.lang.String version)
|
protected void |
cacheVersions(long projectId,
org.mantisbt.connect.axis.ProjectVersion[] data)
|
boolean |
deleteIssue(long issueId)
Delete the issue with the specified id. |
boolean |
deleteIssueAttachment(long attachmentId)
Delete the issue attachment with the specified id. |
boolean |
deleteNote(long noteId)
Delete the note with the specified id. |
boolean |
deleteProject(long projectId)
Delete the project with the specified id (must have admin privileges). |
boolean |
deleteProjectAttachment(long attachmentId)
Delete the project attachment with the specified id. |
boolean |
deleteRelationship(long issueId,
long relationshipId)
Delete the relationship for the specified issue. |
boolean |
deleteVersion(long id)
Delete the version with the specified id. |
void |
flush()
Flush cached information |
IProject[] |
getAccessibleProjects()
Get the list of projects that are accessible to the logged in user. |
long |
getBiggestIssueId(long projectId)
Get the latest submitted issue in the specified project. |
protected org.mantisbt.connect.axis.Project[] |
getCachedAccessibleProjects()
|
protected java.lang.String[] |
getCachedCategories(long projectId)
|
protected java.lang.String |
getCachedConfigString(java.lang.String configVar)
|
protected org.mantisbt.connect.axis.CustomFieldDefinition[] |
getCachedCustomFieldDefinitionData(long projectId)
|
protected org.mantisbt.connect.axis.MCAttribute[] |
getCachedEnum(Enumeration enumeration)
|
protected org.mantisbt.connect.axis.Filter[] |
getCachedFilters(long projectId)
|
protected java.lang.String |
getCachedNamedEnum(java.lang.String enumeration)
|
protected org.mantisbt.connect.axis.Account[] |
getCachedProjectUsers(long projectId,
int access)
|
protected org.mantisbt.connect.axis.ProjectVersion[] |
getCachedReleasedVersions(long projectId)
|
protected org.mantisbt.connect.axis.ProjectVersion[] |
getCachedUnreleasedVersions(long projectId)
|
protected java.lang.String |
getCachedVersion()
|
protected org.mantisbt.connect.axis.ProjectVersion[] |
getCachedVersions(long projectId)
|
java.lang.String[] |
getCategories(long projectId)
Get the categories belonging to the specified project. |
java.lang.String |
getConfigString(java.lang.String configVar)
Get the value for the specified configuration variable. |
ICustomFieldDefinition[] |
getCustomFieldDefinitions(long projectId)
Get the custom fields that belong to the specified project. |
IMCAttribute |
getDefaultIssuePriority()
Get the default priority for new issues. |
IMCAttribute |
getDefaultIssueSeverity()
Get the default severity for new issues. |
Viewstate |
getDefaultIssueViewState()
Get the default viewstate for new issues. |
Viewstate |
getDefaultNoteViewState()
Get the default viewstate for new notes. |
IMCAttribute[] |
getEnum(Enumeration enumeration)
Get the specified enumeration. |
java.lang.String |
getEnum(java.lang.String enumeration)
Get the specified enumeration. |
IFilter[] |
getFilters(long projectId)
Get the filters defined for the specified project. |
long |
getIdFromSummary(java.lang.String summary)
Get the id of the issue with the specified summary. |
IIssue |
getIssue(long issueId)
Get the issue with the specified id. |
byte[] |
getIssueAttachment(long attachmentId)
Get the data for the specified issue attachment. |
IIssueHeader[] |
getIssueHeaders(long projectId,
long filterId)
Get all issue headers that match the specified filter. |
IIssueHeader[] |
getIssueHeaders(long projectId,
long filterId,
int limit)
Get issue headers that match the specified filter. |
IIssueHeader[] |
getIssueHeaders(long projectId,
long filterId,
int pageNumber,
int perPage)
Get all issue headers that match the specified filter and paging details. |
IIssue[] |
getIssues(long projectId,
long filterId)
Get all issues that match the specified filter. |
IIssue[] |
getIssues(long projectId,
long filterId,
int limit)
Get issues that match the specified filter. |
IIssue[] |
getIssues(long projectId,
long filterId,
int pageNumber,
int perPage)
Get all issues that match the specified filter and paging details. |
protected MantisConnectPortType |
getPortType()
|
IProject |
getProject(long projectId)
Returns the project with id projectId. |
IProject |
getProject(java.lang.String name)
Returns the project with name name. |
byte[] |
getProjectAttachment(long attachmentId)
Get the data for the specified project attachment. |
IProjectAttachment[] |
getProjectAttachments(long projectId)
Get the attachments that belong to the specified project. |
IIssueHeader[] |
getProjectIssueHeaders(long projectId)
Get all issue headers that match the specified project. |
IIssueHeader[] |
getProjectIssueHeaders(long projectId,
int limit)
Get the issue headers that match the specified project id and paging details Constrain the number of issues to limit. |
IIssueHeader[] |
getProjectIssueHeaders(long projectId,
int pageNumber,
int perPage)
Get the issue headers that match the specified project id and paging details |
IIssue[] |
getProjectIssues(long projectId)
Get all issues that match the specified project. |
IIssue[] |
getProjectIssues(long projectId,
int limit)
Get the issues that match the specified project id and paging details Constrain the number of issues to limit. |
IIssue[] |
getProjectIssues(long projectId,
int pageNumber,
int perPage)
Get the issues that match the specified project id and paging details |
IAccount[] |
getProjectUsers(long projectId,
AccessLevel access)
Get appropriate users assigned to a project by access level. |
protected java.lang.String |
getPwd()
|
IProjectVersion[] |
getReleasedVersions(long projectId)
Get the released versions that belong to the specified project. |
IProjectVersion[] |
getUnreleasedVersions(long projectId)
Get the unreleased version that belong to the specified project. |
protected java.lang.String |
getUser()
|
java.lang.String |
getVersion()
Get Version of MantisConnect this session is connected to. |
IProjectVersion[] |
getVersions(long projectId)
Get the versions belonging to the specified project. |
boolean |
issueExists(long issueId)
Check there exists an issue with the specified id. |
IIssue |
newIssue(long projectId)
Create a new Issue with default values set. |
INote |
newNote(java.lang.String text)
Create a new Note with default values set. |
boolean |
updateIssue(IIssue issue)
Update issue. |
boolean |
updateVersion(IProjectVersion version)
Update version method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MCSession(java.net.URL url,
java.lang.String user,
java.lang.String pwd)
throws MCException
| Method Detail |
protected MantisConnectPortType getPortType()
protected java.lang.String getUser()
protected java.lang.String getPwd()
public long addIssue(IIssue issue)
throws MCException
IMCSession
addIssue in interface IMCSessionMCException
public long addIssueAttachment(long issueId,
java.lang.String name,
java.lang.String fileType,
byte[] content)
throws MCException
IMCSession
addIssueAttachment in interface IMCSessionMCException
public long addNote(long issueId,
INote note)
throws MCException
IMCSession
addNote in interface IMCSessionMCException
public long addProject(IProject project)
throws MCException
IMCSession
addProject in interface IMCSessionMCException
public long addProjectAttachment(long projectId,
java.lang.String name,
java.lang.String fileType,
java.lang.String title,
java.lang.String description,
byte[] content)
throws MCException
IMCSession
addProjectAttachment in interface IMCSessionMCException
public long addRelationship(long issueId,
IRelationship relationship)
throws MCException
IMCSession
addRelationship in interface IMCSessionMCException
public long addVersion(IProjectVersion version)
throws MCException
IMCSession
addVersion in interface IMCSessionMCException
public boolean deleteIssue(long issueId)
throws MCException
IMCSession
deleteIssue in interface IMCSessionMCException
public boolean deleteIssueAttachment(long attachmentId)
throws MCException
IMCSession
deleteIssueAttachment in interface IMCSessionMCException
public boolean deleteNote(long noteId)
throws MCException
IMCSession
deleteNote in interface IMCSessionMCException
public boolean deleteProject(long projectId)
throws MCException
IMCSession
deleteProject in interface IMCSessionMCException
public boolean deleteProjectAttachment(long attachmentId)
throws MCException
IMCSession
deleteProjectAttachment in interface IMCSessionMCException
public boolean deleteRelationship(long issueId,
long relationshipId)
throws MCException
IMCSession
deleteRelationship in interface IMCSessionMCException
public boolean deleteVersion(long id)
throws MCException
IMCSession
deleteVersion in interface IMCSessionMCExceptionpublic void flush()
IMCSession
flush in interface IMCSession
public IProject[] getAccessibleProjects()
throws MCException
IMCSession
getAccessibleProjects in interface IMCSessionMCExceptionprotected void cacheProjectData(org.mantisbt.connect.axis.Project[] data)
protected org.mantisbt.connect.axis.Project[] getCachedAccessibleProjects()
public long getBiggestIssueId(long projectId)
throws MCException
IMCSession
getBiggestIssueId in interface IMCSessionMCException
public java.lang.String[] getCategories(long projectId)
throws MCException
IMCSession
getCategories in interface IMCSessionMCException
protected void cacheCategories(long projectId,
java.lang.String[] categories)
protected java.lang.String[] getCachedCategories(long projectId)
public java.lang.String getConfigString(java.lang.String configVar)
throws MCException
IMCSession
getConfigString in interface IMCSessionMCException
protected void cacheConfigString(java.lang.String configVar,
java.lang.String string)
protected java.lang.String getCachedConfigString(java.lang.String configVar)
public ICustomFieldDefinition[] getCustomFieldDefinitions(long projectId)
throws MCException
IMCSession
getCustomFieldDefinitions in interface IMCSessionMCException
protected void cacheCusomFieldDefinitionData(long projectId,
org.mantisbt.connect.axis.CustomFieldDefinition[] data)
protected org.mantisbt.connect.axis.CustomFieldDefinition[] getCachedCustomFieldDefinitionData(long projectId)
public IMCAttribute getDefaultIssuePriority()
throws MCException
IMCSession
getDefaultIssuePriority in interface IMCSessionMCException
public IMCAttribute getDefaultIssueSeverity()
throws MCException
IMCSession
getDefaultIssueSeverity in interface IMCSessionMCException
public Viewstate getDefaultIssueViewState()
throws MCException
IMCSession
getDefaultIssueViewState in interface IMCSessionMCException
public Viewstate getDefaultNoteViewState()
throws MCException
IMCSession
getDefaultNoteViewState in interface IMCSessionMCException
public IMCAttribute[] getEnum(Enumeration enumeration)
throws MCException
IMCSession
getEnum in interface IMCSessionMCException
protected void cachEnum(Enumeration enumeration,
org.mantisbt.connect.axis.MCAttribute[] values)
protected org.mantisbt.connect.axis.MCAttribute[] getCachedEnum(Enumeration enumeration)
public java.lang.String getEnum(java.lang.String enumeration)
throws MCException
IMCSession
getEnum in interface IMCSessionMCException
protected void cacheNamedEnum(java.lang.String enumeration,
java.lang.String value)
protected java.lang.String getCachedNamedEnum(java.lang.String enumeration)
public IFilter[] getFilters(long projectId)
throws MCException
IMCSession
getFilters in interface IMCSessionMCException
protected void cacheFilters(long projectId,
org.mantisbt.connect.axis.Filter[] data)
protected org.mantisbt.connect.axis.Filter[] getCachedFilters(long projectId)
public long getIdFromSummary(java.lang.String summary)
throws MCException
IMCSession
getIdFromSummary in interface IMCSessionMCException
public IIssue getIssue(long issueId)
throws MCException
IMCSession
getIssue in interface IMCSessionMCException
public byte[] getIssueAttachment(long attachmentId)
throws MCException
IMCSession
getIssueAttachment in interface IMCSessionMCException
public IIssueHeader[] getIssueHeaders(long projectId,
long filterId)
throws MCException
IMCSession
getIssueHeaders in interface IMCSessionMCException
public IIssueHeader[] getIssueHeaders(long projectId,
long filterId,
int limit)
throws MCException
IMCSessionlimit.
getIssueHeaders in interface IMCSessionMCException
public IIssueHeader[] getIssueHeaders(long projectId,
long filterId,
int pageNumber,
int perPage)
throws MCException
IMCSession
getIssueHeaders in interface IMCSessionMCException
public IIssue[] getIssues(long projectId,
long filterId)
throws MCException
IMCSession
getIssues in interface IMCSessionMCException
public IIssue[] getIssues(long projectId,
long filterId,
int limit)
throws MCException
IMCSessionlimit.
getIssues in interface IMCSessionMCException
public IIssue[] getIssues(long projectId,
long filterId,
int pageNumber,
int perPage)
throws MCException
IMCSession
getIssues in interface IMCSessionMCException
public byte[] getProjectAttachment(long attachmentId)
throws MCException
IMCSession
getProjectAttachment in interface IMCSessionMCException
public IProjectAttachment[] getProjectAttachments(long projectId)
throws MCException
IMCSession
getProjectAttachments in interface IMCSessionMCException
public IIssueHeader[] getProjectIssueHeaders(long projectId)
throws MCException
IMCSession
getProjectIssueHeaders in interface IMCSessionMCException
public IIssueHeader[] getProjectIssueHeaders(long projectId,
int limit)
throws MCException
IMCSessionlimit.
getProjectIssueHeaders in interface IMCSessionMCException
public IIssueHeader[] getProjectIssueHeaders(long projectId,
int pageNumber,
int perPage)
throws MCException
IMCSession
getProjectIssueHeaders in interface IMCSessionMCException
public IIssue[] getProjectIssues(long projectId)
throws MCException
IMCSession
getProjectIssues in interface IMCSessionMCException
public IIssue[] getProjectIssues(long projectId,
int limit)
throws MCException
IMCSessionlimit.
getProjectIssues in interface IMCSessionMCException
public IIssue[] getProjectIssues(long projectId,
int pageNumber,
int perPage)
throws MCException
IMCSession
getProjectIssues in interface IMCSessionMCException
public IAccount[] getProjectUsers(long projectId,
AccessLevel access)
throws MCException
IMCSession
getProjectUsers in interface IMCSessionMCException
protected void cacheProjectUsers(long projectId,
int access,
org.mantisbt.connect.axis.Account[] data)
protected org.mantisbt.connect.axis.Account[] getCachedProjectUsers(long projectId,
int access)
public IProjectVersion[] getReleasedVersions(long projectId)
throws MCException
IMCSession
getReleasedVersions in interface IMCSessionMCException
protected void cacheReleasedVersions(long projectId,
org.mantisbt.connect.axis.ProjectVersion[] data)
protected org.mantisbt.connect.axis.ProjectVersion[] getCachedReleasedVersions(long projectId)
public IProjectVersion[] getUnreleasedVersions(long projectId)
throws MCException
IMCSession
getUnreleasedVersions in interface IMCSessionMCException
protected void cacheUnreleasedVersion(long projectId,
org.mantisbt.connect.axis.ProjectVersion[] data)
protected org.mantisbt.connect.axis.ProjectVersion[] getCachedUnreleasedVersions(long projectId)
public java.lang.String getVersion()
throws MCException
IMCSession
getVersion in interface IMCSessionMCExceptionprotected void cacheVersion(java.lang.String version)
protected java.lang.String getCachedVersion()
public IProjectVersion[] getVersions(long projectId)
throws MCException
IMCSession
getVersions in interface IMCSessionMCException
protected void cacheVersions(long projectId,
org.mantisbt.connect.axis.ProjectVersion[] data)
protected org.mantisbt.connect.axis.ProjectVersion[] getCachedVersions(long projectId)
public boolean issueExists(long issueId)
throws MCException
IMCSession
issueExists in interface IMCSessionMCException
public IIssue newIssue(long projectId)
throws MCException
IMCSession
newIssue in interface IMCSessionMCException
public IProject getProject(long projectId)
throws MCException
IMCSessionprojectId. Subprojects are
included (recursively) in the search.
getProject in interface IMCSessionMCException
public IProject getProject(java.lang.String name)
throws MCException
IMCSessionname. Subprojects are
included (recursively) in the search.
getProject in interface IMCSessionMCException
public INote newNote(java.lang.String text)
throws MCException
IMCSession
newNote in interface IMCSessionMCException
public boolean updateIssue(IIssue issue)
throws MCException
IMCSession
updateIssue in interface IMCSessionMCException
public boolean updateVersion(IProjectVersion version)
throws MCException
IMCSession
updateVersion in interface IMCSessionMCException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||