|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sharpster.daemon.sharemanagement.ShareManager
Class responsible for the overall management of file shares.
Constructor Summary | |
ShareManager()
|
Method Summary | |
sharpster.common.ResponseCollection |
checkAccess(sharpster.common.FileCollection files,
java.lang.String user,
int access)
|
sharpster.common.ResponseCollection |
getSharedFiles(java.lang.String user)
|
boolean |
hasDeleteAccess(sharpster.common.FileCollection files,
java.lang.String user)
Check if a user has remove access to the specified files. |
boolean |
hasReadAccess(sharpster.common.FileCollection files,
java.lang.String user)
Check if a user has read access to the specified files. |
boolean |
hasWriteAccess(sharpster.common.FileCollection files,
java.lang.String user)
Check if a user has write access to the specified files. |
void |
initialize(sharpster.daemon.filemanagement.FileManager fm,
sharpster.daemon.usermanagement.UserManager um,
sharpster.daemon.groupmanagement.GroupController gc)
|
boolean |
loadFromFile(java.lang.String filepath)
|
void |
removeSharesWithFile(net.jxta.id.ID fileID)
|
boolean |
saveToFile(java.lang.String filepath)
|
sharpster.common.ResponseCollection |
shareFiles(sharpster.common.FileCollection files,
boolean recursive)
Store the specified file share. |
void |
synchronizeShares()
|
sharpster.common.ResponseCollection |
unshareFiles(sharpster.common.FileCollection files,
boolean recursive)
|
sharpster.common.ResponseCollection |
viewFileSharing()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShareManager()
Method Detail |
public void initialize(sharpster.daemon.filemanagement.FileManager fm, sharpster.daemon.usermanagement.UserManager um, sharpster.daemon.groupmanagement.GroupController gc)
public sharpster.common.ResponseCollection shareFiles(sharpster.common.FileCollection files, boolean recursive)
public sharpster.common.ResponseCollection unshareFiles(sharpster.common.FileCollection files, boolean recursive)
public void removeSharesWithFile(net.jxta.id.ID fileID)
public void synchronizeShares()
public sharpster.common.ResponseCollection getSharedFiles(java.lang.String user)
public sharpster.common.ResponseCollection viewFileSharing()
public sharpster.common.ResponseCollection checkAccess(sharpster.common.FileCollection files, java.lang.String user, int access)
public boolean hasReadAccess(sharpster.common.FileCollection files, java.lang.String user)
public boolean hasWriteAccess(sharpster.common.FileCollection files, java.lang.String user)
public boolean hasDeleteAccess(sharpster.common.FileCollection files, java.lang.String user)
public boolean loadFromFile(java.lang.String filepath)
public boolean saveToFile(java.lang.String filepath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |