Search in sources :

Example 1 with WorkspaceEntityFileRESTModel

use of fi.otavanopisto.muikku.plugins.workspace.rest.model.WorkspaceEntityFileRESTModel in project muikku by otavanopisto.

the class WorkspaceRESTService method createRestModel.

private fi.otavanopisto.muikku.plugins.workspace.rest.model.WorkspaceEntityFileRESTModel createRestModel(WorkspaceEntityFile file) {
    WorkspaceEntityFileRESTModel restfile = new fi.otavanopisto.muikku.plugins.workspace.rest.model.WorkspaceEntityFileRESTModel();
    restfile.setContentType(file.getContentType());
    restfile.setId(file.getId());
    restfile.setFileIdentifier(file.getFileIdentifier());
    restfile.setTempFileId(null);
    restfile.setWorkspaceEntityId(file.getWorkspaceEntity());
    return restfile;
}
Also used : WorkspaceEntityFileRESTModel(fi.otavanopisto.muikku.plugins.workspace.rest.model.WorkspaceEntityFileRESTModel)

Aggregations

WorkspaceEntityFileRESTModel (fi.otavanopisto.muikku.plugins.workspace.rest.model.WorkspaceEntityFileRESTModel)1