4A Server -
2.0
|
Class representing StoryScope for needs of SEC Interface. More...
Public Member Functions | |
StoryScope () | |
StoryScope (Integer id, String name, String clientURL) | |
Integer | getId () |
void | setId (Integer id) |
String | getName () |
void | setName (String name) |
String | getClientURL () |
void | setClientURL (String clientURL) |
List< Object > | getSubscriptions () |
ArrayList< SubscribedSource > | getSubscribedList () |
ArrayList< SubscribedSource > | getUnsubscribedList () |
String | getMessagesAdd () |
String | getMessagesChange () |
String | getMessagesDelete () |
void | deleteMessages () |
void | addSavedMessages (ArrayList< String > messages, int type) |
int | hashCode () |
boolean | equals (Object object) |
String | toString () |
Static Public Member Functions | |
static String | messagesToString (ArrayList< String > messages) |
Private Member Functions | |
ArrayList< SubscribedSource > | makeArrayList (List< SubscribedItem > objList) |
ArrayList< String > | savedMessagesToAL (List< SavedMessage > savedMessages) |
List< SavedMessage > | getSavedMessagesFromDB (int typeOfMessages) |
Private Attributes | |
Integer | id |
String | name |
String | clientURL |
ArrayList< String > | addMessages = null |
ArrayList< String > | changeMessages = null |
ArrayList< String > | deleteMessages = null |
Class representing StoryScope for needs of SEC Interface.
This class represent StoryScope for needs of SEC Interface.
Definition at line 48 of file StoryScope.java.
cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.StoryScope | ( | ) |
Constructor
Definition at line 78 of file StoryScope.java.
cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.StoryScope | ( | Integer | id, |
String | name, | ||
String | clientURL | ||
) |
Constructor
id | ID of StoryScope |
name | name of StoryScope |
clientURL | URL address of SEC Client |
Definition at line 88 of file StoryScope.java.
void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.addSavedMessages | ( | ArrayList< String > | messages, |
int | type | ||
) |
Add new undelivered messages (one kind of messages) to StoryScope into database
messages | list of undelivered messages |
type | of messages |
Definition at line 253 of file StoryScope.java.
void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.deleteMessages | ( | ) |
Method deletes all messages with annotations for current StoryScope.
Definition at line 225 of file StoryScope.java.
boolean cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.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 283 of file StoryScope.java.
String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getClientURL | ( | ) |
Gets URL addres of SEC Client of StoryScope
Definition at line 135 of file StoryScope.java.
Integer cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getId | ( | ) |
Gets id of StoryScope
Definition at line 99 of file StoryScope.java.
String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getMessagesAdd | ( | ) |
Gets string with all messages with added annotations for current StoryScope that can't be delivered before.
Definition at line 198 of file StoryScope.java.
String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getMessagesChange | ( | ) |
Gets string with all messages with changed annotations for current StoryScope that can't be delivered before.
Definition at line 208 of file StoryScope.java.
String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getMessagesDelete | ( | ) |
Gets string with all messages with deleted annotations for current StoryScope that can't be delivered before.
Definition at line 218 of file StoryScope.java.
String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getName | ( | ) |
Gets name of StoryScope
Definition at line 117 of file StoryScope.java.
|
private |
Method gets saved messages of specific type (and for current StorySapce) from database.
typeOfMessages | type of messages that will be returned |
Definition at line 378 of file StoryScope.java.
ArrayList<SubscribedSource> cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getSubscribedList | ( | ) |
Gets array list of subscribed sources for StoryScope converted to SubscribeSource objects.
Definition at line 168 of file StoryScope.java.
List<Object> cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getSubscriptions | ( | ) |
Gets list of all subscriptions for StoryScope
Definition at line 153 of file StoryScope.java.
ArrayList<SubscribedSource> cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.getUnsubscribedList | ( | ) |
Gets array list of unsubscribed sources for StoryScope converted to SubscribedSource objects.
Definition at line 183 of file StoryScope.java.
int cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.hashCode | ( | ) |
Definition at line 269 of file StoryScope.java.
|
private |
Method converts list of SubscribedItems to ArrayList of SubscribedSources that is used in SEC module and other parts of server.
objList | list of SubscribedItems to convert |
Definition at line 306 of file StoryScope.java.
|
static |
Method convert array strins with messages for StoryScope to one string object that contains all messages.
messages | list of saved messages to convert |
Definition at line 362 of file StoryScope.java.
|
private |
Method convert list of saved messages object to list of strings with messages (string representation of messages) for StoryScope.
savedMessages | list of saved messages to convert |
Definition at line 343 of file StoryScope.java.
void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.setClientURL | ( | String | clientURL | ) |
Sets URL addres of SEC Client of StoryScope
clientURL | URL addres of SEC Client |
Definition at line 144 of file StoryScope.java.
void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.setId | ( | Integer | id | ) |
void cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.setName | ( | String | name | ) |
Sets name of StoryScope
name | Name of StoryScope |
Definition at line 126 of file StoryScope.java.
String cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryScope.toString | ( | ) |
Definition at line 295 of file StoryScope.java.
|
private |
Array of add messages
Definition at line 67 of file StoryScope.java.
|
private |
Array of change messages
Definition at line 70 of file StoryScope.java.
|
private |
URL address of SEC Client
Definition at line 64 of file StoryScope.java.
|
private |
Array of remove messages
Definition at line 73 of file StoryScope.java.
|
private |
ID of StoryScope
Definition at line 54 of file StoryScope.java.
|
private |
Name of StoryScope
Definition at line 59 of file StoryScope.java.