public interface CollaborationInfo
Modifier and Type | Interface and Description |
---|---|
static class |
CollaborationInfo.CollaborationEvent |
static interface |
CollaborationInfo.CollaborationEventListener |
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
|
void setRelationship(String username, Book book)
username
- book
- void removeRelationship(String username)
username
- boolean isUsernameExist(String username)
username
- boolean addUsername(String username, String oldUsername)
username
- oldUsername
- void removeUsername(String username)
username
- Set<String> getUsedUsernames(String bookName)
bookName
- String getUsername(String originName)
originName
- void addEvent(CollaborationInfo.CollaborationEventListener listener)
Copyright © 2020. All rights reserved.