|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.opensmus.MUSGroup
public class MUSGroup
Field Summary | |
---|---|
java.util.Vector<MUSAttribute> |
m_attributelist
|
boolean |
m_enabled
|
java.lang.String |
m_name
|
boolean |
m_persists
|
int |
m_userlimit
|
Constructor Summary | |
---|---|
MUSGroup(MUSMovie initmovie,
java.lang.String initname)
|
Method Summary | |
---|---|
void |
addAttribute(MUSAttribute oneatt)
|
void |
addUser(ServerUser oneuser)
Adds a user to this server group |
void |
checkStructure()
|
MUSAttribute |
getAttribute(java.lang.String attname)
|
ServerUser |
getServerUser(int useridx)
Retrieves a pointer to a ServerUser object representing a user connected to the movie. |
ServerUser |
getServerUser(java.lang.String username)
Retrieves a pointer to a ServerUser object representing a user connected to the movie. |
java.util.Vector<ServerUser> |
getServerUsers()
Returns a list of all the users in the group. |
ServerUser |
getUser(java.lang.String uname)
|
java.util.Vector<java.lang.String> |
getUserNames()
Returns a list of the names of the users in the group. |
void |
logDroppedMsg()
|
java.lang.String |
name()
Returns the name of the group as a String |
boolean |
persists()
Checks if the group is set to persist on the movie even when no users members of it. |
void |
removeAllUsers()
|
void |
removeAttribute(MUSAttribute oneatt)
|
void |
removeUser(ServerUser oneuser)
Removes a user from this server group. |
void |
sendMessage(MUSMessage msg)
Sends a message to all users that are members of this group |
int |
serverUserCount()
Gets the number of users in this group. |
void |
setpersists(boolean persistflag)
Toggles the group persistent flag for this group. |
void |
setuserLimit(int level)
Sets the maximum number of users allowed to join this group. |
LValue |
srvcmd_getAllUsersCount()
|
LValue |
srvcmd_getAttributeNames()
|
LValue |
srvcmd_getUserCount()
|
LValue |
srvcmd_getUsers()
|
LValue |
srvcmd_handleAttributeMessage(MUSMessage reply,
java.lang.String attrcommand,
LPropList msgattributes)
|
int |
userLimit()
Returns the maximum number of users allowed to join this group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String m_name
public java.util.Vector<MUSAttribute> m_attributelist
public boolean m_enabled
public boolean m_persists
public int m_userlimit
Constructor Detail |
---|
public MUSGroup(MUSMovie initmovie, java.lang.String initname)
Method Detail |
---|
public void addUser(ServerUser oneuser) throws MUSErrorCode
ServerGroup
addUser
in interface ServerGroup
oneuser
- ServerUser object to be added
MUSErrorCode
public void removeUser(ServerUser oneuser)
ServerGroup
removeUser
in interface ServerGroup
oneuser
- ServerUser object to be removedpublic void checkStructure()
public void addAttribute(MUSAttribute oneatt)
public void removeAttribute(MUSAttribute oneatt)
public MUSAttribute getAttribute(java.lang.String attname) throws AttributeNotFoundException
AttributeNotFoundException
public void logDroppedMsg()
public LValue srvcmd_handleAttributeMessage(MUSMessage reply, java.lang.String attrcommand, LPropList msgattributes)
public LValue srvcmd_getAllUsersCount()
public LValue srvcmd_getUsers()
public LValue srvcmd_getAttributeNames()
public LValue srvcmd_getUserCount()
public ServerUser getUser(java.lang.String uname) throws UserNotFoundException
UserNotFoundException
public void removeAllUsers()
public ServerUser getServerUser(java.lang.String username) throws UserNotFoundException
ServerGroup
getServerUser
in interface ServerGroup
username
- String with the name of the user to be returned
UserNotFoundException
public ServerUser getServerUser(int useridx) throws UserNotFoundException
ServerGroup
getServerUser
in interface ServerGroup
useridx
- index of the user to be returned
UserNotFoundException
public java.util.Vector<java.lang.String> getUserNames()
ServerGroup
getUserNames
in interface ServerGroup
public java.util.Vector<ServerUser> getServerUsers()
ServerGroup
getServerUsers
in interface ServerGroup
public int serverUserCount()
ServerGroup
serverUserCount
in interface ServerGroup
public void sendMessage(MUSMessage msg)
ServerGroup
sendMessage
in interface ServerGroup
msg
- Message to sendpublic java.lang.String name()
ServerGroup
name
in interface ServerGroup
public int userLimit()
ServerGroup
userLimit
in interface ServerGroup
public void setuserLimit(int level)
ServerGroup
setuserLimit
in interface ServerGroup
level
- the number of users allowed to join the group, or -1 for unlimited userspublic boolean persists()
ServerGroup
persists
in interface ServerGroup
public void setpersists(boolean persistflag)
ServerGroup
setpersists
in interface ServerGroup
persistflag
- TRUE if the group needs to persist on the movie, FALSE otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |