public class CollaborationInfoEx extends java.lang.Object implements CollaborationInfo
CollaborationInfo.CollaborationEvent, CollaborationInfo.CollaborationEventListener
Modifier and Type | Field and Description |
---|---|
protected java.util.List<CollaborationInfo.CollaborationEventListener> |
eventListeners |
Constructor and Description |
---|
CollaborationInfoEx() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(CollaborationInfo.CollaborationEventListener listener)
Event Mechanism
|
boolean |
addUsername(java.lang.String username,
java.lang.String oldUsername)
add username and remove old username
|
java.util.Set<java.lang.String> |
getUsedUsernames(java.lang.String bookName)
return username of users which are using book "bookName"
|
java.lang.String |
getUsername(java.lang.String originName)
return a username which doesn't duplicate with others
|
boolean |
isUsernameExist(java.lang.String username)
ask if username is existing
|
void |
removeRelationship(java.lang.String username)
remove books having relationship to username
|
void |
removeUsername(java.lang.String username)
remove username
|
void |
setRelationship(java.lang.String username,
Book book)
set relationship between username and book
|
protected java.util.List<CollaborationInfo.CollaborationEventListener> eventListeners
public void setRelationship(java.lang.String username, Book book)
CollaborationInfo
setRelationship
in interface CollaborationInfo
public void removeRelationship(java.lang.String username)
CollaborationInfo
removeRelationship
in interface CollaborationInfo
public boolean isUsernameExist(java.lang.String username)
CollaborationInfo
isUsernameExist
in interface CollaborationInfo
public boolean addUsername(java.lang.String username, java.lang.String oldUsername)
CollaborationInfo
addUsername
in interface CollaborationInfo
public void removeUsername(java.lang.String username)
CollaborationInfo
removeUsername
in interface CollaborationInfo
public java.util.Set<java.lang.String> getUsedUsernames(java.lang.String bookName)
CollaborationInfo
getUsedUsernames
in interface CollaborationInfo
public java.lang.String getUsername(java.lang.String originName)
CollaborationInfo
getUsername
in interface CollaborationInfo
public void addEvent(CollaborationInfo.CollaborationEventListener listener)
CollaborationInfo
addEvent
in interface CollaborationInfo
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.