4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.entity.StoredDocument Class Reference

Class representing stored document. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.entity.StoredDocument:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.entity.StoredDocument:
Collaboration graph

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
 

Detailed Description

Class representing stored document.

Class representing stored document

Author
idytrych

Definition at line 49 of file StoredDocument.java.

Constructor & Destructor Documentation

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)

Constructor

Parameters
iddocument id

Definition at line 108 of file StoredDocument.java.

cz.vutbr.fit.knot.annotations.entity.StoredDocument.StoredDocument ( String  name,
String  type,
User  owner,
UserGroup  group,
String  content 
)

Constructor

Parameters
nameFile name
typeFile type of document
ownerDocument owner
groupUser group to which this document belongs
contentDocument content

Definition at line 121 of file StoredDocument.java.

Member Function Documentation

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.

Parameters
objectObject to compare with
Returns
If object is same type and have same id, returns true, false otherwise

Definition at line 299 of file StoredDocument.java.

Date cz.vutbr.fit.knot.annotations.entity.StoredDocument.getAdded ( )

Gets date of document addition

Returns
Returns 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

Returns
Returns 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

Returns
Generated URI of document

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

Returns
Returns 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

Returns
Returns 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

Returns
Returns file name of document

Definition at line 217 of file StoredDocument.java.

User cz.vutbr.fit.knot.annotations.entity.StoredDocument.getOwner ( )

Gets document owner

Returns
Returns document owner

Definition at line 253 of file StoredDocument.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.StoredDocument.getType ( )

Gets file type of document

Returns
Returns 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

Returns
Returns 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

Parameters
addedDate 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

Parameters
contentTextual 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

Parameters
groupUser 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)

Sets id of document

Parameters
idId of document

Definition at line 144 of file StoredDocument.java.

void cz.vutbr.fit.knot.annotations.entity.StoredDocument.setName ( String  name)

Sets file name of document

Parameters
nameFile 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

Parameters
ownerDocument 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

Parameters
typeFile 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

Parameters
uriURI 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.

Member Data Documentation

Date cz.vutbr.fit.knot.annotations.entity.StoredDocument.added
private

Date of document addition

Definition at line 73 of file StoredDocument.java.

String cz.vutbr.fit.knot.annotations.entity.StoredDocument.content
private

Document content

Definition at line 86 of file StoredDocument.java.

UserGroup cz.vutbr.fit.knot.annotations.entity.StoredDocument.group
private

User group to which this document belongs

Definition at line 95 of file StoredDocument.java.

int cz.vutbr.fit.knot.annotations.entity.StoredDocument.groupId
private

Id of user group to which this document belongs

Definition at line 81 of file StoredDocument.java.

Integer cz.vutbr.fit.knot.annotations.entity.StoredDocument.id
private

Document id

Definition at line 56 of file StoredDocument.java.

String cz.vutbr.fit.knot.annotations.entity.StoredDocument.name
private

File name of document

Definition at line 64 of file StoredDocument.java.

User cz.vutbr.fit.knot.annotations.entity.StoredDocument.owner
private

Owner of document (user)

Definition at line 91 of file StoredDocument.java.

int cz.vutbr.fit.knot.annotations.entity.StoredDocument.ownerId
private

Id of document owner

Definition at line 77 of file StoredDocument.java.

final long cz.vutbr.fit.knot.annotations.entity.StoredDocument.serialVersionUID = 1L
staticprivate

Definition at line 50 of file StoredDocument.java.

String cz.vutbr.fit.knot.annotations.entity.StoredDocument.type
private

File type of document

Definition at line 68 of file StoredDocument.java.

String cz.vutbr.fit.knot.annotations.entity.StoredDocument.uri
private

URI of document

Definition at line 60 of file StoredDocument.java.


The documentation for this class was generated from the following file: