/******************************************************************************* * Copyright (c) 2012-2015 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Codenvy, S.A. - initial API and implementation *******************************************************************************/ package org.eclipse.che.api.vfs.server.observation; /** * @author andrew00x */ public abstract class VirtualFileEvent { public static enum ChangeType { ACL_UPDATED("acl_updated"), CONTENT_UPDATED("content_updated"), CREATED("created"), DELETED("deleted"), MOVED("moved"), PROPERTIES_UPDATED("properties_updated"), RENAMED("renamed"); private final String value; private ChangeType(String value) { this.value = value; } public String value() { return value; } @Override public String toString() { return value; } } private String workspaceId; private String path; private ChangeType type; private boolean folder; protected VirtualFileEvent(String workspaceId, String path, ChangeType type, boolean folder) { this.workspaceId = workspaceId; this.path = path; this.type = type; this.folder = folder; } protected VirtualFileEvent() { } public String getWorkspaceId() { return workspaceId; } public String getPath() { return path; } public ChangeType getType() { return type; } public void setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; } public void setPath(String path) { this.path = path; } public void setType(ChangeType type) { this.type = type; } public boolean isFolder() { return folder; } public void setFolder(boolean folder) { this.folder = folder; } }