]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.server.io/src/org/simantics/document/server/io/FileInfo.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.document.server.io / src / org / simantics / document / server / io / FileInfo.java
1 /*******************************************************************************
2  * Copyright (c) 2013, 2014 Association for Decentralized 
3  * Information Management in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the THTH Simantics 
6  * Division Member Component License which accompanies this 
7  * distribution, and is available at
8  * http://www.simantics.org/legal/sdmcl-v10.html
9  *
10  * Contributors:
11  *     Semantum Oy - initial API and implementation
12  *******************************************************************************/
13 package org.simantics.document.server.io;
14
15 public class FileInfo {
16     
17     private String name;
18     private String content;
19     private boolean canModify;
20     private Long resourceId;
21     private Long creationTimeMillis;
22     
23     public FileInfo(String name, String content, Long resourceId, Long creationTimeMillis, boolean canModify) {
24         this.name = name;
25         this.content = content;
26         this.canModify = canModify;
27         this.resourceId = resourceId;
28         this.creationTimeMillis = creationTimeMillis;
29     }
30
31     public String getName() {
32         return name;
33     }
34
35     public String getContent() {
36         return content;
37     }
38
39     public boolean canModify() {
40         return canModify;
41     }
42
43     public Long getResourceId() {
44         return resourceId;
45     }
46
47     public Long getCreationTimeMillis() {
48         return creationTimeMillis;
49     }
50
51     
52     
53 }