Class Component
java.lang.Object
fr.paris.lutece.plugins.releaser.business.AbstractReleaserResource
fr.paris.lutece.plugins.releaser.business.Component
- All Implemented Interfaces:
IReleaserResource,fr.paris.lutece.portal.service.rbac.RBACResource
public class Component
extends AbstractReleaserResource
implements fr.paris.lutece.portal.service.rbac.RBACResource
This is the business class for the object Component.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the ArtifactId.intReturns the BugtrackerCurrentVersionClosedIssues.intReturns the BugtrackerCurrentVersionOpenedIssues.Returns the BugtrackerRoadmapUrl.Gets the clone url.Returns the CurrentVersion.Gets the full name.Returns the GroupId.Gets the last available snapshot version.Returns the LastAvailableVersion.getName()Gets the name.Returns the NextSnapshotVersion.Returns the list of available release versions from Maven repository.Gets the scm developer connection.Gets the scm url.Returns the list of available snapshot versions from Maven repository.getTags()Returns the TargetVersion.intGet the target version index.Gets the target versions list.getType()Returns the Type.booleanChecks if is downgrade.booleanChecks if is error last release.booleanReturns the IsProject.booleanWhether releasing this component requires a user confirmation because of a Git/Nexus version divergence.booleanChecks if is snapshot version.booleanisTheme()Checks if is theme.booleanChecks if is upgrade.voidsetArtifactId(String strArtifactId) Sets the ArtifactId.voidsetBranches(List<String> listBranches) voidsetBranchReleaseFrom(String _strBranchReleaseFrom) voidsetBranchReleaseVersion(String _strBranchReleaseVersion) voidsetBugtrackerCurrentVersionClosedIssues(int nBugtrackerCurrentVersionClosedIssues) Sets the BugtrackerCurrentVersionClosedIssues.voidsetBugtrackerCurrentVersionOpenedIssues(int nBugtrackerCurrentVersionOpenedIssues) Sets the BugtrackerCurrentVersionOpenedIssues.voidsetBugtrackerRoadmapUrl(String strBugtrackerRoadmapUrl) Sets the BugtrackerRoadmapUrl.voidsetCloneUrl(String _strCloneUrl) Sets the clone url.voidsetCurrentVersion(String strCurrentVersion) Sets the CurrentVersion.voidsetDowngrade(boolean _bDowngrade) Sets the downgrade.voidsetErrorLastRelease(boolean _bErrorLastRelease) Sets the error last release.voidsetFullName(String strFullName) Sets the full name.voidsetGroupId(String strGroupId) Sets the GroupId.voidsetIsProject(boolean bIsProject) Sets the IsProject.voidsetLastAvailableSnapshotVersion(String _strLastAvailableSnapshotVersion) Sets the last available snapshot version.voidsetLastAvailableVersion(String strLastAvailableVersion) Sets the LastAvailableVersion.voidSets the name.voidsetNextSnapshotVersion(String strNextSnapshotVersion) Sets the NextSnapshotVersion.voidsetPermissions(HashMap<String, Boolean> permissions) voidsetReleaseConfirmationRequiredByDivergence(boolean bReleaseConfirmationRequiredByDivergence) Sets whether releasing requires a confirmation because of a Git/Nexus version divergence.voidsetReleaseVersions(List<String> listReleaseVersions) Sets the list of available release versions from Maven repository.voidsetScmDeveloperConnection(String _strScmDeveloperConnection) Sets the scm developer connection.voidsetSnapshotVersions(List<String> listSnapshotVersions) Sets the list of available snapshot versions from Maven repository.voidvoidsetTargetJdk(String _strTargetJdk) voidsetTargetVersion(String strTargetVersion) Sets the TargetVersion.voidsetTargetVersionIndex(int nIndex) Set the target version index.voidsetTargetVersions(List<String> listTargetVersions) Set target versions list.voidSets the Type.voidsetUpgrade(boolean _bUpgrade) Sets the upgrade.booleanReturns the IsProject.Methods inherited from class fr.paris.lutece.plugins.releaser.business.AbstractReleaserResource
addReleaseComment, getReleaseComment, getReleaseComments, getRepoType, resetComments
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
PERMISSION_SEARCH_COMPONENT
- See Also:
-
-
Constructor Details
-
Component
public Component()
-
-
Method Details
-
getArtifactId
Returns the ArtifactId.- Specified by:
getArtifactIdin interfaceIReleaserResource- Returns:
- The ArtifactId
-
setArtifactId
Sets the ArtifactId.- Parameters:
strArtifactId- The ArtifactId
-
getGroupId
Returns the GroupId.- Returns:
- The GroupId
-
setGroupId
Sets the GroupId.- Parameters:
strGroupId- The GroupId
-
getType
Returns the Type.- Returns:
- The Type
-
setType
Sets the Type.- Parameters:
strType- The Type
-
getCurrentVersion
Returns the CurrentVersion.- Returns:
- The CurrentVersion
-
setCurrentVersion
Sets the CurrentVersion.- Parameters:
strCurrentVersion- The CurrentVersion
-
getTargetVersion
Returns the TargetVersion.- Specified by:
getTargetVersionin interfaceIReleaserResource- Returns:
- The TargetVersion
-
setTargetVersion
Sets the TargetVersion.- Parameters:
strTargetVersion- The TargetVersion
-
isProject
public boolean isProject()Returns the IsProject.- Returns:
- The IsProject
-
setIsProject
public void setIsProject(boolean bIsProject) Sets the IsProject.- Parameters:
bIsProject- The IsProject
-
getLastAvailableVersion
Returns the LastAvailableVersion.- Returns:
- The LastAvailableVersion
-
setLastAvailableVersion
Sets the LastAvailableVersion.- Parameters:
strLastAvailableVersion- The LastAvailableVersion
-
getNextSnapshotVersion
Returns the NextSnapshotVersion.- Returns:
- The NextSnapshotVersion
-
setNextSnapshotVersion
Sets the NextSnapshotVersion.- Parameters:
strNextSnapshotVersion- The NextSnapshotVersion
-
getBugtrackerRoadmapUrl
Returns the BugtrackerRoadmapUrl.- Returns:
- The BugtrackerRoadmapUrl
-
setBugtrackerRoadmapUrl
Sets the BugtrackerRoadmapUrl.- Parameters:
strBugtrackerRoadmapUrl- The BugtrackerRoadmapUrl
-
getBugtrackerCurrentVersionClosedIssues
public int getBugtrackerCurrentVersionClosedIssues()Returns the BugtrackerCurrentVersionClosedIssues.- Returns:
- The BugtrackerCurrentVersionClosedIssues
-
setBugtrackerCurrentVersionClosedIssues
public void setBugtrackerCurrentVersionClosedIssues(int nBugtrackerCurrentVersionClosedIssues) Sets the BugtrackerCurrentVersionClosedIssues.- Parameters:
nBugtrackerCurrentVersionClosedIssues- The BugtrackerCurrentVersionClosedIssues
-
getBugtrackerCurrentVersionOpenedIssues
public int getBugtrackerCurrentVersionOpenedIssues()Returns the BugtrackerCurrentVersionOpenedIssues.- Returns:
- The BugtrackerCurrentVersionOpenedIssues
-
setBugtrackerCurrentVersionOpenedIssues
public void setBugtrackerCurrentVersionOpenedIssues(int nBugtrackerCurrentVersionOpenedIssues) Sets the BugtrackerCurrentVersionOpenedIssues.- Parameters:
nBugtrackerCurrentVersionOpenedIssues- The BugtrackerCurrentVersionOpenedIssues
-
setTargetVersions
Set target versions list.- Parameters:
listTargetVersions- The target versions list
-
getTargetVersions
Gets the target versions list.- Returns:
- the target versions list
-
setTargetVersionIndex
public void setTargetVersionIndex(int nIndex) Set the target version index.- Parameters:
nIndex- the target version index
-
getTargetVersionIndex
public int getTargetVersionIndex()Get the target version index.- Returns:
- the target version index
-
shouldBeReleased
public boolean shouldBeReleased()Returns the IsProject.- Returns:
- True if should be released
-
isReleaseConfirmationRequiredByDivergence
public boolean isReleaseConfirmationRequiredByDivergence()Whether releasing this component requires a user confirmation because of a Git/Nexus version divergence.- Returns:
- true if a confirmation is required
-
setReleaseConfirmationRequiredByDivergence
public void setReleaseConfirmationRequiredByDivergence(boolean bReleaseConfirmationRequiredByDivergence) Sets whether releasing requires a confirmation because of a Git/Nexus version divergence.- Parameters:
bReleaseConfirmationRequiredByDivergence- the value
-
getScmDeveloperConnection
Gets the scm developer connection.- Returns:
- scm developer connection url
-
setScmDeveloperConnection
Sets the scm developer connection.- Parameters:
_strScmDeveloperConnection- scm developer connection url
-
isSnapshotVersion
public boolean isSnapshotVersion()Checks if is snapshot version.- Returns:
- snapshot version
-
isUpgrade
public boolean isUpgrade()Checks if is upgrade.- Returns:
- boolean
-
setUpgrade
public void setUpgrade(boolean _bUpgrade) Sets the upgrade.- Parameters:
_bUpgrade- the new upgrade
-
isDowngrade
public boolean isDowngrade()Checks if is downgrade.- Returns:
- boolean
-
setDowngrade
public void setDowngrade(boolean _bDowngrade) Sets the downgrade.- Parameters:
_bDowngrade- the new downgrade
-
isTheme
public boolean isTheme()Checks if is theme.- Returns:
- boolean
-
getLastAvailableSnapshotVersion
Gets the last available snapshot version.- Returns:
- getLastAvailableSnapshotVersion
-
setLastAvailableSnapshotVersion
Sets the last available snapshot version.- Parameters:
_strLastAvailableSnapshotVersion- the new last available snapshot version
-
isErrorLastRelease
public boolean isErrorLastRelease()Checks if is error last release.- Returns:
- isErrorLastRelease
-
setErrorLastRelease
public void setErrorLastRelease(boolean _bErrorLastRelease) Sets the error last release.- Parameters:
_bErrorLastRelease- the new error last release
-
getName
Gets the name.- Returns:
- getName
-
setName
Sets the name.- Parameters:
_strName- the new name
-
getCloneUrl
Gets the clone url.- Returns:
- CloneUrl
-
setCloneUrl
Sets the clone url.- Parameters:
_strCloneUrl- the new clone url
-
getFullName
Gets the full name.- Returns:
- full name
-
setFullName
Sets the full name.- Parameters:
strFullName- the new full name
-
getScmUrl
Gets the scm url.- Specified by:
getScmUrlin interfaceIReleaserResource- Returns:
- the scm url
-
getResourceTypeCode
- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getResourceId
- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getPermissions
-
setPermissions
-
getBranches
-
setBranches
-
getTags
-
setTags
-
getBranchReleaseFrom
-
setBranchReleaseFrom
-
getBranchReleaseVersion
-
setBranchReleaseVersion
-
getTargetJdk
-
setTargetJdk
-
getReleaseVersions
Returns the list of available release versions from Maven repository.- Returns:
- The list of release versions
-
setReleaseVersions
Sets the list of available release versions from Maven repository.- Parameters:
listReleaseVersions- The list of release versions
-
getSnapshotVersions
Returns the list of available snapshot versions from Maven repository.- Returns:
- The list of snapshot versions
-
setSnapshotVersions
Sets the list of available snapshot versions from Maven repository.- Parameters:
listSnapshotVersions- The list of snapshot versions
-