public class ComponentService extends Object implements IComponentService
| Constructor and Description |
|---|
ComponentService() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeNextReleaseVersion(Component component)
Change the next release version
|
String |
getLastReleaseNextSnapshotVersion(String strArtifactId)
Returns the LastAvailableVersion
|
String |
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.
|
static IComponentService |
getService() |
void |
init()
Inits the.
|
boolean |
isErrorSnapshotComponentInformations(Component component,
String strComponentPomPath)
Checks if is error snapshot component informations.
|
boolean |
isGitComponent(Component component)
Checks if is git component.
|
Component |
loadComponent(Component component,
String strPom,
String stUser,
String strPassword)
Load component.
|
int |
release(Component component,
Locale locale,
fr.paris.lutece.portal.business.user.AdminUser user,
javax.servlet.http.HttpServletRequest request)
Release.
|
int |
release(Component component,
Locale locale,
fr.paris.lutece.portal.business.user.AdminUser user,
javax.servlet.http.HttpServletRequest request,
boolean forceRelease)
Release.
|
void |
setLastReleaseNextSnapshotVersion(String strArtifactId,
String strVersion)
set the LastAvailableVersion
set The LastAvailableVersion
|
void |
setLastReleaseVersion(String strArtifactId,
String strVersion)
set the LastAvailableVersion
set The LastAvailableVersion
|
void |
setRemoteInformations(Component component,
boolean bCache)
Sets the remote informations.
|
void |
updateRemoteInformations(Component component)
Update remote informations.
|
public static IComponentService getService()
public void setRemoteInformations(Component component, boolean bCache) throws fr.paris.lutece.util.httpaccess.HttpAccessException, IOException
IComponentServicesetRemoteInformations in interface IComponentServicecomponent - the componentbCache - the b cachefr.paris.lutece.util.httpaccess.HttpAccessException - the http access exceptionIOException - Signals that an I/O exception has occurred.public String getLastReleaseVersion(String strArtifactId)
getLastReleaseVersion in interface IComponentServicestrArtifactId - the str artifact idpublic void setLastReleaseVersion(String strArtifactId, String strVersion)
setLastReleaseVersion in interface IComponentServicestrArtifactId - the str artifact idstrVersion - the str versionpublic String getLastReleaseNextSnapshotVersion(String strArtifactId)
getLastReleaseNextSnapshotVersion in interface IComponentServicestrArtifactId - the str artifact idpublic void setLastReleaseNextSnapshotVersion(String strArtifactId, String strVersion)
setLastReleaseNextSnapshotVersion in interface IComponentServicestrArtifactId - the str artifact idstrVersion - the str versionpublic int release(Component component, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request, boolean forceRelease)
IComponentServicerelease in interface IComponentServicecomponent - the componentlocale - the localeuser - the userrequest - the requestforceRelease - the force releasepublic int release(Component component, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request)
IComponentServicerelease in interface IComponentServicecomponent - the componentlocale - the localeuser - the userrequest - the requestpublic boolean isGitComponent(Component component)
IComponentServiceisGitComponent in interface IComponentServicecomponent - the componentpublic void init()
IComponentServiceinit in interface IComponentServicepublic void updateRemoteInformations(Component component)
IComponentServiceupdateRemoteInformations in interface IComponentServicecomponent - the componentpublic fr.paris.lutece.portal.web.util.LocalizedPaginator<Component> getSearchComponent(String strSearch, javax.servlet.http.HttpServletRequest request, Locale locale, String strPaginateUrl, String strCurrentPageIndex)
IComponentServicegetSearchComponent in interface IComponentServicestrSearch - the str searchrequest - the requestlocale - the localestrPaginateUrl - the str paginate urlstrCurrentPageIndex - the str current page indexpublic Component loadComponent(Component component, String strPom, String stUser, String strPassword)
IComponentServiceloadComponent in interface IComponentServicecomponent - the componentstrPom - the str pomstUser - the st userstrPassword - the str passwordpublic boolean isErrorSnapshotComponentInformations(Component component, String strComponentPomPath)
IComponentServiceisErrorSnapshotComponentInformations in interface IComponentServicecomponent - the componentstrComponentPomPath - the str component pom pathpublic void changeNextReleaseVersion(Component component)
changeNextReleaseVersion in interface IComponentServicecomponent - The componentCopyright © 2020 City of Paris. All rights reserved.