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