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 branchesgetLastBranchVersion(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, String strPom, String stUser, 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.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.
-
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
Load component.- Parameters:
component- the componentstrPom- the str pomstUser- the st userstrPassword- the str 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
-