Package ca.cdr.api.security.permission
Interface ICustomRolePersistenceSvc
public interface ICustomRolePersistenceSvc
Persistence service for custom roles
-
Method Summary
Modifier and TypeMethodDescriptionReturn the JSON representation of the indicated custom role or null if no role with that name is persistedReturn all custom role names currently persisted in the system.Save role
-
Method Details
-
save
Save role- Parameters:
theRole- the JSON representation of the role to save- Returns:
- the saved CustomRoleEntity
-
fetchRole
Return the JSON representation of the indicated custom role or null if no role with that name is persisted- Parameters:
theRoleName- the name of the custom role to return- Returns:
- the JSON representation of the requested custom role
-
getAllRoleNames
Return all custom role names currently persisted in the system.- Returns:
- Set of all custom role names, or empty set if no custom roles are persisted
-