mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* fix after rebase * new release strategy for ng next Signed-off-by: eromano <eugenioromano16@gmail.com> * peer dep Signed-off-by: eromano <eugenioromano16@gmail.com> * Angular 14 fix unit test and storybook Signed-off-by: eromano <eugenioromano16@gmail.com> fix after rebase Signed-off-by: eromano <eugenioromano16@gmail.com> update pkg.json Signed-off-by: eromano <eugenioromano16@gmail.com> missing dep Signed-off-by: eromano <eugenioromano16@gmail.com> Fix mistake and missing code Dream....build only affected libs Add utility run commands * Use nx command to run affected tests * Fix nx test core fix content tests Run unit with watch false core test fixes reduce test warnings Fix process cloud unit Fix adf unit test Fix lint process cloud Disable lint next line Use right core path Fix insights unit fix linting insights Fix process-services unit fix the extensions test report fix test warnings Fix content unit Fix bunch of content unit * Produce an adf alpha of 14 * hopefully fixing the content * Push back the npm publish * Remove flaky unit * Fix linting * Make the branch as root * Get rid of angualar13 * Remove the travis depth * Fixing version for npm * Enabling cache for unit and build * Fix scss for core and paths Copy i18 and asset by using ng-packager Export the theming alias and fix path Use ng-package to copy assets process-services-cloud Use ng-package to copy assets process-services Use ng-package to copy assets content-services Use ng-package to copy assets insights * feat: fix api secondary entry point * fix storybook rebase * Move dist under dist/libs from lib/dist * Fix the webstyle * Use only necessary nrwl deps and improve lint * Fix unit for libs * Convert lint.sh to targets - improve performance * Use latest of angular * Align alfresco-js-api Signed-off-by: eromano <eugenioromano16@gmail.com> Co-authored-by: eromano <eugenioromano16@gmail.com> Co-authored-by: Mikolaj Serwicki <mikolaj.serwicki@hyland.com> Co-authored-by: Tomasz <tomasz.gnyp@hyland.com>
15 KiB
15 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Sites service | v2.0.0 | Active | 2018-11-13 |
Sites service
Accesses and manipulates sites from a Content Services repository.
Class members
Methods
- approveSiteMembershipRequest(siteId:
string
, inviteeId:string
, opts?:any
):Observable
<
SiteMembershipRequestWithPersonPaging
>
Accept site membership requests.- siteId:
string
- The identifier of a site. - inviteeId:
string
- The invitee user name. - opts:
any
- (Optional) Options supported by JS-API - Returns
Observable
<
SiteMembershipRequestWithPersonPaging
>
- Null response notifying when the operation is complete
- siteId:
- createSite(siteBody:
SiteBodyCreate
):Observable
<
SiteEntry
>
Create a site- siteBody:
SiteBodyCreate
- SiteBodyCreate to create site - Returns
Observable
<
SiteEntry
>
- site SiteEntry
- siteBody:
- createSiteGroupMembership(siteId:
string
, siteMembershipBodyCreate:SiteMembershipBodyCreate
):Observable
<
SiteGroupEntry
>
Create a site membership for group- siteId:
string
- The identifier of a site. - siteMembershipBodyCreate:
SiteMembershipBodyCreate
- The Group to add and its role - Returns
Observable
<
SiteGroupEntry
>
- Observable<SiteGroupEntry>
- siteId:
- createSiteMembership(siteId:
string
, siteMembershipBodyCreate:SiteMembershipBodyCreate
, opts?:any
):Observable
<
SiteMemberEntry
>
Creates a site membership for person personId on site siteId.- siteId:
string
- The identifier of a site - siteMembershipBodyCreate:
SiteMembershipBodyCreate
- The person to add and their role - opts:
any
- (Optional) Optional parameters - Returns
Observable
<
SiteMemberEntry
>
- Observable<SiteMemberEntry>
- siteId:
- 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:
- deleteSiteGroupMembership(siteId:
string
, groupId:string
):Observable
<void>
Delete a group membership for site- siteId:
string
- The identifier of a site. - groupId:
string
- The authorityId of a group. - Returns
Observable
<void>
-Observable
<void>
- siteId:
- deleteSiteMembership(siteId:
string
, personId:string
):Observable
<void>
Delete a site membership- siteId:
string
- The identifier of a site. - personId:
string
- The identifier of a person. - Returns
Observable
<void>
- 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
|any>
Gets the details for a site.- siteId:
string
- ID of the target site - opts:
any
- (Optional) Options supported by JS-API - Returns
Observable
<
SiteEntry
|any>
- Information about the site
- siteId:
- getSiteContent(siteId:
string
):Observable
<
SiteEntry
|any>
Gets a site's content.- siteId:
string
- ID of the target site - Returns
Observable
<
SiteEntry
|any>
- Site content
- siteId:
- getSiteGroupMembership(siteId:
string
, groupId:string
):Observable
<
SiteGroupEntry
>
Get information about site membership of group- siteId:
string
- The identifier of a site. - groupId:
string
- The authorityId of a group. - Returns
Observable
<
SiteGroupEntry
>
- Observable<SiteGroupEntry>
- siteId:
- getSiteMembers(siteId:
string
):Observable
<
SiteEntry
|any>
Gets a list of all a site's members.- siteId:
string
- ID of the target site - Returns
Observable
<
SiteEntry
|any>
- Site members
- siteId:
- getSiteMembershipRequests(opts?:
any
):Observable
<
SiteMembershipRequestWithPersonPaging
>
Gets a list of site membership requests.- opts:
any
- (Optional) Options supported by JS-API - Returns
Observable
<
SiteMembershipRequestWithPersonPaging
>
- Site membership requests
- opts:
- getSiteNameFromNodePath(node:
MinimalNode
):string
Looks for a site inside the path of a Node and returns its guid if it finds one. (return an empty string if no site is found)- node:
MinimalNode
- Node to look for parent site - Returns
string
- Site guid
- node:
- 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:
- listSiteGroups(siteId:
string
, opts?:any
):Observable
<SiteGroupPaging>
List group membership for site- siteId:
string
- The identifier of a site. - opts:
any
- (Optional) Options supported by JS-API - Returns
Observable
<SiteGroupPaging>
-Observable
<SiteGroupPaging>
- siteId:
- listSiteMemberships(siteId:
string
, opts:any
):Observable
<
SiteMemberPaging
>
Gets a list of all a site's members.- siteId:
string
- ID of the target site - opts:
any
- Optional parameters supported by JS-API - Returns
Observable
<
SiteMemberPaging
>
- Observable<SiteMemberPaging>
- siteId:
- rejectSiteMembershipRequest(siteId:
string
, inviteeId:string
, opts?:any
):Observable
<
SiteMembershipRequestWithPersonPaging
>
Reject site membership requests.- siteId:
string
- The identifier of a site. - inviteeId:
string
- The invitee user name. - opts:
any
- (Optional) Options supported by JS-API - Returns
Observable
<
SiteMembershipRequestWithPersonPaging
>
- Null response notifying when the operation is complete
- siteId:
- updateSiteGroupMembership(siteId:
string
, groupId:string
, siteMembershipBodyUpdate:SiteMembershipBodyUpdate
):Observable
<
SiteGroupEntry
>
Update site membership of group- siteId:
string
- The identifier of a site. - groupId:
string
- The authorityId of a group. - siteMembershipBodyUpdate:
SiteMembershipBodyUpdate
- The group new role - Returns
Observable
<
SiteGroupEntry
>
- Observable<SiteGroupEntry>
- siteId:
- updateSiteMembership(siteId:
string
, personId:string
, siteMembershipBodyUpdate:SiteMembershipBodyUpdate
, opts?:any
):Observable
<
SiteMemberEntry
>
Update a site membership- siteId:
string
- The identifier of a site. - personId:
string
- The identifier of a person. - siteMembershipBodyUpdate:
SiteMembershipBodyUpdate
- The persons new role - opts:
any
- (Optional) Optional parameters - Returns
Observable
<
SiteMemberEntry
>
- Observable<SiteMemberEntry>
- siteId:
Details
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.