Class PluginRepository
java.lang.Object
com.dandymadeproductions.ajqvue.plugin.PluginRepository
- All Implemented Interfaces:
PluginRepositoryInterface
- Direct Known Subclasses:
FILE_PluginRepository,FTP_PluginRepository,HTTP_PluginRepository
The PluginRepository class provides the general framework and link
to the PluginRepository Interface inheritance for all PluginReposities
in the framework. The class defines the aspects that are needed in order
to properly derive a file/network repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected booleanprotected booleanstatic final Stringstatic final Stringstatic final Stringprotected GeneralPropertiesprotected static final intprotected static final intstatic final Stringstatic final Stringprotected booleanprotected Stringprotected static final Stringprotected static final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPluginItem(Plugin pluginItem) voidprotected voiddisplayErrors(String errorString) getName()getPath()String[]booleanreadPluginList(boolean allowRetry) voidreadPluginListException(Exception e, boolean allowRetry) voidrefresh()voidvoidsetOptions(String[] options) voidbooleansetRepository(String path) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.dandymadeproductions.ajqvue.plugin.PluginRepositoryInterface
loadPluginList
-
Field Details
-
generalProperties
-
remoteRepositoryURLString
-
cachedRepositoryURLString
-
cachedRepositoryDirectoryString
-
downloadRepository
protected boolean downloadRepository -
isRepositoryCached
protected boolean isRepositoryCached -
debugMode
protected boolean debugMode -
FILE
- See Also:
-
FTP
- See Also:
-
FTPS
- See Also:
-
HTTP
- See Also:
-
HTTPS
- See Also:
-
UNKNOWN
- See Also:
-
REPOSITORY_PATH_FILE
- See Also:
-
GZIP_MAGIC_1
protected static final int GZIP_MAGIC_1- See Also:
-
GZIP_MAGIC_2
protected static final int GZIP_MAGIC_2- See Also:
-
REPOSITORY_FILENAME
- See Also:
-
REPOSITORY_CACHED_FILE
- See Also:
-
-
Constructor Details
-
PluginRepository
public PluginRepository(boolean downloadRepo)
-
-
Method Details
-
setName
- Specified by:
setNamein interfacePluginRepositoryInterface
-
setPath
- Specified by:
setPathin interfacePluginRepositoryInterface
-
setType
- Specified by:
setTypein interfacePluginRepositoryInterface
-
setOptions
- Specified by:
setOptionsin interfacePluginRepositoryInterface
-
setRepository
- Specified by:
setRepositoryin interfacePluginRepositoryInterface
-
refresh
public void refresh()- Specified by:
refreshin interfacePluginRepositoryInterface
-
readPluginList
public boolean readPluginList(boolean allowRetry) - Specified by:
readPluginListin interfacePluginRepositoryInterface
-
addPluginItem
- Specified by:
addPluginItemin interfacePluginRepositoryInterface
-
clearPluginItems
public void clearPluginItems()- Specified by:
clearPluginItemsin interfacePluginRepositoryInterface
-
getName
- Specified by:
getNamein interfacePluginRepositoryInterface
-
getPath
- Specified by:
getPathin interfacePluginRepositoryInterface
-
getRepositoryType
- Specified by:
getRepositoryTypein interfacePluginRepositoryInterface
-
getRepositoryOptions
- Specified by:
getRepositoryOptionsin interfacePluginRepositoryInterface
-
getPluginItems
- Specified by:
getPluginItemsin interfacePluginRepositoryInterface
-
readPluginListException
-
displayErrors
-