4A Server -
2.0
|
Class representing subscription. More...
Public Member Functions | |
Subscription () | |
Subscription (Integer id) | |
Subscription (Integer id, String name, int userId) | |
Integer | getId () |
void | setId (Integer id) |
String | getName () |
void | setName (String name) |
int | getUserId () |
void | setUserId (int userId) |
List< Source > | getSubscriptions () |
void | addSubscription (Source subscription) |
void | setSubscriptions (List< Source > subscriptions) |
User | getUser () |
void | setUser (User user) |
Integer | getTmpId () |
void | setTmpId (Integer tmpId) |
int | getGroupId () |
void | setGroupId (int groupId) |
UserGroup | getGroup () |
void | setGroup (UserGroup group) |
int | hashCode () |
boolean | equals (Object object) |
String | toString () |
String | toXMLStringV2 () |
String | toXMLStringV2 (String tagName) |
ArrayList< SubscribedSource > | getNegSourcesAsSubSource () |
ArrayList< SubscribedSource > | getSourcesAsSubSource (boolean polarity) |
Private Attributes | |
Integer | id |
String | name |
int | userId |
int | groupId |
List< Source > | subscriptions |
User | user |
UserGroup | group |
Integer | tmpId |
Class representing subscription.
Class representing subscription.
Definition at line 55 of file Subscription.java.
cz.vutbr.fit.knot.annotations.entity.Subscription.Subscription | ( | ) |
Constructor
Definition at line 104 of file Subscription.java.
cz.vutbr.fit.knot.annotations.entity.Subscription.Subscription | ( | Integer | id | ) |
cz.vutbr.fit.knot.annotations.entity.Subscription.Subscription | ( | Integer | id, |
String | name, | ||
int | userId | ||
) |
Constructor
id | id of subscription |
name | name of subscription |
userId | id of author of subscription |
Definition at line 123 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.addSubscription | ( | Source | subscription | ) |
Add source of subscription.
subscription | source of subscription |
Definition at line 197 of file Subscription.java.
boolean cz.vutbr.fit.knot.annotations.entity.Subscription.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 301 of file Subscription.java.
UserGroup cz.vutbr.fit.knot.annotations.entity.Subscription.getGroup | ( | ) |
Gets user group to which this subscription belongs
Definition at line 273 of file Subscription.java.
int cz.vutbr.fit.knot.annotations.entity.Subscription.getGroupId | ( | ) |
Gets id of user group to which this subscription belongs
Definition at line 255 of file Subscription.java.
Integer cz.vutbr.fit.knot.annotations.entity.Subscription.getId | ( | ) |
Gets id of subscription.
Definition at line 134 of file Subscription.java.
String cz.vutbr.fit.knot.annotations.entity.Subscription.getName | ( | ) |
Gets name of subscription.
Definition at line 152 of file Subscription.java.
ArrayList<SubscribedSource> cz.vutbr.fit.knot.annotations.entity.Subscription.getNegSourcesAsSubSource | ( | ) |
Gets negative subscription as list of SubscribedSources.
Definition at line 402 of file Subscription.java.
ArrayList<SubscribedSource> cz.vutbr.fit.knot.annotations.entity.Subscription.getSourcesAsSubSource | ( | boolean | polarity | ) |
Gets positive subscription as list of SubscribedSources.
Definition at line 420 of file Subscription.java.
List<Source> cz.vutbr.fit.knot.annotations.entity.Subscription.getSubscriptions | ( | ) |
Gets list of subscriptions.
Definition at line 188 of file Subscription.java.
Integer cz.vutbr.fit.knot.annotations.entity.Subscription.getTmpId | ( | ) |
Gets temporary id of subscription.
Definition at line 237 of file Subscription.java.
User cz.vutbr.fit.knot.annotations.entity.Subscription.getUser | ( | ) |
Gets author of subscription.
Definition at line 219 of file Subscription.java.
int cz.vutbr.fit.knot.annotations.entity.Subscription.getUserId | ( | ) |
Gets id of author of subscription.
Definition at line 170 of file Subscription.java.
int cz.vutbr.fit.knot.annotations.entity.Subscription.hashCode | ( | ) |
Definition at line 287 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setGroup | ( | UserGroup | group | ) |
Sets user group to which this subscription belongs
group | User group to which this subscription belongs |
Definition at line 282 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setGroupId | ( | int | groupId | ) |
Sets id of user group to which this subscription belongs
groupId | Id of user group to which this subscription belongs |
Definition at line 264 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setId | ( | Integer | id | ) |
Sets id of subscription.
id | id of subscription |
Definition at line 143 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setName | ( | String | name | ) |
Sets name of subscription.
name | name of subscription |
Definition at line 161 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setSubscriptions | ( | List< Source > | subscriptions | ) |
Sets list of subscriptions.
subscriptions | list of subscriptions |
Definition at line 210 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setTmpId | ( | Integer | tmpId | ) |
Sets temporary id of subscription
tmpId | temporary id of subscription |
Definition at line 246 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setUser | ( | User | user | ) |
Sets author of subscription.
user | author of subscription |
Definition at line 228 of file Subscription.java.
void cz.vutbr.fit.knot.annotations.entity.Subscription.setUserId | ( | int | userId | ) |
Sets id of author of subscription.
userId | id of author of subscription |
Definition at line 179 of file Subscription.java.
String cz.vutbr.fit.knot.annotations.entity.Subscription.toString | ( | ) |
Definition at line 313 of file Subscription.java.
String cz.vutbr.fit.knot.annotations.entity.Subscription.toXMLStringV2 | ( | ) |
Returns serialized informations about subscription in XML for protocol version 2.
Definition at line 323 of file Subscription.java.
String cz.vutbr.fit.knot.annotations.entity.Subscription.toXMLStringV2 | ( | String | tagName | ) |
Returns serialized informations about subscription in XML for protocol version 2 with specific tag name.
tagName | name of tag |
Definition at line 362 of file Subscription.java.
|
private |
Group of subscription
Definition at line 95 of file Subscription.java.
|
private |
Id of group of subscription
Definition at line 80 of file Subscription.java.
|
private |
Id of subscription
Definition at line 61 of file Subscription.java.
|
private |
Name of subscription
Definition at line 68 of file Subscription.java.
|
private |
List of subscriptions
Definition at line 85 of file Subscription.java.
|
private |
Definition at line 99 of file Subscription.java.
|
private |
Author of subscription (user)
Definition at line 90 of file Subscription.java.
|
private |
Id of author of subscription
Definition at line 74 of file Subscription.java.