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.
- cleanSitePermissionscleanSitePermissions() these methods clean permissions from a node.
- createSitecreateSite(...) these methods partially create a new site.
- findSitesfindSites(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.
- getSitegetSite(shortName) gets a site for a provided short name.
- getSitesgetSites(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.
- hasCreateSitePermissionshasCreateSitePermissions() returns true if the currently logged on user has permission to create a site.
- hasSitehasSite(String shortName) returns true if the specified site exists. Allows private site existence to be tested.
- isSiteManagerisSiteManager(siteId) checks whether the currently authenticated user is a site manager or not, for the specified site.
- listSiteRoleslistSiteRoles() these methods list all the roles that can be assigned to a member of a site.
- listSiteslistSites methods list the sites that are available in the repository.
- listUserSiteslistUserSites() these methods list all the sites to which the specified user has an explicit membership.
Parent topic: Site service