The siteservice object provides
methods to create sites, list sites in the repository, list roles that can
be assigned to members of a site, and get sites for given
names.
createSite createSite(site preset, shortName, title, description, visibility) creates a new site.
listSites listSites methods list the sites that are available in the repository.
listSiteRoles listSiteRoles() these methods list all the roles that can be assigned to a member of a site.
listUserSites listUserSites() these methods list all the sites to which the specified user has an explicit membership.
getSite getSite(shortName) gets a site for a provided short name.
getSites getSites(filter, sitePresetFilter, size) returns a list of sites. Retrieves all the sites available in the repository. The returned list can optionally be filtered by name and site preset. If no filters are specified then all the available sites are returned.
findSites findSites(filter, sitePresetFilter, size) searches for and returns a list of sites. The returned list can be optionally filtered by name and site preset. If no filters are specified then all the available sites are returned.
hasCreateSitePermissions hasCreateSitePermissions() returns true if the currently logged on user has permission to create a site.
isSiteManager isSiteManager(shortName) checks whether the currently authenticated user is a site manager or not, for the specified site.
cleanSitePermissions cleanSitePermissions() these methods clean permissions from a node.