![JAR search and dependency download from the Maven repository](/logo.png)
java.api.beanStorageAddressableMethods.st Maven / Gradle / Ivy
/**
* Return a {@link } based on its address
*
* @param addressURI The address for this
* @return The {@link } object stored at this address
*/
public static readByAddress(RaptureURI addressURI) {
RaptureURI storageLocation = StorageLocationFactory.createStorageURI(PathBuilder.getRepoName(), PathBuilder.getPrefix(), addressURI);
return ObjectStorage.read(storageLocation, .class, storableInfo, getObjectMapper());
}
/**
* Delete a from the repo, based on the object's Address.
* @param addressURI The public address URI of the object to be deleted
* @param user The user doing the delete
* @param comment The comment associated with the delete
* @return
*/
public static Boolean deleteByAddress(RaptureURI addressURI, String user, String comment) {
RaptureURI storageLocation = StorageLocationFactory.createStorageURI(PathBuilder.getRepoName(), PathBuilder.getPrefix(), addressURI);
return deleteByStorageLocation(storageLocation, user, comment);
}
/**
* Return the storageLocation for this , converted from the address
* @param addressURI The public address URI of the
* @return
*/
public static RaptureURI addressToStorageLocation(RaptureURI addressURI) {
return StorageLocationFactory.createStorageURI(PathBuilder.getRepoName(), PathBuilder.getPrefix(), addressURI);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy