public interface Project extends Adaptable
ProjectManager
for details.Modifier and Type | Method and Description |
---|---|
ProjectLink |
addLink(java.lang.String name,
java.lang.String target)
Creates a new link or updates an existing link for the specified target.
|
Resource |
getAssetFolder()
The Asset folder associated with this project.
|
java.lang.String |
getDescription()
Returns the description of the project.
|
java.lang.Iterable<ProjectLink> |
getLinks()
Returns the links that are associated with the project.
|
java.util.Set<ProjectMember> |
getMembers()
Return the members associated with the Project.
|
Resource |
getProjectCover()
Returns the resource representing the project's cover image.
|
java.lang.String |
getTitle()
Returns the title of the project.
|
boolean |
isActive()
indicates if the project is active
|
void |
setActive(boolean active)
specifies if a project is active
|
void |
setDescription(java.lang.String description)
Set a new description for the project.
|
void |
setProjectCover(java.lang.String mimeType,
java.io.InputStream stream)
Associate a new image to this project's cover.
|
void |
setTitle(java.lang.String name)
Set a new title for the project.
|
java.util.Collection<ProjectMember> |
updateMembers(java.util.List<java.lang.String> userIds,
java.util.List<java.lang.String> roleIds)
Update the Project's members with the set of users and their associated roles.
|
java.lang.String getTitle()
void setTitle(java.lang.String name)
name
- the new name for the projectProjectException
- if the operation failsjava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the new description for the projectProjectException
- if the operation failsProjectLink addLink(java.lang.String name, java.lang.String target)
name
- the suggested name of the new link.target
- the target path or url of this link.ProjectException
- if the operation failsjava.lang.Iterable<ProjectLink> getLinks()
ProjectLink
Resource getAssetFolder()
Resource
for the Asset folder associated with this project.void setProjectCover(java.lang.String mimeType, java.io.InputStream stream)
mimeType
- the mime type of the provided input streamstream
- a stream of image data.ProjectException
- if updating the cover image fails.Resource getProjectCover()
java.util.Collection<ProjectMember> updateMembers(java.util.List<java.lang.String> userIds, java.util.List<java.lang.String> roleIds)
userIds
- a list of user idsroleIds
- a list of role idsProjectException
- if there are issues updating the members of the team.java.util.Set<ProjectMember> getMembers()
ProjectMember
s.ProjectException
- if there are issues obtaining the members of the Project
.void setActive(boolean active)
active
- true when project is activeboolean isActive()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"