Package edu.stanford.bmir.protege.web.server.owlapi

Examples of edu.stanford.bmir.protege.web.server.owlapi.OWLAPIProjectManager


* Date: 07/10/2012
*/
public class RevisionManagerServiceImpl extends WebProtegeRemoteServiceServlet implements RevisionManagerService {

    private OWLAPIProject getProject(ProjectId projectId) {
        OWLAPIProjectManager pm = OWLAPIProjectManager.getProjectManager();
        return pm.getProject(projectId);
    }
View Full Code Here


            return value;
        }
    }

    private OWLAPIProject getProject(ProjectId projectId) {
        OWLAPIProjectManager pm = OWLAPIProjectManager.getProjectManager();
        return pm.getProject(projectId);
    }
View Full Code Here

        return new NullValidator<GetProjectEventsAction, GetProjectEventsResult>();
    }

    @Override
    public GetProjectEventsResult execute(GetProjectEventsAction action, ExecutionContext executionContext) {
        OWLAPIProjectManager projectManager = OWLAPIProjectManager.getProjectManager();
        final EventTag sinceTag = action.getSinceTag();
        final ProjectId projectId = action.getProjectId();
        if(!projectManager.isActive(projectId)) {
            return getEmptyResult(projectId, sinceTag);
        }
        Optional<OWLAPIProject> project = projectManager.getProjectIfActive(projectId);
        if(!project.isPresent()) {
            return getEmptyResult(projectId, sinceTag);
        }
        // TODO: FIX THIS.  NEEDS TO GO ELSEWHERE
//        project.getProjectAccessManager().logAccessForUser(action.getUserId());
View Full Code Here

     */
    protected abstract RequestValidator<A> getAdditionalRequestValidator(A action, RequestContext requestContext);

    @Override
    final public R execute(A action, ExecutionContext executionContext) {
        final OWLAPIProjectManager pm = OWLAPIProjectManager.getProjectManager();
        OWLAPIProject project = pm.getProject(action.getProjectId());
        return execute(action, project, executionContext);
    }
View Full Code Here

    public LoadProjectResult execute(final LoadProjectAction action, ExecutionContext executionContext) {
        // Load project in parallel (as we don't return it, but want it ready for further calls).
        final WebProtegeLogger webProtegeLogger = WebProtegeLoggerManager.get(LoadProjectActionHandler.class);
        long t0 = System.currentTimeMillis();
        webProtegeLogger.info("Loading project: " + action.getProjectId());
        OWLAPIProjectManager pm = OWLAPIProjectManager.getProjectManager();
        pm.getProject(action.getProjectId());
        long t1 = System.currentTimeMillis();
        webProtegeLogger.info(".... loaded project in " + (t1 - t0) + " ms");
        final ProjectId projectId = action.getProjectId();//project.getProjectId();

        final OWLAPIProjectMetadataManager manager = OWLAPIProjectMetadataManager.getManager();
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.server.owlapi.OWLAPIProjectManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.