Preparing search index...
The search index is not available
@terrestris/shogun-util
@terrestris/shogun-util
service/GenericEntityService
GenericEntityService
Class GenericEntityService<T>
Abstract
Type Parameters
T
extends
default
Hierarchy (
view full
)
PermissionService
GenericEntityService
ApplicationService
GroupService
LayerService
RoleService
UserService
Index
Constructors
constructor
Properties
base
Path
keycloak?
Methods
add
delete
delete
Group
Class
Permission
delete
Group
Class
Permissions
delete
Group
Instance
Permission
delete
Group
Instance
Permissions
delete
Role
Class
Permission
delete
Role
Class
Permissions
delete
Role
Instance
Permission
delete
Role
Instance
Permissions
delete
User
Class
Permission
delete
User
Class
Permissions
delete
User
Instance
Permission
delete
User
Instance
Permissions
find
All
find
All
No
Paging
find
One
get
Base
Path
get
Group
Class
Permission
get
Group
Class
Permissions
get
Group
Instance
Permission
get
Group
Instance
Permissions
get
Page
Url
get
Role
Class
Permission
get
Role
Class
Permissions
get
Role
Instance
Permission
get
Role
Instance
Permissions
get
User
Class
Permission
get
User
Class
Permissions
get
User
Instance
Permission
get
User
Instance
Permissions
is
Public
revoke
Public
set
Group
Class
Permission
set
Group
Instance
Permission
set
Public
set
Role
Class
Permission
set
Role
Instance
Permission
set
User
Class
Permission
set
User
Instance
Permission
update
update
Partial
Constructors
constructor
new
Generic
Entity
Service
<
T
>
(
opts
)
:
GenericEntityService
<
T
>
Type Parameters
T
extends
default
Parameters
opts
:
GenericServiceOpts
Returns
GenericEntityService
<
T
>
Properties
Protected
Readonly
base
Path
base
Path
:
string
Protected
Optional
Readonly
keycloak
keycloak
?:
Keycloak
Methods
add
add
(
t
,
fetchOpts
?
)
:
Promise
<
T
>
Parameters
t
:
T
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
T
>
delete
delete
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Group
Class
Permission
delete
Group
Class
Permission
(
id
,
groupId
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
groupId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Group
Class
Permissions
delete
Group
Class
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Group
Instance
Permission
delete
Group
Instance
Permission
(
id
,
groupId
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
groupId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Group
Instance
Permissions
delete
Group
Instance
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Role
Class
Permission
delete
Role
Class
Permission
(
id
,
roleId
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
roleId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Role
Class
Permissions
delete
Role
Class
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Role
Instance
Permission
delete
Role
Instance
Permission
(
id
,
roleId
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
roleId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
Role
Instance
Permissions
delete
Role
Instance
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
User
Class
Permission
delete
User
Class
Permission
(
id
,
userId
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
userId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
User
Class
Permissions
delete
User
Class
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
User
Instance
Permission
delete
User
Instance
Permission
(
id
,
userId
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
userId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
delete
User
Instance
Permissions
delete
User
Instance
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
find
All
find
All
(
pageOpts
?
,
fetchOpts
?
)
:
Promise
<
Page
<
T
>
>
Parameters
Optional
pageOpts
:
PageOpts
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
Page
<
T
>
>
find
All
No
Paging
find
All
No
Paging
(
fetchOpts
?
)
:
Promise
<
T
[]
>
Parameters
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
T
[]
>
find
One
find
One
(
id
,
fetchOpts
?
)
:
Promise
<
T
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
T
>
get
Base
Path
get
Base
Path
(
)
:
string
Returns
string
get
Group
Class
Permission
get
Group
Class
Permission
(
id
,
groupId
,
fetchOpts
?
)
:
Promise
<
UserClassPermission
>
Parameters
id
:
string
|
number
groupId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
UserClassPermission
>
get
Group
Class
Permissions
get
Group
Class
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
GroupClassPermission
[]
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
GroupClassPermission
[]
>
get
Group
Instance
Permission
get
Group
Instance
Permission
(
id
,
groupId
,
fetchOpts
?
)
:
Promise
<
UserInstancePermission
>
Parameters
id
:
string
|
number
groupId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
UserInstancePermission
>
get
Group
Instance
Permissions
get
Group
Instance
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
GroupInstancePermission
[]
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
GroupInstancePermission
[]
>
Protected
get
Page
Url
get
Page
Url
(
pageOpts
?
)
:
string
Parameters
Optional
pageOpts
:
PageOpts
Returns
string
get
Role
Class
Permission
get
Role
Class
Permission
(
id
,
roleId
,
fetchOpts
?
)
:
Promise
<
RoleClassPermission
>
Parameters
id
:
string
|
number
roleId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
RoleClassPermission
>
get
Role
Class
Permissions
get
Role
Class
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
RoleClassPermission
[]
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
RoleClassPermission
[]
>
get
Role
Instance
Permission
get
Role
Instance
Permission
(
id
,
roleId
,
fetchOpts
?
)
:
Promise
<
RoleInstancePermission
>
Parameters
id
:
string
|
number
roleId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
RoleInstancePermission
>
get
Role
Instance
Permissions
get
Role
Instance
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
RoleInstancePermission
[]
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
RoleInstancePermission
[]
>
get
User
Class
Permission
get
User
Class
Permission
(
id
,
userId
,
fetchOpts
?
)
:
Promise
<
UserClassPermission
>
Parameters
id
:
string
|
number
userId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
UserClassPermission
>
get
User
Class
Permissions
get
User
Class
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
UserClassPermission
[]
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
UserClassPermission
[]
>
get
User
Instance
Permission
get
User
Instance
Permission
(
id
,
userId
,
fetchOpts
?
)
:
Promise
<
UserInstancePermission
>
Parameters
id
:
string
|
number
userId
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
UserInstancePermission
>
get
User
Instance
Permissions
get
User
Instance
Permissions
(
id
,
fetchOpts
?
)
:
Promise
<
UserInstancePermission
[]
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
UserInstancePermission
[]
>
is
Public
is
Public
(
id
,
fetchOpts
?
)
:
Promise
<
boolean
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
boolean
>
revoke
Public
revoke
Public
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
set
Group
Class
Permission
set
Group
Class
Permission
(
id
,
groupId
,
permissionType
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
groupId
:
string
|
number
permissionType
:
PermissionCollectionType
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
set
Group
Instance
Permission
set
Group
Instance
Permission
(
id
,
groupId
,
permissionType
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
groupId
:
string
|
number
permissionType
:
PermissionCollectionType
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
set
Public
set
Public
(
id
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
set
Role
Class
Permission
set
Role
Class
Permission
(
id
,
roleId
,
permissionType
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
roleId
:
string
|
number
permissionType
:
PermissionCollectionType
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
set
Role
Instance
Permission
set
Role
Instance
Permission
(
id
,
roleId
,
permissionType
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
roleId
:
string
|
number
permissionType
:
PermissionCollectionType
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
set
User
Class
Permission
set
User
Class
Permission
(
id
,
userId
,
permissionType
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
userId
:
string
|
number
permissionType
:
PermissionCollectionType
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
set
User
Instance
Permission
set
User
Instance
Permission
(
id
,
userId
,
permissionType
,
fetchOpts
?
)
:
Promise
<
void
>
Parameters
id
:
string
|
number
userId
:
string
|
number
permissionType
:
PermissionCollectionType
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
update
update
(
t
,
fetchOpts
?
)
:
Promise
<
T
>
Parameters
t
:
T
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
T
>
update
Partial
update
Partial
(
t
,
fetchOpts
?
)
:
Promise
<
T
>
Parameters
t
:
Partial
<
T
>
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
Path
keycloak
Methods
add
delete
delete
Group
Class
Permission
delete
Group
Class
Permissions
delete
Group
Instance
Permission
delete
Group
Instance
Permissions
delete
Role
Class
Permission
delete
Role
Class
Permissions
delete
Role
Instance
Permission
delete
Role
Instance
Permissions
delete
User
Class
Permission
delete
User
Class
Permissions
delete
User
Instance
Permission
delete
User
Instance
Permissions
find
All
find
All
No
Paging
find
One
get
Base
Path
get
Group
Class
Permission
get
Group
Class
Permissions
get
Group
Instance
Permission
get
Group
Instance
Permissions
get
Page
Url
get
Role
Class
Permission
get
Role
Class
Permissions
get
Role
Instance
Permission
get
Role
Instance
Permissions
get
User
Class
Permission
get
User
Class
Permissions
get
User
Instance
Permission
get
User
Instance
Permissions
is
Public
revoke
Public
set
Group
Class
Permission
set
Group
Instance
Permission
set
Public
set
Role
Class
Permission
set
Role
Instance
Permission
set
User
Class
Permission
set
User
Instance
Permission
update
update
Partial
@terrestris/shogun-util
Loading...