Interface RoleManagementService
-
- All Known Implementing Classes:
DefaultRoleManagementService
@Deprecated @Path("/roleManagementService/") public interface RoleManagementService
Deprecated.Use the new v2 serviceRoleService- Author:
- Olivier Lamy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ActionStatusassignRole(String roleId, String principal)Deprecated.Assigns the role indicated by the roleId to the given principalActionStatusassignRoleByName(String roleName, String principal)Deprecated.Assigns the role indicated by the roleName to the given principalActionStatusassignTemplatedRole(String templateId, String resource, String principal)Deprecated.Assigns the templated role indicated by the templateId fails if the templated role has not been createdActionStatuscreateTemplatedRole(String templateId, String resource)Deprecated.List<Role>getAllRoles()Deprecated.List<ApplicationRoles>getApplicationRoles(String username)Deprecated.List<Application>getApplications(String username)Deprecated.List<Role>getDetailedAllRoles()Deprecated.List<Role>getEffectivelyAssignedRoles(String username)Deprecated.RolegetRole(String roleName)Deprecated.ActionStatusremoveTemplatedRole(String templateId, String resource)Deprecated.removes a role corresponding to the role Id that was manufactured with the given resource it also removes any user assignments for that roleBooleanroleExists(String roleId)Deprecated.true of a role exists with the given roleIdBooleantemplatedRoleExists(String templateId, String resource)Deprecated.true of a role exists with the given roleIdActionStatusunassignRole(String roleId, String principal)Deprecated.Unassigns the role indicated by the role id from the given principalActionStatusunassignRoleByName(String roleName, String principal)Deprecated.Unassigns the role indicated by the role name from the given principalActionStatusupdateRole(String templateId, String oldResource, String newResource)Deprecated.allows for a role coming from a template to be renamed effectively swapping out the bits of it that were labeled with the oldResource with the newResource it also manages any user assignments for that roleActionStatusupdateRoleDescription(String roleName, String description)Deprecated.ActionStatusupdateRoleUsers(Role role)Deprecated.update users assigned to a roleActionStatusupdateUserRoles(User user)Deprecated.update roles assigned to a userVerificationStatusverifyTemplatedRole(String templateId, String resource)Deprecated.Check a role template is complete in the RBAC store.
-
-
-
Method Detail
-
createTemplatedRole
@Path("createTemplatedRole") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus createTemplatedRole(@QueryParam("templateId") String templateId, @QueryParam("resource") String resource) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException
-
removeTemplatedRole
@Path("removeTemplatedRole") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus removeTemplatedRole(@QueryParam("templateId") String templateId, @QueryParam("resource") String resource) throws RedbackServiceExceptionDeprecated.removes a role corresponding to the role Id that was manufactured with the given resource it also removes any user assignments for that role- Parameters:
templateId-resource-- Throws:
RedbackServiceException
-
updateRole
@Path("updateRole") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus updateRole(@QueryParam("templateId") String templateId, @QueryParam("oldResource") String oldResource, @QueryParam("newResource") String newResource) throws RedbackServiceExceptionDeprecated.allows for a role coming from a template to be renamed effectively swapping out the bits of it that were labeled with the oldResource with the newResource it also manages any user assignments for that role- Parameters:
templateId-oldResource-newResource-- Throws:
RedbackServiceException
-
assignRole
@Path("assignRole") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus assignRole(@QueryParam("roleId") String roleId, @QueryParam("principal") String principal) throws RedbackServiceExceptionDeprecated.Assigns the role indicated by the roleId to the given principal- Parameters:
roleId-principal-- Throws:
RedbackServiceException
-
assignRoleByName
@Path("assignRoleByName") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus assignRoleByName(@QueryParam("roleName") String roleName, @QueryParam("principal") String principal) throws RedbackServiceExceptionDeprecated.Assigns the role indicated by the roleName to the given principal- Parameters:
roleName-principal-- Throws:
RedbackServiceException
-
assignTemplatedRole
@Path("assignTemplatedRole") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus assignTemplatedRole(@QueryParam("templateId") String templateId, @QueryParam("resource") String resource, @QueryParam("principal") String principal) throws RedbackServiceExceptionDeprecated.Assigns the templated role indicated by the templateId fails if the templated role has not been created- Parameters:
templateId-resource-principal-- Throws:
RedbackServiceException
-
unassignRole
@Path("unassignRole") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus unassignRole(@QueryParam("roleId") String roleId, @QueryParam("principal") String principal) throws RedbackServiceExceptionDeprecated.Unassigns the role indicated by the role id from the given principal- Parameters:
roleId-principal-- Throws:
RedbackServiceException
-
unassignRoleByName
@Path("unassignRoleByName") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus unassignRoleByName(@QueryParam("roleName") String roleName, @QueryParam("principal") String principal) throws RedbackServiceExceptionDeprecated.Unassigns the role indicated by the role name from the given principal- Parameters:
roleName-principal-- Throws:
RedbackServiceException
-
roleExists
@Path("roleExists") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean roleExists(@QueryParam("roleId") String roleId) throws RedbackServiceExceptionDeprecated.true of a role exists with the given roleId- Parameters:
roleId-- Returns:
- Throws:
RedbackServiceException
-
templatedRoleExists
@Path("templatedRoleExists") @GET @Produces({"application/json","application/xml","text/plain"}) Boolean templatedRoleExists(@QueryParam("templateId") String templateId, @QueryParam("resource") String resource) throws RedbackServiceExceptionDeprecated.true of a role exists with the given roleId- Parameters:
templateId-resource-- Returns:
- Throws:
RedbackServiceException
-
verifyTemplatedRole
@Path("verifyTemplatedRole") @GET @Produces({"application/json","application/xml","text/plain"}) VerificationStatus verifyTemplatedRole(@QueryParam("templateId") String templateId, @QueryParam("resource") String resource) throws RedbackServiceExceptionDeprecated.Check a role template is complete in the RBAC store.- Parameters:
templateId- the templated roleresource- the resource to verify- Throws:
RedbackServiceException
-
getEffectivelyAssignedRoles
@Path("getEffectivelyAssignedRoles/{username}") @GET @Produces({"application/json","application/xml","text/plain"}) List<Role> getEffectivelyAssignedRoles(@PathParam("username") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 1.4
-
getAllRoles
@Path("allRoles") @GET @Produces({"application/json","application/xml","text/plain"}) List<Role> getAllRoles() throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
getDetailedAllRoles
@Path("detailledAllRoles") @GET @Produces({"application/json","application/xml","text/plain"}) List<Role> getDetailedAllRoles() throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
getApplications
@Path("getApplications/{username}") @GET @Produces({"application/json","application/xml","text/plain"}) List<Application> getApplications(@PathParam("username") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
getRole
@Path("getRole/{roleName}") @GET @Produces({"application/json","application/xml","text/plain"}) Role getRole(@PathParam("roleName") String roleName) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
updateRoleDescription
@Path("updateRoleDescription") @GET @Produces({"application/json","application/xml","text/plain"}) ActionStatus updateRoleDescription(@QueryParam("roleName") String roleName, @QueryParam("roleDescription") String description) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
updateRoleUsers
@Path("updateRoleUsers") @POST @Produces({"application/json","application/xml"}) @Consumes({"application/json","application/xml"}) ActionStatus updateRoleUsers(Role role) throws RedbackServiceExceptionDeprecated.update users assigned to a role- Throws:
RedbackServiceException- Since:
- 2.0
-
getApplicationRoles
@Path("getApplicationRoles/{username}") @GET @Produces({"application/json","application/xml"}) List<ApplicationRoles> getApplicationRoles(@PathParam("username") String username) throws RedbackServiceExceptionDeprecated.- Throws:
RedbackServiceException- Since:
- 2.0
-
updateUserRoles
@Path("updateUserRoles") @POST @Produces({"application/json","application/xml"}) @Consumes({"application/json","application/xml"}) ActionStatus updateUserRoles(User user) throws RedbackServiceExceptionDeprecated.update roles assigned to a user- Throws:
RedbackServiceException- Since:
- 2.0
-
-