Class RoleServiceImpl

java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.RoleServiceImpl
All Implemented Interfaces:
JAXRSService, RoleService

@Service public class RoleServiceImpl extends AbstractService implements RoleService
  • Field Details

  • Constructor Details

    • RoleServiceImpl

      public RoleServiceImpl(RoleLogic logic)
  • Method Details

    • list

      public List<RoleTO> list()
      Description copied from interface: RoleService
      Returns a list of all roles.
      Specified by:
      list in interface RoleService
      Returns:
      list of all roles.
    • read

      public RoleTO read(String key)
      Description copied from interface: RoleService
      Returns role with matching key.
      Specified by:
      read in interface RoleService
      Parameters:
      key - role key to be read
      Returns:
      role with matching key
    • create

      public Response create(RoleTO roleTO)
      Description copied from interface: RoleService
      Creates a new role.
      Specified by:
      create in interface RoleService
      Parameters:
      roleTO - role to be created
      Returns:
      Response object featuring Location header of created role
    • update

      public void update(RoleTO roleTO)
      Description copied from interface: RoleService
      Updates the role matching the provided key.
      Specified by:
      update in interface RoleService
      Parameters:
      roleTO - role to be stored
    • delete

      public void delete(String key)
      Description copied from interface: RoleService
      Deletes the role matching the provided key.
      Specified by:
      delete in interface RoleService
      Parameters:
      key - role key to be deleted
    • getAnyLayout

      public Response getAnyLayout(String key)
      Description copied from interface: RoleService
      Gets the console layout information as JSON string for the role with the given key, if available.
      Specified by:
      getAnyLayout in interface RoleService
      Parameters:
      key - role key
      Returns:
      console layout information as JSON string for the role with the given key, if available
    • setAnyLayout

      public void setAnyLayout(String key, InputStream anyLayoutIn)
      Description copied from interface: RoleService
      Sets the console layout information as JSON string for the role with the given key, if available.
      Specified by:
      setAnyLayout in interface RoleService
      Parameters:
      key - role key
      anyLayoutIn - console layout information to be set
    • removeAnyLayout

      public void removeAnyLayout(String key)
      Description copied from interface: RoleService
      Removes the console layout information for the role with the given key, if available.
      Specified by:
      removeAnyLayout in interface RoleService
      Parameters:
      key - role key