Class ServerResource

  • All Implemented Interfaces:
    com.xebialabs.deployit.engine.api.ServerService

    public abstract class ServerResource
    extends com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
    implements com.xebialabs.deployit.engine.api.ServerService
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerResource​(com.xebialabs.license.service.LicenseService licenseService, java.util.List<com.xebialabs.deployit.security.authentication.viewas.ViewAsAuthenticationFinder> viewAsAuthenticationFinders, com.xebialabs.deployit.security.RoleService roleService, com.xebialabs.deployit.ServerConfiguration serverConfiguration, com.xebialabs.deployit.security.authentication.viewas.ViewAsData viewAsData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void gc()  
      com.xebialabs.deployit.engine.api.dto.ServerInfo getInfo()  
      com.xebialabs.deployit.engine.api.dto.ServerState getState()  
      void licenseReload()  
      void logout()  
      java.lang.Long shutdown()  
      void startMaintenance()  
      void stopMaintenance()  
      void viewAs​(java.lang.String username, java.util.List<java.lang.String> roles)  
      • Methods inherited from class com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource

        checkPermission, checkPermission, checkPermissions, checkPermissions, checkReadPermission, hasPermission, hasPermission, hasReadPermission, setRoleService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServerResource

        public ServerResource​(com.xebialabs.license.service.LicenseService licenseService,
                              java.util.List<com.xebialabs.deployit.security.authentication.viewas.ViewAsAuthenticationFinder> viewAsAuthenticationFinders,
                              com.xebialabs.deployit.security.RoleService roleService,
                              com.xebialabs.deployit.ServerConfiguration serverConfiguration,
                              com.xebialabs.deployit.security.authentication.viewas.ViewAsData viewAsData)
    • Method Detail

      • shutdown

        public java.lang.Long shutdown()
        Specified by:
        shutdown in interface com.xebialabs.deployit.engine.api.ServerService
      • startMaintenance

        public void startMaintenance()
        Specified by:
        startMaintenance in interface com.xebialabs.deployit.engine.api.ServerService
      • stopMaintenance

        public void stopMaintenance()
        Specified by:
        stopMaintenance in interface com.xebialabs.deployit.engine.api.ServerService
      • getState

        public com.xebialabs.deployit.engine.api.dto.ServerState getState()
        Specified by:
        getState in interface com.xebialabs.deployit.engine.api.ServerService
      • getInfo

        public com.xebialabs.deployit.engine.api.dto.ServerInfo getInfo()
        Specified by:
        getInfo in interface com.xebialabs.deployit.engine.api.ServerService
      • logout

        public void logout()
        Specified by:
        logout in interface com.xebialabs.deployit.engine.api.ServerService
      • viewAs

        public void viewAs​(java.lang.String username,
                           java.util.List<java.lang.String> roles)
        Specified by:
        viewAs in interface com.xebialabs.deployit.engine.api.ServerService
      • gc

        public void gc()
        Specified by:
        gc in interface com.xebialabs.deployit.engine.api.ServerService
      • licenseReload

        public void licenseReload()
        Specified by:
        licenseReload in interface com.xebialabs.deployit.engine.api.ServerService