Class RoleEndpoint

java.lang.Object
org.opencastproject.userdirectory.RoleEndpoint

@Path("/roles") public class RoleEndpoint extends Object
Provides a sorted set of known roles
  • Field Details

    • roleDirectoryService

      protected org.opencastproject.security.api.RoleDirectoryService roleDirectoryService
      The role directory service
    • organizationDirectoryService

      protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService
      The organization directory service
  • Constructor Details

    • RoleEndpoint

      public RoleEndpoint()
  • Method Details

    • setOrganizationDirectoryService

      public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory)
      Parameters:
      organizationDirectory - the organization directory
    • getRolesAsXml

      @GET @Path("roles.xml") @Produces("application/xml") public org.opencastproject.security.api.JaxbRoleList getRolesAsXml()
    • getRolesAsJson

      @GET @Path("roles.json") @Produces("application/json") public org.opencastproject.security.api.JaxbRoleList getRolesAsJson()
    • setRoleDirectoryService

      public void setRoleDirectoryService(org.opencastproject.security.api.RoleDirectoryService roleDirectoryService)
      Sets the role directory service
      Parameters:
      roleDirectoryService - the roleDirectoryService to set