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;
}
Aggregations