org.gudy.azureus2.plugins.sharing
Interface ShareManager
- All Known Implementing Classes: 
 - ShareManagerImpl
 
public interface ShareManager
 
 
PR_PERSONAL
static final java.lang.String PR_PERSONAL
- See Also:
 - Constant Field Values
 
PR_NETWORKS
static final java.lang.String PR_NETWORKS
- See Also:
 - Constant Field Values
 
PR_TAGS
static final java.lang.String PR_TAGS
- See Also:
 - Constant Field Values
 
PR_USER_DATA
static final java.lang.String PR_USER_DATA
- See Also:
 - Constant Field Values
 
PR_PERSISTENT
static final java.lang.String PR_PERSISTENT
- See Also:
 - Constant Field Values
 
initialise
void initialise()
                throws ShareException
- Throws:
 ShareException
 
isInitialising
boolean isInitialising()
 
getShares
ShareResource[] getShares()
 
getShare
ShareResource getShare(java.io.File file_or_dir)
- returns null if share not defined
- Parameters:
 file_or_dir - 
- Returns:
 
 
 
addFile
ShareResourceFile addFile(java.io.File file)
                          throws ShareException,
                                 ShareResourceDeletionVetoException
- Throws:
 ShareException
ShareResourceDeletionVetoException
 
addFile
ShareResourceFile addFile(java.io.File file,
                          java.util.Map<java.lang.String,java.lang.String> properties)
                          throws ShareException,
                                 ShareResourceDeletionVetoException
- Throws:
 ShareException
ShareResourceDeletionVetoException
 
addDir
ShareResourceDir addDir(java.io.File dir)
                        throws ShareException,
                               ShareResourceDeletionVetoException
- Throws:
 ShareException
ShareResourceDeletionVetoException
 
addDir
ShareResourceDir addDir(java.io.File dir,
                        java.util.Map<java.lang.String,java.lang.String> properties)
                        throws ShareException,
                               ShareResourceDeletionVetoException
- Throws:
 ShareException
ShareResourceDeletionVetoException
 
addDirContents
ShareResourceDirContents addDirContents(java.io.File dir,
                                        boolean recursive)
                                        throws ShareException,
                                               ShareResourceDeletionVetoException
- Throws:
 ShareException
ShareResourceDeletionVetoException
 
addDirContents
ShareResourceDirContents addDirContents(java.io.File dir,
                                        boolean recursive,
                                        java.util.Map<java.lang.String,java.lang.String> properties)
                                        throws ShareException,
                                               ShareResourceDeletionVetoException
- Throws:
 ShareException
ShareResourceDeletionVetoException
 
cancelOperation
void cancelOperation()
- adding shares can take a long time due to the torrent creation process. The current
 activity can be interrupted by calling this function, in which case the original 
 activity will fail with a ShareException
 
 
addListener
void addListener(ShareManagerListener listener)
 
removeListener
void removeListener(ShareManagerListener listener)