Example #1
0
 @Override
 public void deleteArchiveConfig(CallingContext context, String raptureURIString) {
   RaptureURI addressURI = new RaptureURI(raptureURIString, Scheme.DOCUMENT);
   checkParameter(NAME, addressURI.getDocPath());
   TypeArchiveConfigStorage.deleteByAddress(
       addressURI, context.getUser(), "Removed archive config");
 }
Example #2
0
 @Override
 public void putArchiveConfig(
     CallingContext context, String raptureURIString, TypeArchiveConfig config) {
   RaptureURI internalURI = new RaptureURI(raptureURIString, Scheme.DOCUMENT);
   checkParameter(NAME, internalURI.getDocPath());
   config.setAuthority(internalURI.getAuthority());
   config.setTypeName(internalURI.getDocPath());
   TypeArchiveConfigStorage.add(config, context.getUser(), "Created type archive config");
 }
Example #3
0
 @Override
 public TypeArchiveConfig getArchiveConfig(CallingContext context, String raptureURIString) {
   RaptureURI addressURI = new RaptureURI(raptureURIString, Scheme.DOCUMENT);
   checkParameter(NAME, addressURI.getDocPath());
   return TypeArchiveConfigStorage.readByAddress(addressURI);
 }