public class CollaborationInfoEx extends java.lang.Object implements CollaborationInfo, java.io.Serializable
CollaborationInfo.CollaborationEvent, CollaborationInfo.CollaborationEventListener| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<CollaborationInfo.CollaborationEventListener> |
eventListeners |
| Constructor and Description |
|---|
CollaborationInfoEx() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(CollaborationInfo.CollaborationEventListener listener)
Event Mechanism
|
boolean |
addUsername(java.lang.String username,
java.lang.String oldUsername)
add username and remove old username
|
java.util.Set<java.lang.String> |
getUsedUsernames(java.lang.String bookName)
return username of users which are using book "bookName"
|
java.lang.String |
getUsername(java.lang.String originName)
return a username which doesn't duplicate with others
|
boolean |
isUsernameExist(java.lang.String username)
ask if username is existing
|
void |
removeRelationship(java.lang.String username)
remove books having relationship to username
|
void |
removeUsername(java.lang.String username)
remove username
|
void |
setRelationship(java.lang.String username,
Book book)
set relationship between username and book
|
protected java.util.List<CollaborationInfo.CollaborationEventListener> eventListeners
public void setRelationship(java.lang.String username,
Book book)
CollaborationInfosetRelationship in interface CollaborationInfopublic void removeRelationship(java.lang.String username)
CollaborationInforemoveRelationship in interface CollaborationInfopublic boolean isUsernameExist(java.lang.String username)
CollaborationInfoisUsernameExist in interface CollaborationInfopublic boolean addUsername(java.lang.String username,
java.lang.String oldUsername)
CollaborationInfoaddUsername in interface CollaborationInfopublic void removeUsername(java.lang.String username)
CollaborationInforemoveUsername in interface CollaborationInfopublic java.util.Set<java.lang.String> getUsedUsernames(java.lang.String bookName)
CollaborationInfogetUsedUsernames in interface CollaborationInfopublic java.lang.String getUsername(java.lang.String originName)
CollaborationInfogetUsername in interface CollaborationInfopublic void addEvent(CollaborationInfo.CollaborationEventListener listener)
CollaborationInfoaddEvent in interface CollaborationInfoCopyright © 2005-2010 Potix Corporation. All Rights Reserved.