Package com.morpheusdata.core
Interface MorpheusPermissionService
- All Superinterfaces:
MorpheusDataQueryService<Permission>
,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) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, save
-
Method Details
-
getByCode
Deprecated.Get aPermission
by id.- Parameters:
code
- Permission code- Returns:
- a permission
-
listAccessibleResources
@Deprecated(since="0.15.12", forRemoval=true) io.reactivex.rxjava3.core.Observable<Long> listAccessibleResources(Long accountId, Permission.ResourceType resourceType, Long siteId, Long planId) Deprecated, for removal: This API element is subject to removal in a future version.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
-
MorpheusResourcePermissionService.listAccessibleResources(Long, ResourcePermission.ResourceType, Long, Long)
instead