Class ShareResourceDirContentsImpl
java.lang.Object
com.biglybt.pifimpl.local.sharing.ShareResourceImpl
com.biglybt.pifimpl.local.sharing.ShareResourceDirContentsImpl
- All Implemented Interfaces:
ShareResource
,ShareResourceDirContents
public class ShareResourceDirContentsImpl
extends ShareResourceImpl
implements ShareResourceDirContents
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ShareResource[]
private final byte[]
private final boolean
private final File
Fields inherited from class com.biglybt.pifimpl.local.sharing.ShareResourceImpl
attributes, change_listeners, deletion_listeners, hasher, manager, parent, type
Fields inherited from interface com.biglybt.pif.sharing.ShareResource
ST_DIR, ST_DIR_CONTENTS, ST_FILE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ShareResourceDirContentsImpl
(ShareManagerImpl _manager, File _dir, boolean _recursive, boolean _personal, Map<String, String> _properties, boolean _async_check) protected
ShareResourceDirContentsImpl
(ShareManagerImpl _manager, File _dir, boolean _recursive, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
protected List
checkConsistency
(File dir) protected void
protected static ShareResourceImpl
deserialiseResource
(ShareManagerImpl manager, Map map) getName()
getRoot()
boolean
protected void
serialiseResource
(Map map) void
setProperties
(Map<String, String> props, boolean internal) Methods inherited from class com.biglybt.pifimpl.local.sharing.ShareResourceImpl
addChangeListener, addDeletionListener, delete, delete, delete, deleteTorrent, fireChangeEvent, getAttribute, getAttributes, getFingerPrint, getFingerPrintSupport, getNewTorrentLocation, getParent, getTorrentFile, getType, inheritAttributes, isDeleted, isPersistent, readTorrent, removeChangeListener, removeDeletionListener, setAttribute, setParent, writeTorrent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.pif.sharing.ShareResource
addChangeListener, addDeletionListener, delete, delete, getAttribute, getAttributes, getParent, getType, isDeleted, isPersistent, removeChangeListener, removeDeletionListener, setAttribute
-
Field Details
-
root
-
recursive
private final boolean recursive -
properties
-
personal_key
private final byte[] personal_key -
children
-
-
Constructor Details
-
Method Details
-
canBeDeleted
- Specified by:
canBeDeleted
in interfaceShareResource
- Specified by:
canBeDeleted
in classShareResourceImpl
- Throws:
ShareResourceDeletionVetoException
-
checkConsistency
- Specified by:
checkConsistency
in classShareResourceImpl
- Throws:
ShareException
-
checkConsistency
- Throws:
ShareException
-
deleteInternal
protected void deleteInternal()- Overrides:
deleteInternal
in classShareResourceImpl
-
serialiseResource
- Overrides:
serialiseResource
in classShareResourceImpl
-
getName
- Specified by:
getName
in interfaceShareResource
-
getRoot
- Specified by:
getRoot
in interfaceShareResourceDirContents
-
isRecursive
public boolean isRecursive()- Specified by:
isRecursive
in interfaceShareResourceDirContents
-
getChildren
- Specified by:
getChildren
in interfaceShareResourceDirContents
- Overrides:
getChildren
in classShareResourceImpl
-
getProperties
- Specified by:
getProperties
in interfaceShareResource
-
setProperties
- Specified by:
setProperties
in interfaceShareResource
-