mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
Markdown
---
|
|
Title: Site model
|
|
Added: v2.0.0
|
|
Status: Active
|
|
---
|
|
|
|
# Site model
|
|
|
|
Provides information about a site in a Content Services repository.
|
|
|
|
## Details
|
|
|
|
`SiteModel` is returned by methods from the [Sites Api service](sites.service.md).
|
|
Also, the
|
|
[`getSite`](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/SitesApi.md#getSite)
|
|
and
|
|
[`getSites`](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/SitesApi.md#getSites) pages in the Alfresco JS API docs have further information about this API.
|
|
|
|
```ts
|
|
class SiteModel {
|
|
role: string;
|
|
visibility: string;
|
|
guid: string;
|
|
description: string;
|
|
id: string;
|
|
preset: string;
|
|
title: string;
|
|
contents: SiteContentsModel[] = [];
|
|
members: SiteMembersModel[] = [];
|
|
pagination: Pagination;
|
|
}
|
|
|
|
class SiteContentsModel {
|
|
id: string;
|
|
folderId: string;
|
|
}
|
|
|
|
class SiteMembersModel {
|
|
role: string;
|
|
firstName: string;
|
|
emailNotificationsEnabled: boolean = false;
|
|
company: any;
|
|
id: string;
|
|
enable: boolean = false;
|
|
email: string;
|
|
}
|
|
```
|
|
|
|
## See also
|
|
|
|
- [Sites service](sites.service.md)
|