Class AustatesApiServiceImpl

java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.config.impl.AustatesApiServiceImpl
All Implemented Interfaces:
AustatesApiDelegate

@Service public class AustatesApiServiceImpl extends BaseSpringApiServiceImpl implements AustatesApiDelegate
Service for accessing Archival Unit states.
  • Constructor Details

    • AustatesApiServiceImpl

      public AustatesApiServiceImpl()
  • Method Details

    • getAuState

      public org.springframework.http.ResponseEntity<String> getAuState(String auid)
      Provides the state of an AU given the AU identifier.
      Specified by:
      getAuState in interface AustatesApiDelegate
      Parameters:
      auid - A String with the AU identifier.
      Returns:
      a ResponseEntity<String> with the Archival Unit state if successful, or a ResponseEntity<String> with the error information otherwise..
      See Also:
    • patchAuState

      public org.springframework.http.ResponseEntity patchAuState(String auid, String auState, String xLockssRequestCookie)
      Updates the state of an Archival Unit with the provided values.
      Specified by:
      patchAuState in interface AustatesApiDelegate
      Parameters:
      auid - A String with the AU identifier.
      auState - A String with the Archival Unit state changes.
      xLockssRequestCookie - A String with "X-Lockss-Request-Cookie" request header.
      Returns:
      a ResponseEntity<Void> if successful, or a ResponseEntity<String> with the error information otherwise.
      See Also: