|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sharpster.daemon.sharemanagement.ShareMap
Class to contain cross references between files and users.
Constructor Summary | |
ShareMap()
Constructor |
Method Summary | |
boolean |
add(net.jxta.id.ID userID,
net.jxta.id.ID fileID,
int access,
sharpster.common.PluginData pluginData)
Creates a share between a user and a file using the specified access and plugin data. |
net.jxta.id.ID[] |
getAllShares(net.jxta.id.ID userID)
Get all files that are shared to a specified user. |
int |
getShareAccess(net.jxta.id.ID userID,
net.jxta.id.ID fileID)
Returns the access rights for a given share (specified by a user and a file). |
sharpster.common.PluginData |
getSharePluginData(net.jxta.id.ID userID,
net.jxta.id.ID fileID)
Returns the plugin data for a given share (specified by a user and a file). |
boolean |
loadFromFile(java.lang.String filepath)
Saves the share information to the given file. |
boolean |
remove(net.jxta.id.ID userID,
net.jxta.id.ID fileID)
Remove the share that are specified by the userID and the fileID. |
void |
removeAllFiles(net.jxta.id.ID fileID)
Remove all shares that are using the specified file. |
boolean |
saveToFile(java.lang.String filepath)
Saves the share information to the given file. |
boolean |
shareExists(net.jxta.id.ID userID,
net.jxta.id.ID fileID)
Checks if a reference between a user and a file exist (if the share exists). |
void |
synchronizeShares(sharpster.daemon.filemanagement.FileManager fm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShareMap()
Method Detail |
public boolean add(net.jxta.id.ID userID, net.jxta.id.ID fileID, int access, sharpster.common.PluginData pluginData)
public void removeAllFiles(net.jxta.id.ID fileID)
public void synchronizeShares(sharpster.daemon.filemanagement.FileManager fm)
public boolean remove(net.jxta.id.ID userID, net.jxta.id.ID fileID)
public net.jxta.id.ID[] getAllShares(net.jxta.id.ID userID)
public boolean shareExists(net.jxta.id.ID userID, net.jxta.id.ID fileID)
public int getShareAccess(net.jxta.id.ID userID, net.jxta.id.ID fileID)
public sharpster.common.PluginData getSharePluginData(net.jxta.id.ID userID, net.jxta.id.ID fileID)
public boolean saveToFile(java.lang.String filepath)
public boolean loadFromFile(java.lang.String filepath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |