Interface IComponentService
-
- All Known Implementing Classes:
ComponentService
public interface IComponentServiceIComponentService .
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeNextReleaseVersion(Component component)Change next release version.ComponentgetComponentBranchList(Component component, RepositoryType repositoryType, ReleaserUser user)Set list of all component branchesComponentgetLastBranchVersion(Component component, String branchName, ReleaserUser user)StringgetLastReleaseNextSnapshotVersion(String strArtifactId)Returns the LastAvailableVersion.StringgetLastReleaseVersion(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.ComponentloadComponent(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 Detail
-
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
void updateRemoteInformations(Component component)
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
boolean isGitComponent(Component component)
Checks if is git component.- Parameters:
component- the component- Returns:
- boolean
-
getLastReleaseVersion
String getLastReleaseVersion(String strArtifactId)
Returns the LastAvailableVersion.- Parameters:
strArtifactId- the str artifact id- Returns:
- The LastAvailableVersion
-
setLastReleaseVersion
void setLastReleaseVersion(String strArtifactId, String strVersion)
set the LastAvailableVersion set The LastAvailableVersion.- Parameters:
strArtifactId- the str artifact idstrVersion- the str version
-
getLastReleaseNextSnapshotVersion
String getLastReleaseNextSnapshotVersion(String strArtifactId)
Returns the LastAvailableVersion.- Parameters:
strArtifactId- the str artifact id- Returns:
- The LastAvailableVersion
-
setLastReleaseNextSnapshotVersion
void setLastReleaseNextSnapshotVersion(String strArtifactId, String strVersion)
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, String strPom, String stUser, String strPassword)
Load component.- Parameters:
component- the componentstrPom- the str pomstUser- the st userstrPassword- the str password- Returns:
- component
-
changeNextReleaseVersion
void changeNextReleaseVersion(Component component)
Change next release version.- Parameters:
component- component
-
isErrorSnapshotComponentInformations
boolean isErrorSnapshotComponentInformations(Component component, String strComponentPomPath)
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
Component getLastBranchVersion(Component component, String branchName, ReleaserUser user)
-
-