package uk.ac.ebi.spot.goci.curation.service.tracking;

import uk.ac.ebi.spot.goci.model.EventType;
import uk.ac.ebi.spot.goci.model.SecureUser;
import uk.ac.ebi.spot.goci.model.Trackable;

/**
 * Created by emma on 13/05/2016.
 *
 * @author emma
 *         <p>
 *         A component that manages operations on objects that require event tracking
 */
public interface TrackingOperationService {
    /**
     * Determine event type based on status
     *
     * @param trackable  Trackable object that requires event tracking
     * @param secureUser User initiating event
     */
    void create(Trackable trackable, SecureUser secureUser);

    /**
     * Determine event type based on status
     *
     * @param trackable  Trackable object that requires event tracking
     * @param secureUser User initiating event
     */
    void delete(Trackable trackable, SecureUser secureUser);

    /**
     * Determine event type based on status
     *
     * @param trackable  Trackable object that requires event tracking
     * @param secureUser User initiating event
     */
    void update(Trackable trackable, SecureUser secureUser, EventType eventType);
}

@@ -408,44 +408,41 @@
   * 
-Determine event type based on status
+Method to create a creation event
 %0A   
@@ -652,44 +652,40 @@
   * 
-Determine event type based on status
+Method to create an update event
 %0A   
@@ -895,44 +895,40 @@
   * 
-Determine event type based on status
+Method to create an update event
 %0A   

Update comments