Package org.javlo.service.document
Class DataDocumentService
- java.lang.Object
-
- org.javlo.service.document.DataDocumentService
-
public class DataDocumentService extends Object
-
-
Constructor Summary
Constructors Constructor Description DataDocumentService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataDocument
createDocumentData(DataDocument doc)
create new documentDataDocument
getDocumentData(String category, long id, String token)
static DataDocumentService
getInstance(GlobalContext globalContext)
Map<Object,Object>
updateDocumentData(DataDocument doc)
-
-
-
Method Detail
-
getInstance
public static final DataDocumentService getInstance(GlobalContext globalContext)
-
updateDocumentData
public Map<Object,Object> updateDocumentData(DataDocument doc) throws IOException
- Throws:
IOException
-
createDocumentData
public DataDocument createDocumentData(DataDocument doc) throws IOException
create new document- Parameters:
category
-data
-- Returns:
- return a new id
- Throws:
IOException
-
getDocumentData
public DataDocument getDocumentData(String category, long id, String token) throws IOException
- Throws:
IOException
-
-