public void deleteRepositoryObject(String entityType, String entityId) {
ObjectRepository objectRepository = getGenericObjectRepository(entityType);
RepositoryObject repositoryObject = objectRepository.get(entityId);
if (repositoryObject == null) {
throw new IllegalArgumentException("Could not find repository object!");
}
objectRepository.remove(repositoryObject);
}
|