@Override public SecurityRole deleteSecurityRole(SecurityRoleKey securityRoleKey) { // validate and trim security role key. String securityRole = validateSecurityRoleKey(securityRoleKey); // get the security role entity. SecurityRoleEntity securityRoleEntity = getSecurityRoleEntityByName(new SecurityRoleKey(securityRole)); // Delete the security role. securityRoleDao.delete(securityRoleEntity); // Create and return the security role object from the deleted entity. return createSecurityRoleFromEntity(securityRoleEntity); }
@Override public SecurityRole deleteSecurityRole(SecurityRoleKey securityRoleKey) { // validate and trim security role key. String securityRole = validateSecurityRoleKey(securityRoleKey); // get the security role entity. SecurityRoleEntity securityRoleEntity = getSecurityRoleEntityByName(new SecurityRoleKey(securityRole)); // Delete the security role. securityRoleDao.delete(securityRoleEntity); // Create and return the security role object from the deleted entity. return createSecurityRoleFromEntity(securityRoleEntity); }