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

Class representing item of subscripted or unsubscripted sources list. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem:
Collaboration graph

Public Member Functions

Integer getId ()
 
void setId (Integer id)
 
Integer getStoryScopeId ()
 
void setStoryScopeId (Integer id)
 
AnnotType getAnnotationType ()
 
void setAnnotationType (AnnotType type)
 
User getUser ()
 
void setUser (User user)
 
String getSource ()
 
void setSource (String source)
 
int getType ()
 
void setType (int type)
 
int hashCode ()
 
boolean equals (Object object)
 
String toString ()
 

Static Public Attributes

static final int SUBSCRIBED = 0
 
static final int UNSUBSCRIBED = 1
 

Private Attributes

Integer id
 
Integer storyScope
 
AnnotType annotationType
 
User user
 
String source
 
int polarity
 

Detailed Description

Class representing item of subscripted or unsubscripted sources list.

This class represent item of subscripted or unsubscripted sources list and is used for StoryscopeInterfaceModule needs.

Author
Martin Petr (xpetrm05)

Definition at line 47 of file SubscribedItem.java.

Member Function Documentation

boolean cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.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 209 of file SubscribedItem.java.

AnnotType cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.getAnnotationType ( )

Gets annotation type that is subscribed (or unsubscribed)

Returns
Returns instance of class AnnotType with type of annotation or null if isn't fill

Definition at line 127 of file SubscribedItem.java.

Here is the caller graph for this function:

Integer cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.getId ( )

Gets id of subscription

Returns
Returns id of user

Definition at line 91 of file SubscribedItem.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.getSource ( )

Gets source that is subscribed (or unsubscribed)

Returns
Returns instance of class String with URL of source or null if isn't fill

Definition at line 163 of file SubscribedItem.java.

Here is the caller graph for this function:

Integer cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.getStoryScopeId ( )

Gets id of Story Space that sunscription belongs

Returns
Returns id of story space

Definition at line 109 of file SubscribedItem.java.

int cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.getType ( )

Gets type of subscription

Returns
Returns 0 if is unsubscribed or 1 if is subscribed

Definition at line 181 of file SubscribedItem.java.

User cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.getUser ( )

Gets user which is subscribed (or unsubscribed)

Returns
Returns instance of class User with user or null if user isn't fill

Definition at line 145 of file SubscribedItem.java.

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.hashCode ( )

Definition at line 195 of file SubscribedItem.java.

void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.setAnnotationType ( AnnotType  type)

Sets annotation type that is subscribed (or unsubscribed)

Parameters
typeannotation type that is subscribed (or unsubscribed)

Definition at line 136 of file SubscribedItem.java.

void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.setId ( Integer  id)

Sets id of subscription

Parameters
idid of subscription

Definition at line 100 of file SubscribedItem.java.

void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.setSource ( String  source)

Sets source that is subscribed (or unsubscribed)

Parameters
sourcesource that is subscribed (or unsubscribed)

Definition at line 172 of file SubscribedItem.java.

void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.setStoryScopeId ( Integer  id)

Sets id of Story Space that sunscription belongs

Parameters
idid of Story Space that sunscription belongs

Definition at line 118 of file SubscribedItem.java.

void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.setType ( int  type)

Sets type of subscription

Parameters
typetype of subscription

Definition at line 190 of file SubscribedItem.java.

void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.setUser ( User  user)

Sets user which is subscribed (or unsubscribed)

Parameters
useruser which is subscribed (or unsubscribed)

Definition at line 154 of file SubscribedItem.java.

String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.toString ( )

Definition at line 221 of file SubscribedItem.java.

Member Data Documentation

AnnotType cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.annotationType
private

Type of annotation that story space wants (or don't wants) recive

Definition at line 63 of file SubscribedItem.java.

Integer cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.id
private

ID of subscribed item

Definition at line 53 of file SubscribedItem.java.

int cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.polarity
private

Type of subscription (0 = unsubscribed, 1 = subscribed)

Definition at line 78 of file SubscribedItem.java.

String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.source
private

Source which story space wants subscribe or unsubscribe

Definition at line 73 of file SubscribedItem.java.

Integer cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.storyScope
private

ID of story space that item belongs

Definition at line 58 of file SubscribedItem.java.

final int cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.SUBSCRIBED = 0
static

Indicator of subscribed type

Definition at line 81 of file SubscribedItem.java.

final int cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.UNSUBSCRIBED = 1
static

Indicator of unsubscribed type

Definition at line 83 of file SubscribedItem.java.

User cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.SubscribedItem.user
private

User which story space wants subscribe or unsubscribe

Definition at line 68 of file SubscribedItem.java.


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