Package io.keikai.app
Interface CollaborationInfo
-
- All Known Implementing Classes:
CollaborationInfoEx
,CollaborationInfoImpl
public interface CollaborationInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CollaborationInfo.CollaborationEvent
static interface
CollaborationInfo.CollaborationEventListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEvent(CollaborationInfo.CollaborationEventListener listener)
Event Mechanismboolean
addUsername(String username, String oldUsername)
add username and remove old usernameSet<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 othersboolean
isUsernameExist(String username)
ask if username is existingvoid
removeRelationship(String username)
remove books having relationship to usernamevoid
removeUsername(String username)
remove usernamevoid
setRelationship(String username, Book book)
set relationship between username and book
-
-
-
Method Detail
-
setRelationship
void setRelationship(String username, Book book)
set relationship between username and book- Parameters:
username
-book
-
-
removeRelationship
void removeRelationship(String username)
remove books having relationship to username- Parameters:
username
-
-
isUsernameExist
boolean isUsernameExist(String username)
ask if username is existing- Parameters:
username
-- Returns:
- true if username has already existed, false otherwise.
-
addUsername
boolean addUsername(String username, String oldUsername)
add username and remove old username- Parameters:
username
-oldUsername
-- Returns:
-
removeUsername
void removeUsername(String username)
remove username- Parameters:
username
-
-
getUsedUsernames
Set<String> getUsedUsernames(String bookName)
return username of users which are using book "bookName"- Parameters:
bookName
-- Returns:
- a set containing usernames
-
getUsername
String getUsername(String originName)
return a username which doesn't duplicate with others- Parameters:
originName
-- Returns:
- unique username
-
addEvent
void addEvent(CollaborationInfo.CollaborationEventListener listener)
Event Mechanism
-
-