Package io.keikai.app

Interface CollaborationInfo

    • 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