Class SiteHome
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.business.SiteHome
-
public final class SiteHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Site objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sitecreate(Site site)Create an instance of the site classstatic java.util.List<Site>findByCluster(int nClusterId)Find all sites for a given clusterstatic SitefindByPrimaryKey(int nKey)Returns an instance of a site whose identifier is specified in parameterstatic java.lang.StringfindDuplicateSite(java.lang.String siteName, java.lang.String artifactId, java.lang.String scmUrl)Search if the site is already existstatic java.util.List<java.lang.Integer>getIdSitesList()Load the id of all the site objects and returns them as a liststatic java.util.List<Site>getSitesList()Load the data of all the site objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetSitesReferenceList()Load the data of all the site objects and returns them as a referenceListstatic voidremove(int nKey)Remove the site whose identifier is specified in parameterstatic Siteupdate(Site site)Update of the site which is specified in parameter
-
-
-
Method Detail
-
create
public static Site create(Site site)
Create an instance of the site class- Parameters:
site- The instance of the Site which contains the informations to store- Returns:
- The instance of site which has been created with its primary key.
-
update
public static Site update(Site site)
Update of the site which is specified in parameter- Parameters:
site- The instance of the Site which contains the data to store- Returns:
- The instance of the site which has been updated
-
remove
public static void remove(int nKey)
Remove the site whose identifier is specified in parameter- Parameters:
nKey- The site Id
-
findByPrimaryKey
public static Site findByPrimaryKey(int nKey)
Returns an instance of a site whose identifier is specified in parameter- Parameters:
nKey- The site primary key- Returns:
- an instance of Site
-
getSitesList
public static java.util.List<Site> getSitesList()
Load the data of all the site objects and returns them as a list- Returns:
- the list which contains the data of all the site objects
-
getIdSitesList
public static java.util.List<java.lang.Integer> getIdSitesList()
Load the id of all the site objects and returns them as a list- Returns:
- the list which contains the id of all the site objects
-
getSitesReferenceList
public static fr.paris.lutece.util.ReferenceList getSitesReferenceList()
Load the data of all the site objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the site objects
-
findByCluster
public static java.util.List<Site> findByCluster(int nClusterId)
Find all sites for a given cluster- Parameters:
nClusterId- The cluster ID- Returns:
- the list which contains the data of all the site objects
-
findDuplicateSite
public static java.lang.String findDuplicateSite(java.lang.String siteName, java.lang.String artifactId, java.lang.String scmUrl)Search if the site is already exist- Parameters:
siteName- The site nameartifactId- The site artifacteIdscmUrl- The site sources url- Returns:
- the the cluster name if site exists or null otherwise
-
-