org.mantisbt.connect
Interface ISession

All Known Implementing Classes:
Session

Deprecated. Use org.mantisbt.connect.service.IMCSession instead.

public interface ISession

Author:
Peter Lanser, planser@users.sourceforge.net

Field Summary
static int AL_ADMINISTRATOR
          Deprecated. Use org.mantisbt.connect.AccessLevel.ADMINISTRATOR
static int AL_ANYBODY
          Deprecated. Use org.mantisbt.connect.AccessLevel.ANYBODY
static int AL_DEVELOPER
          Deprecated. Use org.mantisbt.connect.AccessLevel.DEVELOPER
static int AL_MANAGER
          Deprecated. Use org.mantisbt.connect.AccessLevel.MANAGER
static int AL_NOBODY
          Deprecated. Use org.mantisbt.connect.AccessLevel.NOBODY
static int AL_REPORTER
          Deprecated. Use org.mantisbt.connect.AccessLevel.REPORTER
static int AL_UPDATER
          Deprecated. Use org.mantisbt.connect.AccessLevel.UPDATER
static int AL_VIEWER
          Deprecated. Use org.mantisbt.connect.AccessLevel.VIEWER
static int CF_TYPE_CHECKBOX
          Deprecated. Use org.mantisbt.connect.CustomFieldType.CHECKBOX
static int CF_TYPE_DATE
          Deprecated. Use org.mantisbt.connect.CustomFieldType.DATE
static int CF_TYPE_EMAIL
          Deprecated. Use org.mantisbt.connect.CustomFieldType.EMAIL
static int CF_TYPE_ENUM
          Deprecated. Use org.mantisbt.connect.CustomFieldType.ENUM
static int CF_TYPE_FLOAT
          Deprecated. Use org.mantisbt.connect.CustomFieldType.FLOAT
static int CF_TYPE_LIST
          Deprecated. Use org.mantisbt.connect.CustomFieldType.LIST
static int CF_TYPE_MULTILIST
          Deprecated. Use org.mantisbt.connect.CustomFieldType.MULTILIST
static int CF_TYPE_NUMERIC
          Deprecated. Use org.mantisbt.connect.CustomFieldType.NUMERIC
static int CF_TYPE_STRING
          Deprecated. Use org.mantisbt.connect.CustomFieldType.STRING
static int VS_PRIVATE
          Deprecated. Use org.mantisbt.connect.Viewstate.PRIVATE
static int VS_PUBLIC
          Deprecated. Use org.mantisbt.connect.Viewstate.PUBLIC
 
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 issueId, java.lang.String name, java.lang.String fileType, java.lang.String title, java.lang.String description, 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.
 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 id)
          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.
 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.
 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.
 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. Use getProjectUsers(long, AccessLevel)
 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.
 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.
 boolean updateIssue(IssueData issue)
          Deprecated. Update issue.
 boolean updateVersion(ProjectVersionData version)
          Deprecated. Update version method.
 

Field Detail

VS_PUBLIC

public static final int VS_PUBLIC
Deprecated. Use org.mantisbt.connect.Viewstate.PUBLIC

See Also:
Constant Field Values

VS_PRIVATE

public static final int VS_PRIVATE
Deprecated. Use org.mantisbt.connect.Viewstate.PRIVATE

See Also:
Constant Field Values

AL_ANYBODY

public static final int AL_ANYBODY
Deprecated. Use org.mantisbt.connect.AccessLevel.ANYBODY

See Also:
Constant Field Values

AL_VIEWER

public static final int AL_VIEWER
Deprecated. Use org.mantisbt.connect.AccessLevel.VIEWER

See Also:
Constant Field Values

AL_REPORTER

public static final int AL_REPORTER
Deprecated. Use org.mantisbt.connect.AccessLevel.REPORTER

See Also:
Constant Field Values

AL_UPDATER

public static final int AL_UPDATER
Deprecated. Use org.mantisbt.connect.AccessLevel.UPDATER

See Also:
Constant Field Values

AL_DEVELOPER

public static final int AL_DEVELOPER
Deprecated. Use org.mantisbt.connect.AccessLevel.DEVELOPER

See Also:
Constant Field Values

AL_MANAGER

public static final int AL_MANAGER
Deprecated. Use org.mantisbt.connect.AccessLevel.MANAGER

See Also:
Constant Field Values

AL_ADMINISTRATOR

public static final int AL_ADMINISTRATOR
Deprecated. Use org.mantisbt.connect.AccessLevel.ADMINISTRATOR

See Also:
Constant Field Values

AL_NOBODY

public static final int AL_NOBODY
Deprecated. Use org.mantisbt.connect.AccessLevel.NOBODY

See Also:
Constant Field Values

CF_TYPE_STRING

public static final int CF_TYPE_STRING
Deprecated. Use org.mantisbt.connect.CustomFieldType.STRING

See Also:
Constant Field Values

CF_TYPE_NUMERIC

public static final int CF_TYPE_NUMERIC
Deprecated. Use org.mantisbt.connect.CustomFieldType.NUMERIC

See Also:
Constant Field Values

CF_TYPE_FLOAT

public static final int CF_TYPE_FLOAT
Deprecated. Use org.mantisbt.connect.CustomFieldType.FLOAT

See Also:
Constant Field Values

CF_TYPE_ENUM

public static final int CF_TYPE_ENUM
Deprecated. Use org.mantisbt.connect.CustomFieldType.ENUM

See Also:
Constant Field Values

CF_TYPE_EMAIL

public static final int CF_TYPE_EMAIL
Deprecated. Use org.mantisbt.connect.CustomFieldType.EMAIL

See Also:
Constant Field Values

CF_TYPE_CHECKBOX

public static final int CF_TYPE_CHECKBOX
Deprecated. Use org.mantisbt.connect.CustomFieldType.CHECKBOX

See Also:
Constant Field Values

CF_TYPE_LIST

public static final int CF_TYPE_LIST
Deprecated. Use org.mantisbt.connect.CustomFieldType.LIST

See Also:
Constant Field Values

CF_TYPE_MULTILIST

public static final int CF_TYPE_MULTILIST
Deprecated. Use org.mantisbt.connect.CustomFieldType.MULTILIST

See Also:
Constant Field Values

CF_TYPE_DATE

public static final int CF_TYPE_DATE
Deprecated. Use org.mantisbt.connect.CustomFieldType.DATE

See Also:
Constant Field Values
Method Detail

flush

public void flush()
Deprecated. 
Flush cached information


newIssue

public IssueData newIssue(long projectId)
                   throws JMTException
Deprecated. 
Create a new Issue with default values set.

Throws:
JMTException

newNote

public IssueNoteData newNote(java.lang.String text)
                      throws JMTException
Deprecated. 
Create a new Note with default values set.

Throws:
JMTException

getVersion

public java.lang.String getVersion()
                            throws JMTException
Deprecated. 
Get Version of MantisConnect this session is connected to.

Throws:
JMTException

getEnum

public ObjectRef[] getEnum(Enumeration enumeration)
                    throws JMTException
Deprecated. 
Get the specified enumeration.

Throws:
JMTException

getEnum

public java.lang.String getEnum(java.lang.String enumeration)
                         throws JMTException
Deprecated. 
Get the specified enumeration.

Throws:
JMTException

issueExists

public boolean issueExists(long issueId)
                    throws JMTException
Deprecated. 
Check there exists an issue with the specified id.

Throws:
JMTException

getIssue

public IssueData getIssue(long issueId)
                   throws JMTException
Deprecated. 
Get the issue with the specified id.

Throws:
JMTException

getBiggestIssueId

public long getBiggestIssueId(long projectId)
                       throws JMTException
Deprecated. 
Get the latest submitted issue in the specified project.

Throws:
JMTException

getIdFromSummary

public long getIdFromSummary(java.lang.String summary)
                      throws JMTException
Deprecated. 
Get the id of the issue with the specified summary.

Throws:
JMTException

addIssue

public long addIssue(IssueData issue)
              throws JMTException
Deprecated. 
Submit the specified issue.

Throws:
JMTException

addNote

public long addNote(long issueId,
                    IssueNoteData note)
             throws JMTException
Deprecated. 
Submit a new note.

Throws:
JMTException

deleteIssue

public boolean deleteIssue(long issueId)
                    throws JMTException
Deprecated. 
Delete the issue with the specified id.

Throws:
JMTException

addProject

public long addProject(ProjectData project)
                throws JMTException
Deprecated. 
Add a new project to the tracker (must have admin privileges).

Throws:
JMTException

deleteProject

public boolean deleteProject(long projectId)
                      throws JMTException
Deprecated. 
Delete the project with the specified id (must have admin privileges).

Throws:
JMTException

getAccessibleProjects

public ProjectData[] getAccessibleProjects()
                                    throws JMTException
Deprecated. 
Get the list of projects that are accessible to the logged in user.

Throws:
JMTException

getCategories

public java.lang.String[] getCategories(long projectId)
                                 throws JMTException
Deprecated. 
Get the categories belonging to the specified project.

Throws:
JMTException

getVersions

public ProjectVersionData[] getVersions(long projectId)
                                 throws JMTException
Deprecated. 
Get the versions belonging to the specified project.

Throws:
JMTException

getReleasedVersions

public ProjectVersionData[] getReleasedVersions(long projectId)
                                         throws JMTException
Deprecated. 
Get the released versions that belong to the specified project.

Throws:
JMTException

getUnreleasedVersions

public ProjectVersionData[] getUnreleasedVersions(long projectId)
                                           throws JMTException
Deprecated. 
Get the unreleased version that belong to the specified project.

Throws:
JMTException

getFilters

public FilterData[] getFilters(long projectId)
                        throws JMTException
Deprecated. 
Get the filters defined for the specified project.

Throws:
JMTException

getIssues

public IssueData[] getIssues(long projectId,
                             long filterId)
                      throws JMTException
Deprecated. 
Get all issues that match the specified filter.

Throws:
JMTException

getIssues

public IssueData[] getIssues(long projectId,
                             long filterId,
                             int limit)
                      throws JMTException
Deprecated. 
Get issues that match the specified filter. Constrain the number of issues to limit.

Throws:
JMTException

getIssues

public IssueData[] getIssues(long projectId,
                             long filterId,
                             int pageNumber,
                             int perPage)
                      throws JMTException
Deprecated. 
Get all issues that match the specified filter and paging details.

Throws:
JMTException

getIssueHeaders

public IssueHeaderData[] getIssueHeaders(long projectId,
                                         long filterId)
                                  throws JMTException
Deprecated. 
Get all issue headers that match the specified filter.

Throws:
JMTException

getIssueHeaders

public IssueHeaderData[] getIssueHeaders(long projectId,
                                         long filterId,
                                         int limit)
                                  throws JMTException
Deprecated. 
Get issue headers that match the specified filter. Constrain the number of issues to limit.

Throws:
JMTException

getIssueHeaders

public IssueHeaderData[] getIssueHeaders(long projectId,
                                         long filterId,
                                         int pageNumber,
                                         int perPage)
                                  throws JMTException
Deprecated. 
Get all issue headers that match the specified filter and paging details.

Throws:
JMTException

getProjectIssues

public IssueData[] getProjectIssues(long projectId)
                             throws JMTException
Deprecated. 
Get all issues that match the specified project.

Throws:
JMTException

getProjectIssues

public IssueData[] getProjectIssues(long projectId,
                                    int limit)
                             throws JMTException
Deprecated. 
Get the issues that match the specified project id and paging details Constrain the number of issues to limit.

Throws:
JMTException

getProjectIssues

public IssueData[] getProjectIssues(long projectId,
                                    int pageNumber,
                                    int perPage)
                             throws JMTException
Deprecated. 
Get the issues that match the specified project id and paging details

Throws:
JMTException

getProjectIssueHeaders

public IssueHeaderData[] getProjectIssueHeaders(long projectId)
                                         throws JMTException
Deprecated. 
Get all issue headers that match the specified project.

Throws:
JMTException

getProjectIssueHeaders

public IssueHeaderData[] getProjectIssueHeaders(long projectId,
                                                int limit)
                                         throws JMTException
Deprecated. 
Get the issue headers that match the specified project id and paging details Constrain the number of issues to limit.

Throws:
JMTException

getProjectIssueHeaders

public IssueHeaderData[] getProjectIssueHeaders(long projectId,
                                                int pageNumber,
                                                int perPage)
                                         throws JMTException
Deprecated. 
Get the issue headers that match the specified project id and paging details

Throws:
JMTException

getProjectAttachments

public ProjectAttachmentData[] getProjectAttachments(long projectId)
                                              throws JMTException
Deprecated. 
Get the attachments that belong to the specified project.

Throws:
JMTException

getProjectAttachment

public byte[] getProjectAttachment(long attachmentId)
                            throws JMTException
Deprecated. 
Get the data for the specified project attachment.

Throws:
JMTException

addProjectAttachment

public long addProjectAttachment(long issueId,
                                 java.lang.String name,
                                 java.lang.String fileType,
                                 java.lang.String title,
                                 java.lang.String description,
                                 byte[] content)
                          throws JMTException
Deprecated. 
Submit a project attachment

Throws:
JMTException

deleteProjectAttachment

public boolean deleteProjectAttachment(long attachmentId)
                                throws JMTException
Deprecated. 
Delete the project attachment with the specified id.

Throws:
JMTException

getProjectUsers

public AccountData[] getProjectUsers(long projectId,
                                     int access)
                              throws JMTException
Deprecated. Use getProjectUsers(long, AccessLevel)

Get appropriate users assigned to a project by access level.

Throws:
JMTException

getProjectUsers

public AccountData[] getProjectUsers(long projectId,
                                     AccessLevel access)
                              throws JMTException
Deprecated. 
Get appropriate users assigned to a project by access level.

Throws:
JMTException

getConfigString

public java.lang.String getConfigString(java.lang.String configVar)
                                 throws JMTException
Deprecated. 
Get the value for the specified configuration variable.

Throws:
JMTException

deleteNote

public boolean deleteNote(long noteId)
                   throws JMTException
Deprecated. 
Delete the note with the specified id.

Throws:
JMTException

updateIssue

public boolean updateIssue(IssueData issue)
                    throws JMTException
Deprecated. 
Update issue.

Throws:
JMTException

getIssueAttachment

public byte[] getIssueAttachment(long attachmentId)
                          throws JMTException
Deprecated. 
Get the data for the specified issue attachment.

Throws:
JMTException

addIssueAttachment

public long addIssueAttachment(long issueId,
                               java.lang.String name,
                               java.lang.String fileType,
                               byte[] content)
                        throws JMTException
Deprecated. 
Submit an issue attachment

Throws:
JMTException

deleteIssueAttachment

public boolean deleteIssueAttachment(long attachmentId)
                              throws JMTException
Deprecated. 
Delete the issue attachment with the specified id.

Throws:
JMTException

getCustomFieldDefinitions

public CustomFieldDefinitionData[] getCustomFieldDefinitions(long projectId)
                                                      throws JMTException
Deprecated. 
Get the custom fields that belong to the specified project.

Throws:
JMTException

addVersion

public long addVersion(ProjectVersionData version)
                throws JMTException
Deprecated. 
Submit the specified version details.

Throws:
JMTException

updateVersion

public boolean updateVersion(ProjectVersionData version)
                      throws JMTException
Deprecated. 
Update version method.

Throws:
JMTException

deleteVersion

public boolean deleteVersion(long id)
                      throws JMTException
Deprecated. 
Delete the version with the specified id.

Throws:
JMTException

getDefaultIssuePriority

public ObjectRef getDefaultIssuePriority()
                                  throws JMTException
Deprecated. 
Get the default priority for new issues.

Throws:
JMTException

getDefaultIssueSeverity

public ObjectRef getDefaultIssueSeverity()
                                  throws JMTException
Deprecated. 
Get the default severity for new issues.

Throws:
JMTException

getDefaultIssueViewState

public ObjectRef getDefaultIssueViewState()
                                   throws JMTException
Deprecated. 
Get the default viewstate for new issues.

Throws:
JMTException

getDefaultNoteViewState

public ObjectRef getDefaultNoteViewState()
                                  throws JMTException
Deprecated. 
Get the default viewstate for new notes.

Throws:
JMTException

addRelationship

public long addRelationship(long issueId,
                            RelationshipData relationship)
                     throws JMTException
Deprecated. 
Submit a new realtionship.

Throws:
JMTException

deleteRelationship

public boolean deleteRelationship(long issueId,
                                  long relationshipId)
                           throws JMTException
Deprecated. 
Delete the relationship for the specified issue.

Throws:
JMTException