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.
- createSitecreateSite(sitePreset, shortName, title, description, visibility) creates a new site.
- listSiteslistSites methods list the sites that are available in the repository.
- listSiteRoleslistSiteRoles() these methods list all the roles that can be assigned to a member of a site.
- listUserSiteslistUserSites() these methods list all the sites to which the specified user has an explicit membership.
- 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.
- 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.
- hasCreateSitePermissionshasCreateSitePermissions() returns true if the currently logged on user has permission to create a site.
- isSiteManagerisSiteManager(shortName) checks whether the currently authenticated user is a site manager or not, for the specified site.
- cleanSitePermissionscleanSitePermissions() these methods clean permissions from a node.
Parent topic: Site service