Subversion Repositories XServices

Rev

Rev 175 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
175 brianR 1
/*
2
 *   Copyright 2014 Brian Rosenberger (Brutex Network)
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
15
 */
16
 
17
package net.brutex.xservices.cmtypes;
18
 
19
import java.net.URL;
20
 
21
import javax.xml.bind.annotation.XmlType;
22
 
23
@XmlType(name="Item")
24
public class ItemType {
25
    private String longFilename;
26
    private String shortFilename;
27
    private String dirName;
28
    private String createdDate;
29
    private String createdUser;
30
    private String object_id;
31
    private String object_uid;
32
    private String object_spec_uid;
33
    private String object_spec;
34
    private String itemFormat;
35
    private String updatedDate;
36
    private String updatedUser;
37
 
38
 
39
    /*
40
    SystemAttributes.FULL_PATH_NAME,
41
	  SystemAttributes.ITEMFILE_DIR,
42
	  SystemAttributes.ITEMFILE_FILENAME,
43
	  SystemAttributes.ITEMFILE_DIR,
44
	  SystemAttributes.OBJECT_SPEC,
45
	  SystemAttributes.OBJECT_ID,
46
	  SystemAttributes.OBJECT_SPEC_UID,
47
	  SystemAttributes.OBJECT_UID,
48
	  SystemAttributes.CREATION_DATE,
49
	  SystemAttributes.CREATION_USER,
50
	  SystemAttributes.ITEM_FORMAT,
51
	  SystemAttributes.LAST_UPDATED_DATE,
52
	  SystemAttributes.LAST_UPDATED_USER
53
 
54
	  */
55
 
56
    public String getDirName() {
57
		return dirName;
58
	}
59
 
60
	public void setDirName(String dirName) {
61
		this.dirName = dirName;
62
	}
63
 
64
	public String getCreatedUser() {
65
		return createdUser;
66
	}
67
 
68
	public void setCreatedUser(String createdUser) {
69
		this.createdUser = createdUser;
70
	}
71
 
72
	public String getItemFormat() {
73
		return itemFormat;
74
	}
75
 
76
	public void setItemFormat(String itemFormat) {
77
		this.itemFormat = itemFormat;
78
	}
79
 
80
	public String getUpdatedDate() {
81
		return updatedDate;
82
	}
83
 
84
	public void setUpdatedDate(String updatedDate) {
85
		this.updatedDate = updatedDate;
86
	}
87
 
88
	public String getUpdatedUser() {
89
		return updatedUser;
90
	}
91
 
92
	public void setUpdatedUser(String updatedUser) {
93
		this.updatedUser = updatedUser;
94
	}
95
 
96
	public String getObject_uid() {
97
		return object_uid;
98
	}
99
 
100
	public void setObject_uid(String object_uid) {
101
		this.object_uid = object_uid;
102
	}
103
 
104
	public String getObject_spec_uid() {
105
		return object_spec_uid;
106
	}
107
 
108
	public void setObject_spec_uid(String object_spec_uid) {
109
		this.object_spec_uid = object_spec_uid;
110
	}
111
 
112
	public String getObject_spec() {
113
		return object_spec;
114
	}
115
 
116
	public void setObject_spec(String object_spec) {
117
		this.object_spec = object_spec;
118
	}
119
	private URL url;
120
 
121
    public URL getUrl() {
122
		return url;
123
	}
124
 
125
    public void setUrl(URL url) {
126
		this.url = url;
127
	}
128
 
129
    public String getObject_id() {
130
		return object_id;
131
	}
132
    public void setObject_id(String object_id) {
133
		this.object_id = object_id;
134
	}
135
 
136
    public String getLongFilename() {
137
        return longFilename;
138
    }
139
    public void setLongFilename(String longFilename) {
140
        this.longFilename = longFilename;
141
    }
142
    public String getShortFilename() {
143
        return shortFilename;
144
    }
145
    public void setShortFilename(String shortFilename) {
146
        this.shortFilename = shortFilename;
147
    }
148
 
149
    public String getCreatedDate() {
150
        return createdDate;
151
    }
152
    public void setCreatedDate(String createdDate) {
153
        this.createdDate = createdDate;
154
    }
155
 
156
    public String toString() {
157
        StringBuffer sb = new StringBuffer();
158
        sb.append(longFilename);
159
        sb.append(";");
160
        sb.append(" (");
161
        sb.append(shortFilename);
162
        sb.append("), related as ");
163
        sb.append(", created at ");
164
        sb.append(createdDate);
165
        return sb.toString();
166
    }
167
}