Interface ShareResource
- All Known Subinterfaces:
ShareResourceDir, ShareResourceDirContents, ShareResourceFile
- All Known Implementing Classes:
ShareResourceDirContentsImpl, ShareResourceDirContentsImpl.shareNode, ShareResourceDirImpl, ShareResourceFileImpl, ShareResourceFileOrDirImpl, ShareResourceImpl
public interface ShareResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanvoiddelete()voiddelete(boolean force) getAttribute(TorrentAttribute attribute) get the defined attributes for this resourcegetName()intgetType()booleanbooleanvoidvoidvoidsetAttribute(TorrentAttribute attribute, String value) voidsetProperties(Map<String, String> props, boolean internal)
-
Field Details
-
ST_FILE
static final int ST_FILE- See Also:
-
ST_DIR
static final int ST_DIR- See Also:
-
ST_DIR_CONTENTS
static final int ST_DIR_CONTENTS- See Also:
-
-
Method Details
-
getType
int getType() -
getName
String getName() -
delete
-
delete
-
setAttribute
-
getAttribute
- Parameters:
attribute-- Returns:
- null if no value defined
-
getAttributes
-
getProperties
-
setProperties
-
isPersistent
boolean isPersistent() -
canBeDeleted
-
isDeleted
boolean isDeleted() -
getParent
ShareResourceDirContents getParent()
-