1 package org.kuali.ole.loaders.describe.service;
2
3 import com.sun.jersey.api.core.HttpContext;
4 import org.kuali.ole.describe.bo.OleLocation;
5 import org.kuali.ole.describe.bo.OleLocationLevel;
6 import org.kuali.ole.loaders.common.bo.OLELoaderResponseBo;
7 import org.kuali.ole.loaders.describe.bo.OLELocationBo;
8 import org.kuali.ole.loaders.describe.bo.OLELocationLevelBo;
9
10 import java.util.List;
11
12
13
14
15 public interface OLELocationLoaderHelperService {
16
17 public boolean isLocationLevelExistById(String locationLevelId);
18
19 public boolean isParentLocationLevelExist(String parentLocationLevelId);
20
21 public boolean isParentLocationExist(String parentLocationId);
22
23 public boolean isLocationExistByCode(String locationCode);
24
25 public OleLocation createOleLocation(OLELocationBo oleLocationBo);
26
27 public OLELoaderResponseBo updateOleLocation(OleLocation oleLocation, OLELocationBo oleLocationBo,HttpContext context);
28
29 public OleLocation getLocationById(String locationId);
30
31 public OleLocation getLocationByCode(String locationId);
32
33 public List<OleLocation> getAllLocation();
34
35 public Object formLocationExportResponse(Object object, String locationContext, String uri, boolean importContext);
36
37 public Object formAllLocationExportResponse(HttpContext context, List<OleLocation> oleLocationList, String locationContext, String uri);
38
39 public OleLocationLevel getLocationLevelById(String locationLevelId);
40
41 public OleLocationLevel getLocationLevelByCode(String locationLevelCode);
42
43 public List<OleLocationLevel> getAllLocationLevel();
44
45 public Object formLocationLevelExportResponse(Object object, String locationContext, String uri,boolean addContext);
46
47 public Object formAllLocationLevelExportResponse(HttpContext context, List<OleLocationLevel> oleLocationLevelList, String locationContext, String uri);
48
49 public OLELoaderResponseBo updateOleLocationLevel(OleLocationLevel oleLocationLevel, OLELocationLevelBo oleLocationLevelBo,HttpContext context);
50
51
52 }