java.lang.Object
org.apache.openmeetings.db.entity.basic.Client
All Implemented Interfaces:
Serializable, IWsClient, IDataProviderEntity

public class Client extends Object implements IDataProviderEntity, IWsClient
See Also:
  • Constructor Details

    • Client

      public Client(String sessionId, int pageId, User u, String pictureUri)
  • Method Details

    • getSessionId

      public String getSessionId()
      Specified by:
      getSessionId in interface IWsClient
    • getPageId

      public int getPageId()
      Specified by:
      getPageId in interface IWsClient
    • getUser

      public User getUser()
    • updateUser

      public Client updateUser(UserDao dao)
    • getUserId

      public Long getUserId()
    • sameUserId

      public boolean sameUserId(Long userId)
    • getPictureUri

      public String getPictureUri()
    • getUid

      @Nonnull public String getUid()
      Specified by:
      getUid in interface IWsClient
    • getSid

      public String getSid()
    • isSip

      public boolean isSip()
    • clear

      public void clear()
    • hasRight

      public boolean hasRight(Room.Right right)
    • allow

      public Client allow(Room.Right... inRights)
    • allow

      public void allow(Iterable<Room.Right> inRights)
    • deny

      public void deny(Room.Right... inRights)
    • isBroadcasting

      public boolean isBroadcasting()
    • getActivities

      public List<Client.Activity> getActivities()
    • has

      public boolean has(Client.Activity activity)
    • isAllowed

      public boolean isAllowed(Client.Activity a)
    • addStream

      public StreamDesc addStream(Client.StreamType stype, Client.Activity toggle)
    • removeStream

      public StreamDesc removeStream(String inUid)
    • getStreams

      public List<StreamDesc> getStreams()
    • getStream

      public StreamDesc getStream(String inUid)
    • getScreenStream

      public Optional<ScreenStreamDesc> getScreenStream()
    • getCamStreams

      public Stream<WebcamStreamDesc> getCamStreams()
    • getConnectedSince

      public Date getConnectedSince()
    • getId

      public Long getId()
      Specified by:
      getId in interface IDataProviderEntity
    • setId

      public void setId(Long id)
      Specified by:
      setId in interface IDataProviderEntity
    • getRoom

      public Room getRoom()
    • getRoomId

      public Long getRoomId()
    • setRoom

      public Client setRoom(Room room)
    • isCamEnabled

      public boolean isCamEnabled()
    • getCam

      public int getCam()
    • setCam

      public Client setCam(int cam)
    • isMicEnabled

      public boolean isMicEnabled()
    • getMic

      public int getMic()
    • setMic

      public Client setMic(int mic)
    • getWidth

      public int getWidth()
    • setWidth

      public Client setWidth(int width)
    • getHeight

      public int getHeight()
    • setHeight

      public Client setHeight(int height)
    • getRemoteAddress

      public String getRemoteAddress()
    • setRemoteAddress

      public Client setRemoteAddress(String remoteAddress)
    • getServerId

      public String getServerId()
    • setServerId

      public void setServerId(String serverId)
    • toJson

      public com.github.openjson.JSONObject toJson(boolean self)
    • merge

      public void merge(Client c)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object