Package com.morpheusdata.core
Interface MorpheusResourcePermissionService
- All Superinterfaces:
MorpheusDataQueryService<ResourcePermission>
,MorpheusDataService<ResourcePermission,
ResourcePermissionIdentity>
public interface MorpheusResourcePermissionService
extends MorpheusDataService<ResourcePermission,ResourcePermissionIdentity>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<Long>
listAccessibleResources
(Long accountId, ResourcePermission.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.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
-
listAccessibleResources
io.reactivex.rxjava3.core.Observable<Long> listAccessibleResources(Long accountId, ResourcePermission.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
-