package org.gcube.portlets.user.workspace.client.model; import java.io.Serializable; import com.google.gwt.user.client.rpc.IsSerializable; /** * The Class FileVersionModel. * * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it * Feb 20, 2017 */ public class FileVersionModel extends FileModel implements IsSerializable, Serializable { /** * */ private static final long serialVersionUID = -607019966965449963L; public static final String PATH = "path"; public static final String USER_VERSIONING = "user_versioning"; /** * Instantiates a new file model. */ public FileVersionModel(){ } /** * Instantiates a new file model. * * @param identifier the identifier * @param name the name * @param path the path * @param userFullName the user full name */ public FileVersionModel(String identifier, String name, String path, String userFullName) { setIdentifier(identifier); setName(name); setPath(path); setUser(userFullName); } /** * Sets the user. * * @param userVersioning the new user */ private void setUser(String userVersioning) { set(USER_VERSIONING, userVersioning); } /** * Sets the path. * * @param path the new path */ private void setPath(String path) { set(PATH, path); } /** * Gets the path. * * @return the path */ public String getPath(){ return get(PATH); } /** * Gets the user. * * @return the user */ public String getUser(){ return get(USER_VERSIONING); } }