4A Server -
2.0
|
Class representing stored document. More...
Public Member Functions | |
StoredDocument () | |
StoredDocument (Integer id) | |
StoredDocument (String name, String type, User owner, UserGroup group, String content) | |
Integer | getId () |
void | setId (Integer id) |
String | getUri () |
String | getGeneratedUri () |
void | setUri (String uri) |
Date | getAdded () |
void | setAdded (Date added) |
UserGroup | getGroup () |
void | setGroup (UserGroup group) |
String | getName () |
void | setName (String name) |
String | getType () |
void | setType (String type) |
User | getOwner () |
void | setOwner (User owner) |
String | getContent () |
void | setContent (String content) |
int | hashCode () |
boolean | equals (Object object) |
String | toString () |
Private Attributes | |
Integer | id |
String | uri |
String | name |
String | type |
Date | added |
int | ownerId |
int | groupId |
String | content |
User | owner |
UserGroup | group |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing stored document.
Class representing stored document
Definition at line 49 of file StoredDocument.java.
cz.vutbr.fit.knot.annotations.entity.StoredDocument.StoredDocument | ( | ) |
Constructor
Definition at line 100 of file StoredDocument.java.
cz.vutbr.fit.knot.annotations.entity.StoredDocument.StoredDocument | ( | Integer | id | ) |
cz.vutbr.fit.knot.annotations.entity.StoredDocument.StoredDocument | ( | String | name, |
String | type, | ||
User | owner, | ||
UserGroup | group, | ||
String | content | ||
) |
Constructor
name | File name |
type | File type of document |
owner | Document owner |
group | User group to which this document belongs |
content | Document content |
Definition at line 121 of file StoredDocument.java.
boolean cz.vutbr.fit.knot.annotations.entity.StoredDocument.equals | ( | Object | object | ) |
Compares this with other object and returns, whether objects are same type and have same id.
object | Object to compare with |
Definition at line 299 of file StoredDocument.java.
Date cz.vutbr.fit.knot.annotations.entity.StoredDocument.getAdded | ( | ) |
Gets date of document addition
Definition at line 181 of file StoredDocument.java.
String cz.vutbr.fit.knot.annotations.entity.StoredDocument.getContent | ( | ) |
Gets textual content of document
Definition at line 271 of file StoredDocument.java.
String cz.vutbr.fit.knot.annotations.entity.StoredDocument.getGeneratedUri | ( | ) |
Generate URI of document URI = base URI + document id
Definition at line 163 of file StoredDocument.java.
UserGroup cz.vutbr.fit.knot.annotations.entity.StoredDocument.getGroup | ( | ) |
Gets user group to which this document belongs
Definition at line 199 of file StoredDocument.java.
Integer cz.vutbr.fit.knot.annotations.entity.StoredDocument.getId | ( | ) |
Gets id of document
Definition at line 135 of file StoredDocument.java.
String cz.vutbr.fit.knot.annotations.entity.StoredDocument.getName | ( | ) |
Gets file name of document
Definition at line 217 of file StoredDocument.java.
User cz.vutbr.fit.knot.annotations.entity.StoredDocument.getOwner | ( | ) |
Gets document owner
Definition at line 253 of file StoredDocument.java.
String cz.vutbr.fit.knot.annotations.entity.StoredDocument.getType | ( | ) |
Gets file type of document
Definition at line 235 of file StoredDocument.java.
String cz.vutbr.fit.knot.annotations.entity.StoredDocument.getUri | ( | ) |
Gets URI of document
Definition at line 153 of file StoredDocument.java.
int cz.vutbr.fit.knot.annotations.entity.StoredDocument.hashCode | ( | ) |
Definition at line 285 of file StoredDocument.java.
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setAdded | ( | Date | added | ) |
Sets date of document addition
added | Date of document addition |
Definition at line 190 of file StoredDocument.java.
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setContent | ( | String | content | ) |
Sets textual content of document
content | Textual content of document |
Definition at line 280 of file StoredDocument.java.
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setGroup | ( | UserGroup | group | ) |
Sets user group to which this document belongs
group | User group to which this document belongs |
Definition at line 208 of file StoredDocument.java.
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setId | ( | Integer | id | ) |
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setName | ( | String | name | ) |
Sets file name of document
name | File name of document |
Definition at line 226 of file StoredDocument.java.
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setOwner | ( | User | owner | ) |
Sets document owner
owner | Document owner |
Definition at line 262 of file StoredDocument.java.
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setType | ( | String | type | ) |
Sets file type of document
type | File type of document |
Definition at line 244 of file StoredDocument.java.
void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setUri | ( | String | uri | ) |
Sets URI of document
uri | URI of document |
Definition at line 172 of file StoredDocument.java.
String cz.vutbr.fit.knot.annotations.entity.StoredDocument.toString | ( | ) |
Definition at line 311 of file StoredDocument.java.
|
private |
Date of document addition
Definition at line 73 of file StoredDocument.java.
|
private |
Document content
Definition at line 86 of file StoredDocument.java.
|
private |
User group to which this document belongs
Definition at line 95 of file StoredDocument.java.
|
private |
Id of user group to which this document belongs
Definition at line 81 of file StoredDocument.java.
|
private |
Document id
Definition at line 56 of file StoredDocument.java.
|
private |
File name of document
Definition at line 64 of file StoredDocument.java.
|
private |
Owner of document (user)
Definition at line 91 of file StoredDocument.java.
|
private |
Id of document owner
Definition at line 77 of file StoredDocument.java.
|
staticprivate |
Definition at line 50 of file StoredDocument.java.
|
private |
File type of document
Definition at line 68 of file StoredDocument.java.
|
private |
URI of document
Definition at line 60 of file StoredDocument.java.