Package io.keikai.app
Interface CollaborationInfo
- All Known Implementing Classes:
CollaborationInfoEx,CollaborationInfoImpl
public interface CollaborationInfo
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoidEvent MechanismbooleanaddUsername(String username, String oldUsername) add username and remove old usernamegetUsedUsernames(String bookName) return username of users which are using book "bookName"getUsername(String originName) return a username which doesn't duplicate with othersbooleanisUsernameExist(String username) ask if username is existingvoidremoveRelationship(String username) remove books having relationship to usernamevoidremoveUsername(String username) remove usernamevoidsetRelationship(String username, Book book) set relationship between username and book
-
Method Details
-
setRelationship
set relationship between username and book- Parameters:
username-book-
-
removeRelationship
remove books having relationship to username- Parameters:
username-
-
isUsernameExist
ask if username is existing- Parameters:
username-- Returns:
- true if username has already existed, false otherwise.
-
addUsername
add username and remove old username- Parameters:
username-oldUsername-- Returns:
-
removeUsername
remove username- Parameters:
username-
-
getUsedUsernames
return username of users which are using book "bookName"- Parameters:
bookName-- Returns:
- a set containing usernames
-
getUsername
return a username which doesn't duplicate with others- Parameters:
originName-- Returns:
- unique username
-
addEvent
Event Mechanism
-