Package org.cyclos.entities.users
Class UserChannel
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.users.UserChannel
-
- All Implemented Interfaces:
Cloneable,ProcessableForDataTranslation,IEntity
@Entity public class UserChannel extends BaseEntity
Stores a preference for a user to access an specific channel
-
-
Constructor Summary
Constructors Constructor Description UserChannel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelgetChannel()NetworkgetNetwork()Returns the network this entity belongs toUsergetUser()booleanisEnabled()voidsetChannel(Channel channel)voidsetEnabled(boolean enabled)voidsetUser(User user)-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString, toString
-
-
-
-
Method Detail
-
getChannel
public Channel getChannel()
-
getNetwork
public Network getNetwork()
Description copied from class:NetworkedEntityReturns the network this entity belongs to- Specified by:
getNetworkin classNetworkedEntity
-
getUser
public User getUser()
-
isEnabled
public boolean isEnabled()
-
setChannel
public void setChannel(Channel channel)
-
setEnabled
public void setEnabled(boolean enabled)
-
setUser
public void setUser(User user)
-
-