Class SiteHome
java.lang.Object
fr.paris.lutece.plugins.releaser.business.SiteHome
This class provides instances management methods (create, find, ...) for Site objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic SiteCreate an instance of the site classfindByCluster(int nClusterId) Find all sites for a given clusterstatic SitefindByPrimaryKey(int nKey) Returns an instance of a site whose identifier is specified in parameterstatic StringfindDuplicateSite(String siteName, String artifactId, String scmUrl) Search if the site is already existLoad the id of all the site objects and returns them as a listLoad the data of all the site objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad 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 of the site which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a site whose identifier is specified in parameter- Parameters:
nKey- The site primary key- Returns:
- an instance of 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
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
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
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
-