Search in sources :

Example 16 with Resource

use of io.lumeer.api.model.common.Resource in project engine by Lumeer.

the class ProjectCodec method generateIdIfAbsentFromDocument.

@Override
public Project generateIdIfAbsentFromDocument(final Project jsonProject) {
    Resource resource = generateIdIfAbsentFromDocument((Resource) jsonProject);
    jsonProject.setId(resource.getId());
    return jsonProject;
}
Also used : SimpleResource(io.lumeer.api.model.common.SimpleResource) Resource(io.lumeer.api.model.common.Resource)

Aggregations

Resource (io.lumeer.api.model.common.Resource)16 Test (org.junit.Test)8 Role (io.lumeer.api.model.Role)6 RoleType (io.lumeer.api.model.RoleType)4 SimpleResource (io.lumeer.api.model.common.SimpleResource)4 Utils (io.lumeer.core.util.Utils)3 DataDocument (io.lumeer.engine.api.data.DataDocument)3 ArrayList (java.util.ArrayList)3 Collections (java.util.Collections)3 Collection (io.lumeer.api.model.Collection)2 Document (io.lumeer.api.model.Document)2 LinkInstance (io.lumeer.api.model.LinkInstance)2 LinkType (io.lumeer.api.model.LinkType)2 Project (io.lumeer.api.model.Project)2 ResourceType (io.lumeer.api.model.ResourceType)2 ResourceUtils (io.lumeer.api.util.ResourceUtils)2 HashSet (java.util.HashSet)2 List (java.util.List)2 Map (java.util.Map)2 Objects (java.util.Objects)2