Package com.morpheusdata.core
Interface MorpheusPermissionService
- All Superinterfaces:
MorpheusDataService<Permission,
Permission>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Permission>
Deprecated.io.reactivex.rxjava3.core.Observable<Long>
listAccessibleResources
(Long accountId, Permission.ResourceType resourceType, Long siteId, Long planId) Get a list of ids for which the given accountId and siteId have access to (optionally scoped to siteId)Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, count, create, create, find, get, list, listById, listOptions, remove, remove, save, save, search
-
Method Details
-
getByCode
Deprecated.Get aPermission
by id.- Parameters:
code
- Permission code- Returns:
- a permission
-
listAccessibleResources
io.reactivex.rxjava3.core.Observable<Long> listAccessibleResources(Long accountId, Permission.ResourceType resourceType, Long siteId, Long planId) Get a list of ids for which the given accountId and siteId have access to (optionally scoped to siteId)- Parameters:
accountId
- the account ID to scope the searchresourceType
- the ResourceTypesiteId
- (Optional)planId
- (Optional)- Returns:
- list of ids
-