package org.oskari.map.userlayer.service;

import fi.nls.oskari.domain.map.userlayer.UserLayer;
import fi.nls.oskari.domain.map.userlayer.UserLayerData;
import fi.nls.oskari.domain.map.userlayer.UserLayerStyle;
import fi.nls.oskari.service.OskariComponent;
import fi.nls.oskari.service.ServiceException;

import java.util.List;

public abstract class UserLayerDbService extends OskariComponent {
    //UserLayer related
    public abstract int insertUserLayer(final UserLayer userlayer, final UserLayerStyle userLayerStyle, final List<UserLayerData> userLayerDataList) throws ServiceException;

    public abstract int updateUserLayerCols(final UserLayer userlayer);

    public abstract UserLayer getUserLayerById(long id);

    public abstract List<UserLayer> getUserLayerByUuid(String uuid);

    public abstract void deleteUserLayerById(final long id) throws ServiceException;

    public abstract void deleteUserLayer(final UserLayer userlayer) throws ServiceException;

    public abstract void deleteUserLayersByUuid(String uuid) throws ServiceException;

    public abstract int updatePublisherName(final long id, final String uuid, final String name);
	
	public abstract String getUserLayerExtent (final long id);

    //UserLayerStyle related
    public abstract int updateUserLayerStyleCols(final UserLayerStyle userLayerStyle);

    public abstract UserLayerStyle getUserLayerStyleById(final long id);

    //UserLayerData related
    public abstract int updateUserLayerDataCols(final UserLayerData userlayerdata);

}

@@ -389,16 +389,17 @@
 onent %7B%0A
+%0A
     //Us
@@ -580,33 +580,32 @@
 rviceException;%0A
-%0A
     public abstr
@@ -660,17 +660,16 @@
 layer);%0A
-%0A
     publ
@@ -713,25 +713,24 @@
 d(long id);%0A
-%0A
     public a
@@ -782,25 +782,24 @@
 ring uuid);%0A
-%0A
     public a
@@ -863,33 +863,32 @@
 rviceException;%0A
-%0A
     public abstr
@@ -956,33 +956,32 @@
 rviceException;%0A
-%0A
     public abstr
@@ -1050,17 +1050,16 @@
 eption;%0A
-%0A
     publ
@@ -1152,10 +1152,8 @@
 e);%0A
-%09%0A
 %09pub
@@ -1230,32 +1230,32 @@
 erStyle related%0A
+
     public abstr
@@ -1325,17 +1325,16 @@
 Style);%0A
-%0A
     publ

Remove empty lines that make it harder to read