package se.ericsson.cf.scott.sandbox.whc.services;

import org.eclipse.lyo.oslc4j.trs.server.ChangeHistories;
import org.eclipse.lyo.oslc4j.trs.server.service.TrackedResourceSetService;
import se.ericsson.cf.scott.sandbox.whc.WarehouseControllerManager;
import se.ericsson.cf.scott.sandbox.whc.trs.WhcChangeHistories;

/**
 * Created on 2018-02-26
 *
 * @author Andrew Berezovskyi (andriib@kth.se)
 * @version $version-stub$
 * @since 0.0.1
 */
public class WhcTrsService extends TrackedResourceSetService {
    @Override
    protected ChangeHistories getChangeHistories() {
        return WarehouseControllerManager.getChangeHistories();
    }

    @Override
    protected String getServiceBase() {
        return getChangeHistories().getServiceBase();
//        // TODO Andrew@2018-02-26: check if it's the right one
//        final String servletPath = OSLC4JUtils.getServletURI();
//        return servletPath;
    }
}

@@ -179,16 +179,73 @@
 ervice;%0A
+import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A
 import s
@@ -307,72 +307,8 @@
 ger;
-%0Aimport se.ericsson.cf.scott.sandbox.whc.trs.WhcChangeHistories;
 %0A%0A/*
@@ -431,16 +431,16 @@
 0.1%0A */%0A
-
 public c
@@ -494,16 +494,102 @@
 rvice %7B%0A
+%0A    private final static Logger log = LoggerFactory.getLogger(WhcTrsService.class);%0A%0A
     @Ove

add logger