use of io.lumeer.engine.api.event.CreateLinkType in project engine by Lumeer.
the class PusherFacade method createLinkType.
public void createLinkType(@Observes final CreateLinkType createLinkType) {
if (isEnabled()) {
try {
var originalLinkType = new LinkType(createLinkType.getLinkType());
originalLinkType.setPermissions(new Permissions());
checkLinkTypesPermissionsChange(originalLinkType, createLinkType.getLinkType());
sendResourceNotificationByLinkType(linkTypeAdapter.mapLinkTypeComputedProperties(createLinkType.getLinkType()), CREATE_EVENT_SUFFIX);
} catch (Exception e) {
log.log(Level.WARNING, "Unable to send push notification: ", e);
}
}
}
Aggregations