Class RoleEndpoint
java.lang.Object
org.opencastproject.userdirectory.RoleEndpoint
Provides a sorted set of known roles
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.security.api.OrganizationDirectoryServiceThe organization directory serviceprotected org.opencastproject.security.api.RoleDirectoryServiceThe role directory service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.security.api.JaxbRoleListorg.opencastproject.security.api.JaxbRoleListvoidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) voidsetRoleDirectoryService(org.opencastproject.security.api.RoleDirectoryService roleDirectoryService) Sets the role directory service
-
Field Details
-
roleDirectoryService
protected org.opencastproject.security.api.RoleDirectoryService roleDirectoryServiceThe role directory service -
organizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryServiceThe 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
-