Interface IComponentService
- All Known Implementing Classes:
ComponentService
public interface IComponentService
IComponentService .
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangeNextReleaseVersion(Component component) Change next release version.getComponentBranchList(Component component, RepositoryType repositoryType, ReleaserUser user) Set list of all component branchesgetComponentTagList(Component component, RepositoryType repositoryType, ReleaserUser user) Clone the component repo (if needed) and populatecomponent.setTags(...)with the pre-release tags (beta and RC) of this artifactId, used by the "release from tag" workflow.getLastBranchVersion(Component component, String branchName, ReleaserUser user) getLastReleaseNextSnapshotVersion(String strArtifactId) Returns the LastAvailableVersion.getLastReleaseVersion(String strArtifactId) Returns the LastAvailableVersion.fr.paris.lutece.portal.web.util.LocalizedPaginator<Component>getSearchComponent(String strSearch, javax.servlet.http.HttpServletRequest request, Locale locale, String strPaginateUrl, String strCurrentPageIndex) Gets the search component.voidinit()Inits the.booleanisErrorSnapshotComponentInformations(Component component, String strComponentPomPath) Checks if is error snapshot component informations.booleanisGitComponent(Component component) Checks if is git component.loadComponent(Component component, boolean bUpdateComponent, String strPom, String strUser, String strPassword) Load component.intrelease(Component component, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request) Release.intrelease(Component component, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request, boolean forceRelease) Release.voidsetLastReleaseNextSnapshotVersion(String strArtifactId, String strVersion) setLastReleaseNextSnapshotVersion.voidsetLastReleaseVersion(String strArtifactId, String strVersion) set the LastAvailableVersion set The LastAvailableVersion.voidsetRemoteInformations(Component component, boolean bCache) Sets the remote informations.updateComponentForReleaseBranchFrom(Component component, String strPom) Update the remote informations when changing branch to release from.voidupdateRemoteInformations(Component component) Update remote informations.
-
Method Details
-
setRemoteInformations
void setRemoteInformations(Component component, boolean bCache) throws fr.paris.lutece.util.httpaccess.HttpAccessException, IOException Sets the remote informations.- Parameters:
component- the componentbCache- the b cache- Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException- the http access exceptionIOException- Signals that an I/O exception has occurred.
-
updateComponentForReleaseBranchFrom
Update the remote informations when changing branch to release from.- Parameters:
component- the componentstrPom- the component Pom
-
updateRemoteInformations
Update remote informations.- Parameters:
component- the component
-
release
int release(Component component, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request, boolean forceRelease) Release.- Parameters:
component- the componentlocale- the localeuser- the userrequest- the requestforceRelease- the force release- Returns:
- context id
-
release
int release(Component component, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request) Release.- Parameters:
component- the componentlocale- the localeuser- the userrequest- the request- Returns:
- context id
-
isGitComponent
Checks if is git component.- Parameters:
component- the component- Returns:
- boolean
-
getLastReleaseVersion
Returns the LastAvailableVersion.- Parameters:
strArtifactId- the str artifact id- Returns:
- The LastAvailableVersion
-
setLastReleaseVersion
set the LastAvailableVersion set The LastAvailableVersion.- Parameters:
strArtifactId- the str artifact idstrVersion- the str version
-
getLastReleaseNextSnapshotVersion
Returns the LastAvailableVersion.- Parameters:
strArtifactId- the str artifact id- Returns:
- The LastAvailableVersion
-
setLastReleaseNextSnapshotVersion
setLastReleaseNextSnapshotVersion.- Parameters:
strArtifactId- the str artifact idstrVersion- the str version
-
getSearchComponent
fr.paris.lutece.portal.web.util.LocalizedPaginator<Component> getSearchComponent(String strSearch, javax.servlet.http.HttpServletRequest request, Locale locale, String strPaginateUrl, String strCurrentPageIndex) Gets the search component.- Parameters:
strSearch- the str searchrequest- the requestlocale- the localestrPaginateUrl- the str paginate urlstrCurrentPageIndex- the str current page index- Returns:
- local paginator
-
loadComponent
Component loadComponent(Component component, boolean bUpdateComponent, String strPom, String strUser, String strPassword) Load component.- Parameters:
component- the componentbUpdateComponent- Update component when change branch to release fromstrPom- the pomstUser- the userstrPassword- the password- Returns:
- component
-
changeNextReleaseVersion
Change next release version.- Parameters:
component- component
-
isErrorSnapshotComponentInformations
Checks if is error snapshot component informations.- Parameters:
component- the componentstrComponentPomPath- the str component pom path- Returns:
- boolean
-
init
void init()Inits the. -
getComponentBranchList
Component getComponentBranchList(Component component, RepositoryType repositoryType, ReleaserUser user) Set list of all component branches- Parameters:
site- The siteartifactId- The component artifactIduser- The user- Returns:
-
getLastBranchVersion
-
getComponentTagList
Component getComponentTagList(Component component, RepositoryType repositoryType, ReleaserUser user) Clone the component repo (if needed) and populatecomponent.setTags(...)with the pre-release tags (beta and RC) of this artifactId, used by the "release from tag" workflow.- Parameters:
component- the componentrepositoryType- the repository typeuser- the releaser user- Returns:
- the component (mutated)
-