public class ProjectData
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ProjectData.ProjectDataBuilder |
Constructor and Description |
---|
ProjectData()
Deprecated.
This is only used for xml serialization. Use
ProjectData.ProjectDataBuilder.builder() instead |
ProjectData(int id,
java.lang.String name,
java.lang.String key,
java.lang.String defaultRepositoryName,
int permissionSchemeId,
boolean allowReviewersToJoin,
java.lang.Integer defaultDuration,
java.util.List<java.lang.String> defaultReviewers,
java.lang.String defaultModerator,
boolean moderatorEnabled,
java.util.List<java.lang.String> allowedReviewersUsers,
java.lang.String defaultObjectives)
Deprecated.
Use
ProjectData.ProjectDataBuilder.builder() instead. |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAllowedReviewerGroups()
Gets list of project's allowed reviewer groups
|
java.util.List<java.lang.String> |
getAllowedReviewers()
Deprecated.
Use getAllowedReviewersUsers instead
|
java.util.List<java.lang.String> |
getAllowedReviewerUsers()
Gets list of project's allowed reviewer users
|
java.lang.Integer |
getDefaultDuration() |
java.lang.String |
getDefaultModerator() |
java.lang.String |
getDefaultObjectives() |
java.lang.String |
getDefaultRepositoryName() |
java.util.List<java.lang.String> |
getDefaultReviewerGroups()
Gets list of project's default reviewer groups
|
java.util.List<java.lang.String> |
getDefaultReviewerUsers()
Gets list of project's default reviewer users
|
int |
getId() |
java.lang.String |
getKey() |
java.lang.String |
getName() |
int |
getPermissionSchemeId()
Deprecated.
Use getPermissionSchemeName instead and use permission scheme name to identify permission scheme
|
java.lang.String |
getPermissionSchemeName() |
java.lang.Boolean |
getStoreRevisions() |
boolean |
isAllowReviewersToJoin() |
boolean |
isModeratorEnabled() |
void |
setAllowedReviewerGroups(java.util.List<java.lang.String> allowedReviewerGroups)
Sets list of project's allowed reviewer groups
|
void |
setAllowedReviewers(java.util.List<java.lang.String> allowedReviewersUsers)
Deprecated.
Use setAllowedReviewersUsers instead
|
void |
setAllowedReviewerUsers(java.util.List<java.lang.String> allowedReviewerUsers)
Sets list of project's allowed reviewer users
|
void |
setAllowReviewersToJoin(boolean allowReviewersToJoin)
Sets project's allow reviewers to join flag
|
void |
setDefaultDuration(java.lang.Integer defaultDuration) |
void |
setDefaultModerator(java.lang.String defaultModerator) |
void |
setDefaultObjectives(java.lang.String defaultObjectives) |
void |
setDefaultRepositoryName(java.lang.String defaultRepositoryName) |
void |
setDefaultReviewerGroups(java.util.List<java.lang.String> defaultReviewerGroups)
Sets list of project's default reviewer groups
|
void |
setDefaultReviewerUsers(java.util.List<java.lang.String> defaultReviewerUsers)
Sets list of project's default reviewer users
|
void |
setId(int id) |
void |
setKey(java.lang.String key) |
void |
setModeratorEnabled(boolean moderatorEnabled) |
void |
setName(java.lang.String name) |
void |
setPermissionSchemeId(int permissionSchemeId)
Deprecated.
Use setPermissionSchemeName instead and use permission scheme name to identify permission scheme
|
void |
setPermissionSchemeName(java.lang.String permissionSchemeName) |
void |
setStoreRevisions(java.lang.Boolean storeRevisions) |
public ProjectData()
ProjectData.ProjectDataBuilder.builder()
insteadpublic ProjectData(int id, java.lang.String name, java.lang.String key, java.lang.String defaultRepositoryName, int permissionSchemeId, boolean allowReviewersToJoin, java.lang.Integer defaultDuration, java.util.List<java.lang.String> defaultReviewers, java.lang.String defaultModerator, boolean moderatorEnabled, java.util.List<java.lang.String> allowedReviewersUsers, java.lang.String defaultObjectives)
ProjectData.ProjectDataBuilder.builder()
instead.allowedReviewersUsers
- a list of reviewers that are allowed to participate in this review. It contains a list of usernames.public int getId()
public void setId(int id)
id
- project idpublic java.lang.String getDefaultObjectives()
public void setDefaultObjectives(java.lang.String defaultObjectives)
defaultObjectives
- project's default objectivespublic java.lang.String getDefaultModerator()
public void setDefaultModerator(java.lang.String defaultModerator)
defaultModerator
- project's default moderatorpublic java.lang.Boolean getStoreRevisions()
public void setStoreRevisions(java.lang.Boolean storeRevisions)
storeRevisions
- project's store revision flag, can be true, false or nullpublic boolean isModeratorEnabled()
public void setModeratorEnabled(boolean moderatorEnabled)
moderatorEnabled
- project's moderator enabled flagpublic java.util.List<java.lang.String> getDefaultReviewerUsers()
public void setDefaultReviewerUsers(java.util.List<java.lang.String> defaultReviewerUsers)
defaultReviewerUsers
- list of usernamespublic java.util.List<java.lang.String> getDefaultReviewerGroups()
public void setDefaultReviewerGroups(java.util.List<java.lang.String> defaultReviewerGroups)
defaultReviewerGroups
- list of group namespublic java.util.List<java.lang.String> getAllowedReviewers()
public void setAllowedReviewers(java.util.List<java.lang.String> allowedReviewersUsers)
allowedReviewersUsers
- public java.util.List<java.lang.String> getAllowedReviewerUsers()
public void setAllowedReviewerUsers(java.util.List<java.lang.String> allowedReviewerUsers)
allowedReviewerUsers
- list of usernamespublic java.util.List<java.lang.String> getAllowedReviewerGroups()
public void setAllowedReviewerGroups(java.util.List<java.lang.String> allowedReviewerGroups)
allowedReviewerGroups
- list of group namespublic java.lang.String getName()
public void setName(java.lang.String name)
name
- project namepublic java.lang.String getKey()
public void setKey(java.lang.String key)
key
- project keypublic java.lang.String getDefaultRepositoryName()
public void setDefaultRepositoryName(java.lang.String defaultRepositoryName)
defaultRepositoryName
- project's default repository key@Deprecated public int getPermissionSchemeId()
@Deprecated public void setPermissionSchemeId(int permissionSchemeId)
public java.lang.String getPermissionSchemeName()
public void setPermissionSchemeName(java.lang.String permissionSchemeName)
permissionSchemeName
- project's permission scheme namepublic boolean isAllowReviewersToJoin()
public void setAllowReviewersToJoin(boolean allowReviewersToJoin)
allowReviewersToJoin
- public java.lang.Integer getDefaultDuration()
public void setDefaultDuration(java.lang.Integer defaultDuration)
defaultDuration
- the default duration for reviews in this project, expressed in
week days.