|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mantisbt.connect.Session
org.mantisbt.connect.axis.MCSession
instead.
Default implementation for a Session which delegates all operations to axis.
The following information is cached:
Field Summary |
Fields inherited from interface org.mantisbt.connect.ISession |
AL_ADMINISTRATOR, AL_ANYBODY, AL_DEVELOPER, AL_MANAGER, AL_NOBODY, AL_REPORTER, AL_UPDATER, AL_VIEWER, CF_TYPE_CHECKBOX, CF_TYPE_DATE, CF_TYPE_EMAIL, CF_TYPE_ENUM, CF_TYPE_FLOAT, CF_TYPE_LIST, CF_TYPE_MULTILIST, CF_TYPE_NUMERIC, CF_TYPE_STRING, VS_PRIVATE, VS_PUBLIC |
Constructor Summary | |
protected |
Session(MantisConnectPortType portType,
java.lang.String user,
java.lang.String pwd)
Deprecated. |
Method Summary | |
long |
addIssue(IssueData issue)
Deprecated. Submit the specified issue. |
long |
addIssueAttachment(long issueId,
java.lang.String name,
java.lang.String fileType,
byte[] content)
Deprecated. Submit an issue attachment |
long |
addNote(long issueId,
IssueNoteData note)
Deprecated. Submit a new note. |
long |
addProject(ProjectData project)
Deprecated. Add a new project to the tracker (must have admin privileges). |
long |
addProjectAttachment(long projectId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String fileType,
byte[] content)
Deprecated. Submit a project attachment |
long |
addRelationship(long issueId,
RelationshipData relationship)
Deprecated. Submit a new realtionship. |
long |
addVersion(ProjectVersionData version)
Deprecated. Submit the specified version details. |
protected void |
cacheCategories(long projectId,
java.lang.String[] categories)
Deprecated. |
protected void |
cacheConfigString(java.lang.String configVar,
java.lang.String string)
Deprecated. |
protected void |
cacheCusomFieldDefinitionData(long projectId,
CustomFieldDefinitionData[] data)
Deprecated. |
protected void |
cacheFilters(long projectId,
FilterData[] data)
Deprecated. |
protected void |
cacheNamedEnum(java.lang.String enumeration,
java.lang.String value)
Deprecated. |
protected void |
cachEnum(Enumeration enumeration,
ObjectRef[] values)
Deprecated. |
protected void |
cacheProjectData(ProjectData[] data)
Deprecated. |
protected void |
cacheProjectUsers(long projectId,
int access,
AccountData[] data)
Deprecated. |
protected void |
cacheReleasedVersions(long projectId,
ProjectVersionData[] data)
Deprecated. |
protected void |
cacheUnreleasedVersion(long projectId,
ProjectVersionData[] data)
Deprecated. |
protected void |
cacheVersion(java.lang.String version)
Deprecated. |
protected void |
cacheVersions(long projectId,
ProjectVersionData[] data)
Deprecated. |
boolean |
deleteIssue(long issueId)
Deprecated. Delete the issue with the specified id. |
boolean |
deleteIssueAttachment(long attachmentId)
Deprecated. Delete the issue attachment with the specified id. |
boolean |
deleteNote(long noteId)
Deprecated. Delete the note with the specified id. |
boolean |
deleteProject(long projectId)
Deprecated. Delete the project with the specified id (must have admin privileges). |
boolean |
deleteProjectAttachment(long attachmentId)
Deprecated. Delete the project attachment with the specified id. |
boolean |
deleteRelationship(long issueId,
long relationshipId)
Deprecated. Delete the relationship for the specified issue. |
boolean |
deleteVersion(long versionId)
Deprecated. Delete the version with the specified id. |
void |
flush()
Deprecated. Flush cached information |
ProjectData[] |
getAccessibleProjects()
Deprecated. Get the list of projects that are accessible to the logged in user. |
long |
getBiggestIssueId(long projectId)
Deprecated. Get the latest submitted issue in the specified project. |
protected ProjectData[] |
getCachedAccessibleProjects()
Deprecated. |
protected java.lang.String[] |
getCachedCategories(long projectId)
Deprecated. |
protected java.lang.String |
getCachedConfigString(java.lang.String configVar)
Deprecated. |
protected CustomFieldDefinitionData[] |
getCachedCustomFieldDefinitionData(long projectId)
Deprecated. |
protected ObjectRef[] |
getCachedEnum(Enumeration enumeration)
Deprecated. |
protected FilterData[] |
getCachedFilters(long projectId)
Deprecated. |
protected java.lang.String |
getCachedNamedEnum(java.lang.String enumeration)
Deprecated. |
protected AccountData[] |
getCachedProjectUsers(long projectId,
int access)
Deprecated. |
protected ProjectVersionData[] |
getCachedReleasedVersions(long projectId)
Deprecated. |
protected ProjectVersionData[] |
getCachedUnreleasedVersions(long projectId)
Deprecated. |
protected java.lang.String |
getCachedVersion()
Deprecated. |
protected ProjectVersionData[] |
getCachedVersions(long projectId)
Deprecated. |
java.lang.String[] |
getCategories(long projectId)
Deprecated. Get the categories belonging to the specified project. |
java.lang.String |
getConfigString(java.lang.String configVar)
Deprecated. Get the value for the specified configuration variable. |
CustomFieldDefinitionData[] |
getCustomFieldDefinitions(long projectId)
Deprecated. Get the custom fields that belong to the specified project. |
ObjectRef |
getDefaultIssuePriority()
Deprecated. Get the default priority for new issues. |
ObjectRef |
getDefaultIssueSeverity()
Deprecated. Get the default severity for new issues. |
ObjectRef |
getDefaultIssueViewState()
Deprecated. Get the default viewstate for new issues. |
ObjectRef |
getDefaultNoteViewState()
Deprecated. Get the default viewstate for new notes. |
ObjectRef[] |
getEnum(Enumeration enumeration)
Deprecated. Get the specified enumeration. |
java.lang.String |
getEnum(java.lang.String enumeration)
Deprecated. Get the specified enumeration. |
FilterData[] |
getFilters(long projectId)
Deprecated. Get the filters defined for the specified project. |
long |
getIdFromSummary(java.lang.String summary)
Deprecated. Get the id of the issue with the specified summary. |
IssueData |
getIssue(long issueId)
Deprecated. Get the issue with the specified id. |
byte[] |
getIssueAttachment(long attachmentId)
Deprecated. Get the data for the specified issue attachment. |
IssueHeaderData[] |
getIssueHeaders(long projectId,
long filterId)
Deprecated. Get all issue headers that match the specified filter. |
IssueHeaderData[] |
getIssueHeaders(long projectId,
long filterId,
int limit)
Deprecated. Get issue headers that match the specified filter. |
IssueHeaderData[] |
getIssueHeaders(long projectId,
long filterId,
int pageNumber,
int perPage)
Deprecated. Get all issue headers that match the specified filter and paging details. |
IssueData[] |
getIssues(long projectId,
long filterId)
Deprecated. Get all issues that match the specified filter. |
IssueData[] |
getIssues(long projectId,
long filterId,
int limit)
Deprecated. Get issues that match the specified filter. |
IssueData[] |
getIssues(long projectId,
long filterId,
int pageNumber,
int perPage)
Deprecated. Get all issues that match the specified filter and paging details. |
protected MantisConnectPortType |
getPortType()
Deprecated. |
protected ObjectRef |
getProject(long projectId)
Deprecated. |
byte[] |
getProjectAttachment(long attachmentId)
Deprecated. Get the data for the specified project attachment. |
ProjectAttachmentData[] |
getProjectAttachments(long projectId)
Deprecated. Get the attachments that belong to the specified project. |
ObjectRef |
getProjectByName(java.lang.String name)
Deprecated. |
IssueHeaderData[] |
getProjectIssueHeaders(long projectId)
Deprecated. Get all issue headers that match the specified project. |
IssueHeaderData[] |
getProjectIssueHeaders(long projectId,
int limit)
Deprecated. Get the issue headers that match the specified project id and paging details Constrain the number of issues to limit . |
IssueHeaderData[] |
getProjectIssueHeaders(long projectId,
int pageNumber,
int perPage)
Deprecated. Get the issue headers that match the specified project id and paging details |
IssueData[] |
getProjectIssues(long projectId)
Deprecated. Get all issues that match the specified project. |
IssueData[] |
getProjectIssues(long projectId,
int limit)
Deprecated. Get the issues that match the specified project id and paging details Constrain the number of issues to limit . |
IssueData[] |
getProjectIssues(long projectId,
int pageNumber,
int perPage)
Deprecated. Get the issues that match the specified project id and paging details |
AccountData[] |
getProjectUsers(long projectId,
AccessLevel access)
Deprecated. Get appropriate users assigned to a project by access level. |
AccountData[] |
getProjectUsers(long projectId,
int access)
Deprecated. Get appropriate users assigned to a project by access level. |
protected java.lang.String |
getPwd()
Deprecated. |
ProjectVersionData[] |
getReleasedVersions(long projectId)
Deprecated. Get the released versions that belong to the specified project. |
ProjectVersionData[] |
getUnreleasedVersions(long projectId)
Deprecated. Get the unreleased version that belong to the specified project. |
protected java.lang.String |
getUser()
Deprecated. |
java.lang.String |
getVersion()
Deprecated. Get Version of MantisConnect this session is connected to. |
ProjectVersionData[] |
getVersions(long projectId)
Deprecated. Get the versions belonging to the specified project. |
boolean |
issueExists(long issueId)
Deprecated. Check there exists an issue with the specified id. |
IssueData |
newIssue(long projectId)
Deprecated. Create a new Issue with default values set. |
IssueNoteData |
newNote(java.lang.String text)
Deprecated. Create a new Note with default values set. |
protected java.math.BigInteger |
toBigInt(long i)
Deprecated. |
protected long |
toLong(java.math.BigInteger i)
Deprecated. |
boolean |
updateIssue(IssueData issue)
Deprecated. Update issue. |
boolean |
updateVersion(ProjectVersionData version)
Deprecated. Update version method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Session(MantisConnectPortType portType, java.lang.String user, java.lang.String pwd)
Method Detail |
protected MantisConnectPortType getPortType() throws JMTException
JMTException
protected java.lang.String getUser()
protected java.lang.String getPwd()
protected java.math.BigInteger toBigInt(long i)
protected long toLong(java.math.BigInteger i)
public void flush()
ISession
flush
in interface ISession
public IssueData newIssue(long projectId) throws JMTException
ISession
newIssue
in interface ISession
JMTException
public IssueNoteData newNote(java.lang.String text) throws JMTException
ISession
newNote
in interface ISession
JMTException
public ObjectRef getDefaultNoteViewState() throws JMTException
ISession
getDefaultNoteViewState
in interface ISession
JMTException
public ObjectRef getDefaultIssueViewState() throws JMTException
ISession
getDefaultIssueViewState
in interface ISession
JMTException
protected ObjectRef getProject(long projectId) throws JMTException
JMTException
public ObjectRef getDefaultIssuePriority() throws JMTException
ISession
getDefaultIssuePriority
in interface ISession
JMTException
public ObjectRef getDefaultIssueSeverity() throws JMTException
ISession
getDefaultIssueSeverity
in interface ISession
JMTException
protected java.lang.String getCachedVersion()
public java.lang.String getVersion() throws JMTException
ISession
getVersion
in interface ISession
JMTException
protected void cacheVersion(java.lang.String version)
protected ObjectRef[] getCachedEnum(Enumeration enumeration)
public ObjectRef[] getEnum(Enumeration enumeration) throws JMTException
ISession
getEnum
in interface ISession
JMTException
protected void cachEnum(Enumeration enumeration, ObjectRef[] values)
protected java.lang.String getCachedNamedEnum(java.lang.String enumeration)
public java.lang.String getEnum(java.lang.String enumeration) throws JMTException
ISession
getEnum
in interface ISession
JMTException
protected void cacheNamedEnum(java.lang.String enumeration, java.lang.String value)
public boolean issueExists(long issueId) throws JMTException
ISession
issueExists
in interface ISession
JMTException
public IssueData getIssue(long issueId) throws JMTException
ISession
getIssue
in interface ISession
JMTException
public long getBiggestIssueId(long projectId) throws JMTException
ISession
getBiggestIssueId
in interface ISession
JMTException
public long getIdFromSummary(java.lang.String summary) throws JMTException
ISession
getIdFromSummary
in interface ISession
JMTException
public long addIssue(IssueData issue) throws JMTException
ISession
addIssue
in interface ISession
JMTException
public long addNote(long issueId, IssueNoteData note) throws JMTException
ISession
addNote
in interface ISession
JMTException
public boolean deleteIssue(long issueId) throws JMTException
ISession
deleteIssue
in interface ISession
JMTException
public long addProject(ProjectData project) throws JMTException
ISession
addProject
in interface ISession
JMTException
public boolean deleteProject(long projectId) throws JMTException
ISession
deleteProject
in interface ISession
JMTException
protected ProjectData[] getCachedAccessibleProjects()
public ProjectData[] getAccessibleProjects() throws JMTException
ISession
getAccessibleProjects
in interface ISession
JMTException
protected void cacheProjectData(ProjectData[] data)
protected java.lang.String[] getCachedCategories(long projectId)
public java.lang.String[] getCategories(long projectId) throws JMTException
ISession
getCategories
in interface ISession
JMTException
protected void cacheCategories(long projectId, java.lang.String[] categories)
protected ProjectVersionData[] getCachedVersions(long projectId)
public ProjectVersionData[] getVersions(long projectId) throws JMTException
ISession
getVersions
in interface ISession
JMTException
protected void cacheVersions(long projectId, ProjectVersionData[] data)
protected ProjectVersionData[] getCachedReleasedVersions(long projectId)
public ProjectVersionData[] getReleasedVersions(long projectId) throws JMTException
ISession
getReleasedVersions
in interface ISession
JMTException
protected void cacheReleasedVersions(long projectId, ProjectVersionData[] data)
protected ProjectVersionData[] getCachedUnreleasedVersions(long projectId)
public ProjectVersionData[] getUnreleasedVersions(long projectId) throws JMTException
ISession
getUnreleasedVersions
in interface ISession
JMTException
protected void cacheUnreleasedVersion(long projectId, ProjectVersionData[] data)
protected FilterData[] getCachedFilters(long projectId)
public FilterData[] getFilters(long projectId) throws JMTException
ISession
getFilters
in interface ISession
JMTException
protected void cacheFilters(long projectId, FilterData[] data)
public IssueData[] getIssues(long projectId, long filterId) throws JMTException
ISession
getIssues
in interface ISession
JMTException
public IssueData[] getIssues(long projectId, long filterId, int limit) throws JMTException
ISession
limit
.
getIssues
in interface ISession
JMTException
public IssueData[] getIssues(long projectId, long filterId, int pageNumber, int perPage) throws JMTException
ISession
getIssues
in interface ISession
JMTException
public IssueHeaderData[] getIssueHeaders(long projectId, long filterId) throws JMTException
ISession
getIssueHeaders
in interface ISession
JMTException
public IssueHeaderData[] getIssueHeaders(long projectId, long filterId, int limit) throws JMTException
ISession
limit
.
getIssueHeaders
in interface ISession
JMTException
public IssueHeaderData[] getIssueHeaders(long projectId, long filterId, int pageNumber, int perPage) throws JMTException
ISession
getIssueHeaders
in interface ISession
JMTException
public IssueData[] getProjectIssues(long projectId) throws JMTException
ISession
getProjectIssues
in interface ISession
JMTException
public IssueData[] getProjectIssues(long projectId, int limit) throws JMTException
ISession
limit
.
getProjectIssues
in interface ISession
JMTException
public IssueData[] getProjectIssues(long projectId, int pageNumber, int perPage) throws JMTException
ISession
getProjectIssues
in interface ISession
JMTException
public IssueHeaderData[] getProjectIssueHeaders(long projectId) throws JMTException
ISession
getProjectIssueHeaders
in interface ISession
JMTException
public IssueHeaderData[] getProjectIssueHeaders(long projectId, int limit) throws JMTException
ISession
limit
.
getProjectIssueHeaders
in interface ISession
JMTException
public IssueHeaderData[] getProjectIssueHeaders(long projectId, int pageNumber, int perPage) throws JMTException
ISession
getProjectIssueHeaders
in interface ISession
JMTException
public ProjectAttachmentData[] getProjectAttachments(long projectId) throws JMTException
ISession
getProjectAttachments
in interface ISession
JMTException
public byte[] getProjectAttachment(long attachmentId) throws JMTException
ISession
getProjectAttachment
in interface ISession
JMTException
public long addProjectAttachment(long projectId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String fileType, byte[] content) throws JMTException
ISession
addProjectAttachment
in interface ISession
JMTException
public boolean deleteProjectAttachment(long attachmentId) throws JMTException
ISession
deleteProjectAttachment
in interface ISession
JMTException
public AccountData[] getProjectUsers(long projectId, int access) throws JMTException
ISession
getProjectUsers
in interface ISession
JMTException
public AccountData[] getProjectUsers(long projectId, AccessLevel access) throws JMTException
ISession
getProjectUsers
in interface ISession
JMTException
protected void cacheProjectUsers(long projectId, int access, AccountData[] data)
protected AccountData[] getCachedProjectUsers(long projectId, int access)
protected java.lang.String getCachedConfigString(java.lang.String configVar)
public java.lang.String getConfigString(java.lang.String configVar) throws JMTException
ISession
getConfigString
in interface ISession
JMTException
protected void cacheConfigString(java.lang.String configVar, java.lang.String string)
public boolean deleteNote(long noteId) throws JMTException
ISession
deleteNote
in interface ISession
JMTException
public boolean updateIssue(IssueData issue) throws JMTException
ISession
updateIssue
in interface ISession
JMTException
public byte[] getIssueAttachment(long attachmentId) throws JMTException
ISession
getIssueAttachment
in interface ISession
JMTException
public long addIssueAttachment(long issueId, java.lang.String name, java.lang.String fileType, byte[] content) throws JMTException
ISession
addIssueAttachment
in interface ISession
JMTException
public boolean deleteIssueAttachment(long attachmentId) throws JMTException
ISession
deleteIssueAttachment
in interface ISession
JMTException
protected CustomFieldDefinitionData[] getCachedCustomFieldDefinitionData(long projectId)
public CustomFieldDefinitionData[] getCustomFieldDefinitions(long projectId) throws JMTException
ISession
getCustomFieldDefinitions
in interface ISession
JMTException
protected void cacheCusomFieldDefinitionData(long projectId, CustomFieldDefinitionData[] data)
public long addVersion(ProjectVersionData version) throws JMTException
ISession
addVersion
in interface ISession
JMTException
public boolean updateVersion(ProjectVersionData version) throws JMTException
ISession
updateVersion
in interface ISession
JMTException
public boolean deleteVersion(long versionId) throws JMTException
ISession
deleteVersion
in interface ISession
JMTException
public ObjectRef getProjectByName(java.lang.String name) throws JMTException
JMTException
public long addRelationship(long issueId, RelationshipData relationship) throws JMTException
ISession
addRelationship
in interface ISession
JMTException
public boolean deleteRelationship(long issueId, long relationshipId) throws JMTException
ISession
deleteRelationship
in interface ISession
JMTException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |