public class ChannelActionDAO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
SUBSCRIBE |
static java.lang.Long |
UNSUBSCRIBE |
Constructor and Description |
---|
ChannelActionDAO() |
Modifier and Type | Method and Description |
---|---|
void |
addSubscribeChannelId(java.lang.Long cid)
add a channel for subscription
|
void |
addSubscribeName(java.lang.String nameIn)
Add a channel name to subscribe (for display purposes only)
|
void |
addUnsubcribeName(java.lang.String nameIn)
Add an ubsubscribe channel name
|
void |
addUnsubscribeChannelId(java.lang.Long cid)
Add an unsubscribe channel
|
java.lang.Long |
getId()
What Server are we going to act on?
|
java.lang.String |
getName()
What is the affected Server's name?
|
java.util.Set<java.lang.Long> |
getSubscribeChannelIds()
What channels are we trying to subscribe this system to?
|
java.util.Set<java.lang.String> |
getSubscribeNames()
get the list of channel names to subscribe
|
java.util.Set<java.lang.String> |
getUnsubcribeNames()
get the names of the channels for unsubscribing
|
java.util.Set<java.lang.Long> |
getUnsubscribeChannelIds()
What channels are we trying to unsubscribe this system from?
|
boolean |
isEmtpy()
Are there any unsubscribe or subscribe channels
|
void |
setId(java.lang.Long serverIn)
Set which Server we're affecting
|
void |
setName(java.lang.String nameIn)
What's the Server's name?
|
public static final java.lang.Long SUBSCRIBE
public static final java.lang.Long UNSUBSCRIBE
public java.lang.Long getId()
public void setId(java.lang.Long serverIn)
serverIn
- to set.public void setName(java.lang.String nameIn)
nameIn
- the namepublic java.lang.String getName()
public java.util.Set<java.lang.Long> getSubscribeChannelIds()
public void addSubscribeName(java.lang.String nameIn)
nameIn
- the nameInpublic java.util.Set<java.lang.String> getSubscribeNames()
public void addUnsubcribeName(java.lang.String nameIn)
nameIn
- the namepublic java.util.Set<java.lang.String> getUnsubcribeNames()
public void addSubscribeChannelId(java.lang.Long cid)
cid
- the channel idpublic java.util.Set<java.lang.Long> getUnsubscribeChannelIds()
public void addUnsubscribeChannelId(java.lang.Long cid)
cid
- the channel idpublic boolean isEmtpy()