Title | Added | Status | Last reviewed |
---|---|---|---|
Sites service |
v2.0.0 |
Active |
2018-11-13 |
Accesses and manipulates sites from a Content Services repository.
- deleteSite(siteId:
string
, permanentFlag:boolean
=true
):Observable
<any>
Deletes a site.- siteId:
string
- Site to delete - permanentFlag:
boolean
- True: deletion is permanent; False: site is moved to the trash - Returns
Observable
<any>
- Null response notifying when the operation is complete
- siteId:
- getEcmCurrentLoggedUserName():
string
Gets the username of the user currently logged into ACS.- Returns
string
- Username string
- Returns
- getSite(siteId:
string
, opts?:any
):Observable
<
SiteEntry
|__type>
Gets the details for a site.- siteId:
string
- ID of the target site - opts:
any
- (Optional) Options supported by JS-API - Returns
Observable
<
SiteEntry
|__type>
- Information about the site
- siteId:
- getSiteContent(siteId:
string
):Observable
<
SiteEntry
|__type>
Gets a site's content.- siteId:
string
- ID of the target site - Returns
Observable
<
SiteEntry
|__type>
- Site content
- siteId:
- getSiteMembers(siteId:
string
):Observable
<
SiteEntry
|__type>
Gets a list of all a site's members.- siteId:
string
- ID of the target site - Returns
Observable
<
SiteEntry
|__type>
- Site members
- siteId:
- getSites(opts:
any
={}
):Observable
<
SitePaging
>
Gets a list of all sites in the repository.- opts:
any
- Options supported by JS-API - Returns
Observable
<
SitePaging
>
- List of sites
- opts:
You can use getSites
to get a list of all sites in the repository.
If you are only interested in a single site and you have its ID, you
can use getSite
to access it. Alternatively, you can use getSiteContent
or getSiteMembers
to extract just the contents
and members
properties
of the site.
You can also delete a site using deleteSite
. If the permanentFlag
parameter
is set to false then the site will be moved to the trash rather than being
deleted immediately.
Both getSite
and getSites
have an opts
parameter to supply extra
options. See the Alfresco JS API docs about
getSites
and
getSite
for more information about the available options.