public class SiteService extends Object
| Constructor and Description |
|---|
SiteService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buildComments(Site site,
Locale locale)
Build release comments for a given site.
|
static void |
cancelDowngradeComponent(Site site,
String strArtifactId)
Cancel downgrade component.
|
static void |
cancelUpgradeComponent(Site site,
String strArtifactId)
Cancel upgrade component.
|
static void |
changeNextReleaseVersion(Site site)
Change the next release version.
|
static void |
changeNextReleaseVersion(Site site,
String strArtifactId)
Change the next release version.
|
static void |
downgradeComponent(Site site,
String strArtifactId)
Downgrade component.
|
String |
generateTargetPOM(Site site)
Generate the pom.xml file for a given site
|
static String |
getOriginVersion(String strLastRelease,
String strCurrentVersion)
Define which version between last released or current snapshot should be the origin for next release versions.
|
static Site |
getSite(int nSiteId,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Load a site from its id.
|
static int |
releaseComponent(Site site,
String strArtifactId,
Locale locale,
fr.paris.lutece.portal.business.user.AdminUser user,
javax.servlet.http.HttpServletRequest request)
Release component.
|
static Map<String,Integer> |
releaseSite(Site site,
Locale locale,
fr.paris.lutece.portal.business.user.AdminUser user,
javax.servlet.http.HttpServletRequest request)
Release site.
|
static void |
removeComponentAsProjectBySite(int nIdSite)
Removes the component as project by site.
|
static void |
toggleProjectComponent(Site site,
String strArtifactId)
Add or Remove a component from the project's components list.
|
static void |
updateComponentAsProjectStatus(Site site,
String strArtifactId,
Boolean bIsProject)
Update component as project status.
|
static void |
upgradeComponent(Site site,
String strArtifactId)
Upgrade component.
|
public static Site getSite(int nSiteId, javax.servlet.http.HttpServletRequest request, Locale locale)
nSiteId - The site idrequest - the requestlocale - the localepublic static String getOriginVersion(String strLastRelease, String strCurrentVersion)
strLastRelease - The last releasestrCurrentVersion - The current releasepublic static void updateComponentAsProjectStatus(Site site, String strArtifactId, Boolean bIsProject)
site - the sitestrArtifactId - the str artifact idbIsProject - the b is projectpublic static void removeComponentAsProjectBySite(int nIdSite)
nIdSite - the n id sitepublic static void buildComments(Site site, Locale locale)
site - The sitelocale - The locale to use for commentspublic static void upgradeComponent(Site site, String strArtifactId)
site - the sitestrArtifactId - the str artifact idpublic static void cancelUpgradeComponent(Site site, String strArtifactId)
site - the sitestrArtifactId - the str artifact idpublic static void downgradeComponent(Site site, String strArtifactId)
site - the sitestrArtifactId - the str artifact idpublic static void cancelDowngradeComponent(Site site, String strArtifactId)
site - the sitestrArtifactId - the str artifact idpublic static int releaseComponent(Site site, String strArtifactId, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request)
site - the sitestrArtifactId - the str artifact idlocale - the localeuser - the userrequest - the requestpublic static Map<String,Integer> releaseSite(Site site, Locale locale, fr.paris.lutece.portal.business.user.AdminUser user, javax.servlet.http.HttpServletRequest request)
site - the sitelocale - the localeuser - the userrequest - the requestpublic static void toggleProjectComponent(Site site, String strArtifactId)
site - The sitestrArtifactId - The component artifact idpublic static void changeNextReleaseVersion(Site site, String strArtifactId)
site - The sitestrArtifactId - The component artifact idpublic static void changeNextReleaseVersion(Site site)
site - The siteCopyright © 2020 City of Paris. All rights reserved.