Class RolesApiImpl

java.lang.Object
com.xebialabs.xlrelease.api.v1.impl.RolesApiImpl
All Implemented Interfaces:
com.xebialabs.xlrelease.api.ApiService, com.xebialabs.xlrelease.api.v1.RolesApi

@Controller public class RolesApiImpl extends Object implements com.xebialabs.xlrelease.api.v1.RolesApi
  • Field Summary

    Fields inherited from interface com.xebialabs.xlrelease.api.ApiService

    DEFAULT_RESULTS_PER_PAGE, DEFAULT_RESULTS_PER_PAGE_STRING, DEPTH, ORDER_BY, PAGE, PAGE_IS_OFFSET, RESULTS_PER_PAGE, ROLE_IDS_DATA
  • Constructor Summary

    Constructors
    Constructor
    Description
    RolesApiImpl(com.xebialabs.xlrelease.security.PermissionChecker permissions, com.xebialabs.xlrelease.security.ReleaseRoleService releaseRoleService, Optional<org.springframework.cache.CacheManager> cacheManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(String roleName, com.xebialabs.xlrelease.api.v1.views.RoleView roleView)
     
    void
    create(List<com.xebialabs.xlrelease.api.v1.views.RoleView> roleViews)
     
    void
    delete(String roleName)
     
    com.xebialabs.xlrelease.api.v1.views.RoleView
    getRole(String roleName)
     
    void
    rename(String roleName, String newName)
     
    List<com.xebialabs.xlrelease.api.v1.views.RoleView>
    searchRoles(com.xebialabs.xlrelease.api.v1.filters.RolePrincipalsFilters filters, Integer page, Integer resultsPerPage)
     
    void
    update(String roleName, com.xebialabs.xlrelease.api.v1.views.RoleView roleView)
     
    void
    update(List<com.xebialabs.xlrelease.api.v1.views.RoleView> roleViews)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.xebialabs.xlrelease.api.v1.RolesApi

    getRoles, searchRoles, serviceName
  • Constructor Details

    • RolesApiImpl

      public RolesApiImpl(com.xebialabs.xlrelease.security.PermissionChecker permissions, com.xebialabs.xlrelease.security.ReleaseRoleService releaseRoleService, @Qualifier("securityCacheManager") Optional<org.springframework.cache.CacheManager> cacheManager)
  • Method Details

    • searchRoles

      public List<com.xebialabs.xlrelease.api.v1.views.RoleView> searchRoles(com.xebialabs.xlrelease.api.v1.filters.RolePrincipalsFilters filters, Integer page, Integer resultsPerPage)
      Specified by:
      searchRoles in interface com.xebialabs.xlrelease.api.v1.RolesApi
    • getRole

      public com.xebialabs.xlrelease.api.v1.views.RoleView getRole(String roleName)
      Specified by:
      getRole in interface com.xebialabs.xlrelease.api.v1.RolesApi
    • create

      public void create(String roleName, com.xebialabs.xlrelease.api.v1.views.RoleView roleView)
      Specified by:
      create in interface com.xebialabs.xlrelease.api.v1.RolesApi
    • create

      public void create(List<com.xebialabs.xlrelease.api.v1.views.RoleView> roleViews)
      Specified by:
      create in interface com.xebialabs.xlrelease.api.v1.RolesApi
    • update

      public void update(String roleName, com.xebialabs.xlrelease.api.v1.views.RoleView roleView)
      Specified by:
      update in interface com.xebialabs.xlrelease.api.v1.RolesApi
    • update

      public void update(List<com.xebialabs.xlrelease.api.v1.views.RoleView> roleViews)
      Specified by:
      update in interface com.xebialabs.xlrelease.api.v1.RolesApi
    • delete

      public void delete(String roleName)
      Specified by:
      delete in interface com.xebialabs.xlrelease.api.v1.RolesApi
    • rename

      public void rename(String roleName, String newName)
      Specified by:
      rename in interface com.xebialabs.xlrelease.api.v1.RolesApi