|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.rest.v2.issue.ProjectResource
public class ProjectResource
Constructor Summary | |
---|---|
ProjectResource(ProjectService projectService,
JiraAuthenticationContext authContext,
javax.ws.rs.core.UriInfo uriInfo,
VersionService versionService,
ProjectComponentService projectComponentService,
AvatarService avatarService,
UserManager userManager,
ProjectBeanFactory projectBeanFactory,
VersionBeanFactory versionBeanFactory,
PermissionManager permissionManager,
ProjectManager projectManager,
AvatarManager avatarManager,
AvatarPickerHelper avatarPickerHelper,
AttachmentHelper attachmentHelper,
JiraBaseUrls jiraBaseUrls)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
createAvatarFromTemporary(String key,
AvatarCroppingBean croppingInstructions)
Converts temporary avatar into a real avatar |
javax.ws.rs.core.Response |
deleteAvatar(String key,
Long id)
Deletes avatar |
javax.ws.rs.core.Response |
getAllAvatars(String key)
Returns all avatars which are visible for the currently logged in user. |
javax.ws.rs.core.Response |
getAllProjects()
Returns all projects which are visible for the currently logged in user. |
javax.ws.rs.core.Response |
getProject(String key)
Contains a full representation of a project in JSON format. |
javax.ws.rs.core.Response |
getProjectComponents(String key)
Contains a full representation of a the specified project's components. |
javax.ws.rs.core.Response |
getProjectVersions(String key,
String expand)
Contains a full representation of a the specified project's versions. |
javax.ws.rs.core.Response |
storeTemporaryAvatar(String key,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar |
javax.ws.rs.core.Response |
storeTemporaryAvatarUsingMultiPart(String key,
com.atlassian.plugins.rest.common.multipart.FilePart filePart,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar using multipart. |
javax.ws.rs.core.Response |
updateProjectAvatar(String key,
AvatarBean avatarBean)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectResource(ProjectService projectService, JiraAuthenticationContext authContext, javax.ws.rs.core.UriInfo uriInfo, VersionService versionService, ProjectComponentService projectComponentService, AvatarService avatarService, UserManager userManager, ProjectBeanFactory projectBeanFactory, VersionBeanFactory versionBeanFactory, PermissionManager permissionManager, ProjectManager projectManager, AvatarManager avatarManager, AvatarPickerHelper avatarPickerHelper, AttachmentHelper attachmentHelper, JiraBaseUrls jiraBaseUrls)
Method Detail |
---|
public javax.ws.rs.core.Response getProject(String key)
key
- the project key
public javax.ws.rs.core.Response getProjectVersions(String key, String expand)
key
- the project key
public javax.ws.rs.core.Response getProjectComponents(String key)
key
- the project key
public javax.ws.rs.core.Response getAllProjects()
public javax.ws.rs.core.Response getAllAvatars(String key)
key
- project key
public javax.ws.rs.core.Response createAvatarFromTemporary(String key, AvatarCroppingBean croppingInstructions)
key
- project keycroppingInstructions
- cropping instructions
public javax.ws.rs.core.Response updateProjectAvatar(String key, AvatarBean avatarBean)
public javax.ws.rs.core.Response storeTemporaryAvatar(String key, String filename, Long size, @Context javax.servlet.http.HttpServletRequest request)
key
- Project keyfilename
- name of file being uploadedsize
- size of filerequest
- servlet request
public javax.ws.rs.core.Response storeTemporaryAvatarUsingMultiPart(String key, com.atlassian.plugins.rest.common.multipart.FilePart filePart, @Context javax.servlet.http.HttpServletRequest request)
key
- Project keyfilePart
- name of file being uploadedrequest
- servlet request
public javax.ws.rs.core.Response deleteAvatar(String key, Long id)
key
- Project keyid
- database id for avatar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |