Search in sources :

Example 1 with Message

use of org.usermanagement.model.Message in project open-kilda by telstra.

the class SamlService method deleteByUuid.

/**
 * Delete provider.
 *
 * @param uuid the uuid
 * @return delete message
 */
public Message deleteByUuid(String uuid) {
    SamlConfigEntity samlConfigEntity = samlValidator.getEntityByUuid(uuid);
    samlRepository.delete(samlConfigEntity);
    metadataManager.deleteProviderFromMetadataManager(samlConfigEntity);
    return new Message("Provider deleted successfully");
}
Also used : Message(org.usermanagement.model.Message) SamlConfigEntity(org.openkilda.saml.dao.entity.SamlConfigEntity)

Aggregations

SamlConfigEntity (org.openkilda.saml.dao.entity.SamlConfigEntity)1 Message (org.usermanagement.model.Message)1