Class AusApiServiceImpl

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

@Service public class AusApiServiceImpl extends BaseSpringApiServiceImpl implements AusApiDelegate
Service for accessing Archival Unit configurations.
  • Constructor Details

    • AusApiServiceImpl

      public AusApiServiceImpl()
  • Method Details

    • deleteAuConfig

      public org.springframework.http.ResponseEntity deleteAuConfig(String auid)
      Deletes the configuration for an AU given the AU identifier.
      Specified by:
      deleteAuConfig in interface AusApiDelegate
      Parameters:
      auid - A String with the AU identifier.
      Returns:
      ResponseEntity<AuConfiguration> with the deleted configuration.
      See Also:
    • getAllAuConfig

      public org.springframework.http.ResponseEntity getAllAuConfig()
      Provides the configuration for all AUs.
      Specified by:
      getAllAuConfig in interface AusApiDelegate
      Returns:
      a ResponseEntity<Collection<AuConfiguration>> with the configuration for all AUs.
      See Also:
    • getAuConfig

      public org.springframework.http.ResponseEntity getAuConfig(String auid)
      Provides the configuration for an AU given the AU identifier.
      Specified by:
      getAuConfig in interface AusApiDelegate
      Parameters:
      auid - A String with the AU identifier.
      Returns:
      a ResponseEntity<AuConfiguration> with the AU configuration.
      See Also:
    • putAuConfig

      public org.springframework.http.ResponseEntity putAuConfig(String auidArg, org.lockss.config.AuConfiguration auConfiguration)
      Stores the provided Archival Unit configuration.
      Specified by:
      putAuConfig in interface AusApiDelegate
      Parameters:
      auConfiguration - An AuConfiguration with the Archival Unit configuration.
      auidArg - The auid passed in the request, currently ignored
      Returns:
      a ResponseEntity<Void> with the Archival Unit configuration.
      See Also:
    • putAusMdEnable

      public org.springframework.http.ResponseEntity putAusMdEnable(String auId)
      Enables the metadata indexing of an archival unit.
      Specified by:
      putAusMdEnable in interface AusApiDelegate
      Parameters:
      auId - A String with the identifier (auid) of the archival unit.
      Returns:
      a ResponseEntity<RequestAuControlResult> with the result of the operation.
      See Also:
    • putAusMdDisable

      public org.springframework.http.ResponseEntity putAusMdDisable(String auId)
      Disables the metadata indexing of an archival unit.
      Specified by:
      putAusMdDisable in interface AusApiDelegate
      Parameters:
      auId - A String with the identifier (auid) of the archival unit.
      Returns:
      a ResponseEntity<RequestAuControlResult> with the result of the operation.
      See Also: