mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix eslint warnigs for core project (#7506)
This commit is contained in:
@@ -44,6 +44,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Gets all groups.
|
||||
*
|
||||
* @returns Array of group information objects
|
||||
*/
|
||||
getGroups(): Observable<IdentityGroupModel[]> {
|
||||
@@ -53,6 +54,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Gets available roles
|
||||
*
|
||||
* @param groupId Id of the group.
|
||||
* @returns Array of available roles information objects
|
||||
*/
|
||||
@@ -63,6 +65,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Gets assigned roles
|
||||
*
|
||||
* @param groupId Id of the group.
|
||||
* @returns Array of available roles
|
||||
*/
|
||||
@@ -73,6 +76,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Assigns roles to the group
|
||||
*
|
||||
* @param groupId The ID of the group
|
||||
* @param roles Array of roles to assign
|
||||
*/
|
||||
@@ -85,6 +89,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Removes roles from the group
|
||||
*
|
||||
* @param groupId The ID of the group
|
||||
* @param roles Array of roles to remove
|
||||
*/
|
||||
@@ -97,6 +102,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Get effective roles
|
||||
*
|
||||
* @param groupId Id of the group
|
||||
* @returns Array of effective roles
|
||||
*/
|
||||
@@ -107,6 +113,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Queries groups.
|
||||
*
|
||||
* @returns Array of user information objects
|
||||
*/
|
||||
queryGroups(requestQuery: IdentityGroupQueryCloudRequestModel): Observable<IdentityGroupQueryResponse> {
|
||||
@@ -116,24 +123,23 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
return this.getTotalGroupsCount().pipe(
|
||||
switchMap((totalCount: IdentityGroupCountModel) =>
|
||||
this.oAuth2Service.get<any[]>({ url, queryParams }).pipe(
|
||||
map((response) => {
|
||||
return <IdentityGroupQueryResponse> {
|
||||
entries: response,
|
||||
pagination: {
|
||||
skipCount: requestQuery.first,
|
||||
maxItems: requestQuery.max,
|
||||
count: totalCount.count,
|
||||
hasMoreItems: false,
|
||||
totalItems: totalCount.count
|
||||
}
|
||||
};
|
||||
})
|
||||
map((response) => ({
|
||||
entries: response,
|
||||
pagination: {
|
||||
skipCount: requestQuery.first,
|
||||
maxItems: requestQuery.max,
|
||||
count: totalCount.count,
|
||||
hasMoreItems: false,
|
||||
totalItems: totalCount.count
|
||||
}
|
||||
} as IdentityGroupQueryResponse))
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets groups total count.
|
||||
*
|
||||
* @returns Number of groups count.
|
||||
*/
|
||||
getTotalGroupsCount(): Observable<IdentityGroupCountModel> {
|
||||
@@ -143,6 +149,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Creates new group.
|
||||
*
|
||||
* @param newGroup Object of containing the new group details.
|
||||
* @returns Empty response when the group created.
|
||||
*/
|
||||
@@ -155,6 +162,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Updates group details.
|
||||
*
|
||||
* @param groupId Id of the targeted group.
|
||||
* @param updatedGroup Object of containing the group details
|
||||
* @returns Empty response when the group updated.
|
||||
@@ -168,6 +176,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Deletes Group.
|
||||
*
|
||||
* @param groupId Id of the group.
|
||||
* @returns Empty response when the group deleted.
|
||||
*/
|
||||
@@ -178,6 +187,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Finds groups filtered by name.
|
||||
*
|
||||
* @param searchParams Object containing the name filter string
|
||||
* @returns List of group information
|
||||
*/
|
||||
@@ -193,6 +203,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Gets details for a specified group.
|
||||
*
|
||||
* @param groupId Id of the target group
|
||||
* @returns Group details
|
||||
*/
|
||||
@@ -203,6 +214,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Check that a group has one or more roles from the supplied list.
|
||||
*
|
||||
* @param groupId Id of the target group
|
||||
* @param roleNames Array of role names
|
||||
* @returns True if the group has one or more of the roles, false otherwise
|
||||
@@ -225,6 +237,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Gets the client Id using the app name.
|
||||
*
|
||||
* @param applicationName Name of the app
|
||||
* @returns client Id string
|
||||
*/
|
||||
@@ -239,6 +252,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Gets client roles.
|
||||
*
|
||||
* @param groupId Id of the target group
|
||||
* @param clientId Id of the client
|
||||
* @returns List of roles
|
||||
@@ -250,6 +264,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Checks if a group has a client app.
|
||||
*
|
||||
* @param groupId Id of the target group
|
||||
* @param clientId Id of the client
|
||||
* @returns True if the group has the client app, false otherwise
|
||||
@@ -262,6 +277,7 @@ export class IdentityGroupService implements IdentityGroupServiceInterface {
|
||||
|
||||
/**
|
||||
* Check if a group has any of the client app roles in the supplied list.
|
||||
*
|
||||
* @param groupId Id of the target group
|
||||
* @param clientId Id of the client
|
||||
* @param roleNames Array of role names to check
|
||||
|
Reference in New Issue
Block a user