Package com.xebialabs.xlrelease.domain
Class Release
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.xlrelease.domain.PlanItem
com.xebialabs.xlrelease.domain.Release
- All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem,com.xebialabs.deployit.repository.core.Securable,CiWithInternalMetadata,CiWithUid,TenantAwareCi,VariableContainer,VisitableItem,Serializable,Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>
@Metadata(description="A release or template.",
root=APPLICATIONS,
versioned=false)
public class Release
extends PlanItem
implements com.xebialabs.deployit.repository.core.Securable, CiWithInternalMetadata, VariableContainer, CiWithUid, TenantAwareCi
- See Also:
-
Field Summary
FieldsFields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELDFields inherited from interface com.xebialabs.deployit.repository.core.Securable
SECURITY_PERMISSIONS_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortAsPartOfBulkOperation(String abortComment) voidaccept(ReleaseVisitor visitor) voidvoidvoidvoidaddVariable(Variable variable) voidaddVariables(List<Variable> newVariables) booleanbooleanvoidvoidvoidvoidcheckVariableCanBeAdded(Variable variable) voidvoidcollectVariableReferences(VisitableItem updated) voidvoiddeleteAttachment(String attachmentId) voiddeletePhase(Phase phase) voiddeleteReleaseTriggerById(String triggerId) Deprecated.voiddeleteTask(Task task) voiddeleteTeam(String teamId) failTask(String taskId, String failReason, com.xebialabs.xlrelease.user.User user, boolean fromAbort) filterPhasesContainingInTitle(List<Phase> phases, String partialTitleToLookFor) voidboolean<T> List<T> getAllTasksOfType(Class<T> clazz) getAttachment(String attachmentId) intgetCiUid()getKind()getLogo()intintgetNextPhase(Phase currentPhase) This method is kept for backwards compatibility.getPermissions(String user, List<com.xebialabs.deployit.security.Role> userRoles) getPermissions(Collection<String> principals, List<com.xebialabs.deployit.security.Role> userRoles) getPhasesByTitle(String phaseTitle) getPhasesContainingInTitle(String partialTitleToLookFor) getReleaseTriggerById(String releaseTriggerId) Deprecated.Deprecated.getTags()getTasksByTitle(String phaseTitle, String taskTitle) getTasksUsingAttachment(String attachmentId) getTeams()getTeamsOf(String username, List<com.xebialabs.deployit.security.Role> userRoles) getTeamWithId(String id) getUrl()getVariableById(String variableId) This method is kept for backwards compatibility.booleanbooleanbooleanhasNextPhase(Phase phase) booleanbooleanbooleanbooleanbooleanbooleanbooleanisActive()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisDone()booleanisFailed()booleanbooleanbooleanisPaused()booleanbooleanbooleanbooleanbooleanbooleanbooleanisVariableUsed(Variable variable) booleanmarkTaskAsDone(String taskId, TaskStatus status) markTaskAsFailing(String taskId, String failReason) removeVariable(String variableId) voidreplaceTask(Task task) voidreplaceTrigger(ReleaseTrigger releaseTrigger) Deprecated.voidreplaceVariable(Variable current, Variable replacement) restorePhases(List<Phase> phases) resume()scanAndAddNewVariables(VisitableItem updated) voidsetAbortOnFailure(boolean abortOnFailure) voidsetAllowConcurrentReleasesFromTrigger(boolean allowConcurrentReleasesFromTrigger) voidsetAllowPasswordsInAllFields(boolean allowPasswordsInAllFields) voidsetAllowTargetFolderOverride(boolean allowTargetFolderOverride) voidsetArchived(boolean isArchived) voidsetArchiveRelease(boolean archiveRelease) voidsetAttachments(List<Attachment> attachments) voidvoidsetAutomatedResumeCount(int automatedResumeCount) voidsetAutoStart(boolean autoStart) voidsetCalendarLinkToken(String calendarLinkToken) voidsetCalendarPublished(boolean calendarPublished) voidsetCategories(Set<String> categories) voidvoidsetCreatedFromTrigger(boolean createdFromTrigger) voidsetDefaultTargetFolderId(String defaultTargetFolderId) voidsetDisableNotifications(boolean disableNotifications) voidsetDueDate(Date value) voidsetEndDate(Date value) voidsetExtensions(List<ReleaseExtension> extensions) voidsetFolderVariables(FolderVariables folderVariables) voidsetGlobalVariables(GlobalVariables globalVariables) voidsetKind(ReleaseKind kind) voidsetLogo(TemplateLogo logo) voidsetMaxAutomatedResumes(int maxAutomatedResumes) voidsetMaxConcurrentReleases(int maxConcurrentReleases) voidsetOriginTemplateId(String originTemplateId) voidsetParentReleaseId(String parentReleaseId) voidsetPasswordVariableValues(Map<String, ?> variableValues) This method is kept for backwards compatibility.voidvoidsetQueryableEndDate(Date queryableEndDate) voidsetQueryableStartDate(Date queryableStartDate) voidsetReleaseTriggers(List<ReleaseTrigger> releaseTriggers) Deprecated.voidsetReleaseUid(Integer releaseUid) voidsetRiskProfile(RiskProfile riskProfile) voidsetRootReleaseId(String rootReleaseId) voidsetScheduledStartDate(Date scheduledStartDate) voidsetScriptUsername(String scriptUsername) voidsetScriptUserPassword(String scriptUserPassword) voidsetStartDate(Date value) voidsetStartedFromTaskId(String startedFromTaskId) voidsetStatus(ReleaseStatus value) voidvoidvoidsetTenantId(String tenantId) voidsetTutorial(boolean tutorial) voidsetVariableMapping(Map<String, String> variableMapping) voidsetVariables(List<Variable> variables) voidsetVariableValues(Map<String, ?> variableValues) This method is kept for backwards compatibility.start()start(boolean releaseStartedImmediatelyAfterBeingCreated) startPendingTask(String taskId) startWithInput(String taskId) taskPreconditionValidated(String taskId) toString()voidvoidupdateDatesForRelease(Date scheduledStartDate, Date dueDate, Integer plannedDuration) voidupdateDatesForTemplate(Date scheduledStartDate, Date dueDate, Integer plannedDuration) voidvoidupdateTeam(Team newTeam) Methods inherited from class com.xebialabs.xlrelease.domain.PlanItem
checkDatesValidity, getActualDuration, getComputedPlannedDuration, getDescription, getDueDate, getEndDate, getEndOrDueDate, getFlagComment, getFlagStatus, getOrCalculateDueDate, getOwner, getPlannedDuration, getScheduledStartDate, getStartDate, getStartOrScheduledDate, getTitle, hasDueDate, hasEndDate, hasEndOrDueDate, hasOwner, hasOwner, hasPlannedDuration, hasScheduledStartDate, hasStartDate, hasStartOrScheduledDate, hasTitle, hasTitle, hasValidStartDates, isFlagged, isOverdue, isOverdueNotified, isTitleContaining, moveChildren, setDates, setDescription, setFlagComment, setFlagStatus, setOverdueNotified, setOwner, setPlannedDuration, setStartAndEndDatesIfEmpty, setTitle, shouldNotifyOverdue, updateDates, updateDurationMethods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
compareTo, equals, get$ciAttributes, get$directoryReference, get$externalProperties, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$token, get$validationMessages, getId, getName, getProperty, getType, hashCode, hasProperty, set$ciAttributes, set$directoryReference, set$externalProperties, set$internalId, set$referenceId, set$securedCi, set$securedDirectoryReference, set$token, set$validationMessages, setId, setProperty, setTypeMethods inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
get$directoryReference, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$validationMessages, getId, getName, getProperty, getType, hasProperty, setId, setProperty
-
Field Details
-
SCRIPT_USER_PASSWORD_VARIABLE_MAPPING_KEY
- See Also:
-
DEFAULT_TARGET_FOLDER_ID_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
Release
public Release()
-
-
Method Details
-
getPhases
-
setPhases
-
getReleaseTriggers
Deprecated. -
getReleaseTriggerById
Deprecated. -
setReleaseTriggers
Deprecated. -
deleteReleaseTriggerById
Deprecated. -
replaceTrigger
Deprecated. -
getRootReleaseId
-
setRootReleaseId
-
getParentReleaseId
-
setParentReleaseId
-
getMaxConcurrentReleases
public int getMaxConcurrentReleases() -
setMaxConcurrentReleases
public void setMaxConcurrentReleases(int maxConcurrentReleases) -
getCiUid
-
setCiUid
-
getTenantId
- Specified by:
getTenantIdin interfaceTenantAwareCi
-
setTenantId
- Specified by:
setTenantIdin interfaceTenantAwareCi
-
getAutomatedResumeCount
public int getAutomatedResumeCount() -
setAutomatedResumeCount
public void setAutomatedResumeCount(int automatedResumeCount) -
getMaxAutomatedResumes
public int getMaxAutomatedResumes() -
setMaxAutomatedResumes
public void setMaxAutomatedResumes(int maxAutomatedResumes) -
getAbortComment
-
getVariableValues
This method is kept for backwards compatibility.getVariables()method provides richer access to the variable management.- Returns:
- mapping from variable name to variable value containing only variables with string values.
Variable names are in
${key}format.
-
getPasswordVariableValues
This method is kept for backwards compatibility.getVariables()method provides richer access to the variable management.- Returns:
- mapping from variable name to variable value containing only variables with single password values.
Variable names are in
${key}format.
-
getCiPropertyVariables
-
getAllStringVariableValues
-
getAllVariableValuesAsStringsWithInterpolationInfo
-
getVariablesKeysInNonInterpolatableVariableValues
-
getVariablesByKeys
-
setVariableValues
This method is kept for backwards compatibility.setVariables(List)method provides richer access to the variable management.- Parameters:
variableValues- mapping from variable name to variable value containing only variables with string values. Variable names are in${key}orkeyformat.
-
setPasswordVariableValues
This method is kept for backwards compatibility.setVariables(List)method provides richer access to the variable management.- Parameters:
variableValues- mapping from password variable name to password variable value. Variable names are in${key}orkeyformat.
-
scanAndAddNewVariables
-
scanAndAddNewVariables
-
getAllVariables
- Specified by:
getAllVariablesin interfaceVariableContainer
-
getVariables
-
addVariables
-
replaceVariable
-
setVariables
-
getVariableById
-
addVariable
-
checkVariableCanBeAdded
-
getGlobalVariables
-
setGlobalVariables
-
getFolderVariables
-
setFolderVariables
-
removeVariable
-
isVariableUsed
-
getStatus
-
setStatus
-
getAdminTeam
-
getTeams
-
setTeams
-
getCategories
-
setCategories
-
getTags
-
setTags
-
getAttachments
-
setAttachments
-
deleteAttachment
-
getTasksUsingAttachment
-
hasBeenStarted
public boolean hasBeenStarted()- Specified by:
hasBeenStartedin classPlanItem
-
getReleaseAttachments
-
getCalendarLinkToken
-
setCalendarLinkToken
-
isCalendarPublished
public boolean isCalendarPublished() -
setCalendarPublished
public void setCalendarPublished(boolean calendarPublished) -
getExtensions
-
setExtensions
-
getRealFlagStatus
-
getCurrentPhase
-
getCurrentTask
-
hasCurrentPhase
public boolean hasCurrentPhase() -
start
-
start
-
startAsPartOfBulkOperation
-
resume
-
markTaskAsDone
-
markTaskAsFailing
-
startPendingTask
-
startWithInput
-
taskPreconditionValidated
-
failTask
-
failTask
-
failTask
-
abort
-
abortAsPartOfBulkOperation
-
retryTask
-
getNextPhase
-
hasNextPhase
-
addPhase
-
addPhase
-
deletePhase
-
getAllTasks
-
getTask
-
getAttachment
-
movePhase
-
getPhase
-
getPhase
-
hasPhase
-
addTeam
-
deleteTeam
-
addBelow
-
collectVariableReferences
-
collectVariableReferences
-
getAllGates
-
getAllUserInputTasks
-
getAllTasksOfType
-
findFirstSetDate
-
clearComments
public void clearComments() -
clearTaskModificationAttributes
public void clearTaskModificationAttributes() -
hasNoAutomatedTaskRunning
public boolean hasNoAutomatedTaskRunning() -
isDone
public boolean isDone() -
isPlannedOrActive
public boolean isPlannedOrActive() -
isActive
public boolean isActive() -
isDefunct
public boolean isDefunct() -
isUpdatable
public boolean isUpdatable()- Specified by:
isUpdatablein classPlanItem
-
isAborted
public boolean isAborted() -
isFailing
public boolean isFailing() -
isFailed
public boolean isFailed() -
isPaused
public boolean isPaused() -
isTemplate
public boolean isTemplate() -
isWorkflow
public boolean isWorkflow() -
isPlanned
public boolean isPlanned() -
isInProgress
public boolean isInProgress() -
isTutorial
public boolean isTutorial() -
setTutorial
public void setTutorial(boolean tutorial) -
isAbortOnFailure
public boolean isAbortOnFailure() -
setAbortOnFailure
public void setAbortOnFailure(boolean abortOnFailure) -
isArchiveRelease
public boolean isArchiveRelease() -
setArchiveRelease
public void setArchiveRelease(boolean archiveRelease) -
isAllowPasswordsInAllFields
public boolean isAllowPasswordsInAllFields() -
setAllowPasswordsInAllFields
public void setAllowPasswordsInAllFields(boolean allowPasswordsInAllFields) -
isDisableNotifications
public boolean isDisableNotifications() -
setDisableNotifications
public void setDisableNotifications(boolean disableNotifications) -
isAllowConcurrentReleasesFromTrigger
public boolean isAllowConcurrentReleasesFromTrigger() -
setAllowConcurrentReleasesFromTrigger
public void setAllowConcurrentReleasesFromTrigger(boolean allowConcurrentReleasesFromTrigger) -
getOriginTemplateId
-
setOriginTemplateId
-
isCreatedFromTrigger
public boolean isCreatedFromTrigger() -
setCreatedFromTrigger
public void setCreatedFromTrigger(boolean createdFromTrigger) -
getRelease
- Specified by:
getReleasein classPlanItem
-
getReleaseUid
- Specified by:
getReleaseUidin classPlanItem
-
setReleaseUid
- Specified by:
setReleaseUidin classPlanItem
-
getDisplayPath
- Specified by:
getDisplayPathin classPlanItem
-
getTeamWithId
-
getChildren
- Specified by:
getChildrenin classPlanItem
-
getAllPlanItems
-
toString
- Overrides:
toStringin classcom.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
-
checkDatesValidityForRelease
public void checkDatesValidityForRelease() -
checkDatesValidityForTemplate
public void checkDatesValidityForTemplate() -
checkDatesValidity
public void checkDatesValidity() -
updateDatesForRelease
-
updateDatesForTemplate
-
getQueryableStartDate
-
setQueryableStartDate
-
getQueryableEndDate
-
setQueryableEndDate
-
getScriptUsername
-
setScriptUsername
-
getScriptUserPassword
-
setScriptUserPassword
-
getUrl
-
getVariableMapping
-
setVariableMapping
-
getRiskProfile
-
setRiskProfile
-
getStartedFromTaskId
-
setStartedFromTaskId
-
setStartDate
- Overrides:
setStartDatein classPlanItem
-
setScheduledStartDate
- Overrides:
setScheduledStartDatein classPlanItem
-
setEndDate
- Overrides:
setEndDatein classPlanItem
-
setDueDate
- Overrides:
setDueDatein classPlanItem
-
getKind
-
setKind
-
getAuthor
-
setAuthor
-
getLogo
-
setLogo
-
getDefaultTargetFolderId
-
setDefaultTargetFolderId
-
getAllowTargetFolderOverride
public boolean getAllowTargetFolderOverride() -
setAllowTargetFolderOverride
public void setAllowTargetFolderOverride(boolean allowTargetFolderOverride) -
updateTeam
-
updateRealFlagStatus
public void updateRealFlagStatus() -
hasScriptUsername
public boolean hasScriptUsername() -
getActiveTasks
-
isArchived
public boolean isArchived() -
setArchived
public void setArchived(boolean isArchived) -
accept
- Specified by:
acceptin interfaceVisitableItem
-
getVariableUsages
- Specified by:
getVariableUsagesin classPlanItem
-
get$metadata
- Specified by:
get$metadatain interfaceCiWithInternalMetadata
-
getFolderId
-
findFolderId
-
hasTeam
-
getTeamsOf
-
getPermissions
-
getPermissions
public Set<String> getPermissions(Collection<String> principals, List<com.xebialabs.deployit.security.Role> userRoles) -
isAutoStart
public boolean isAutoStart() -
setAutoStart
public void setAutoStart(boolean autoStart) -
canAutomaticallyStartReleaseNow
public boolean canAutomaticallyStartReleaseNow() -
canScheduleReleaseStart
public boolean canScheduleReleaseStart() -
isPending
public boolean isPending() -
deleteTask
-
replaceTask
-
getPhasesByTitle
-
getPhasesContainingInTitle
-
filterPhasesContainingInTitle
-
getTasksByTitle
-
restorePhases
-
fixId
-
createCiAttributes
public void createCiAttributes() -
updateCiAttributes
public void updateCiAttributes()
-