use of edu.stanford.bmir.protege.web.shared.project.GetProjectPrefixDeclarationsAction in project webprotege by protegeproject.
the class GetProjectPrefixDeclarationsActionHandler method execute.
@Nonnull
@Override
public GetProjectPrefixDeclarationsResult execute(@Nonnull GetProjectPrefixDeclarationsAction action, @Nonnull ExecutionContext executionContext) {
ProjectId projectId = action.getProjectId();
List<PrefixDeclaration> decls = store.find(projectId).getPrefixes().entrySet().stream().map(entry -> PrefixDeclaration.get(entry.getKey(), entry.getValue())).collect(toList());
return new GetProjectPrefixDeclarationsResult(projectId, decls);
}
Aggregations