Class AgencyPlugin
- java.lang.Object
-
- org.pf4j.Plugin
-
- com.openindex.openestate.tool.ImmoToolPlugin
-
- com.openindex.openestate.tool.ImmoToolProjectPlugin
-
- com.openindex.openestate.tool.agency.AgencyPlugin
-
public final class AgencyPlugin extends ImmoToolProjectPlugin
Hauptklasse des Add-Ons, basierend aufImmoToolPlugin.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAgencyPlugin.ContactFormActionShow tab for a contact person.static classAgencyPlugin.ContactTableActionShow table with contact person.static classAgencyPlugin.EstateFormActionShow tab for a property.static classAgencyPlugin.EstateImportActionImport properties from a file.static classAgencyPlugin.EstateSaveActionSave properties to local harddisk.static classAgencyPlugin.EstateTableActionShow table with properties.static classAgencyPlugin.EstateUpdateAttachmentsActionUpdate attachments of properties.static classAgencyPlugin.ExportActionLaunch property export process.static classAgencyPlugin.ExportCancelActionCancel currently running property exports.static classAgencyPlugin.ExportEnableActionEnable / disable an export interface.static classAgencyPlugin.ExportFormActionShow tab for a property export.static classAgencyPlugin.ExportJobCancelActionCancel a currently running export process.static classAgencyPlugin.ExportJobErrorActionShow exception of a failed export process.static classAgencyPlugin.ExportJobRestartActionRestart a failed export process.static classAgencyPlugin.ExportLoadActionImport an export interface into the application.static classAgencyPlugin.ExportObjectsActionShow dialog for management of exportable properties.static classAgencyPlugin.ExportRemoveActionRemove an export interface.static classAgencyPlugin.ExportSaveActionSave an export interface to harddisk.static classAgencyPlugin.ExportTableActionShow table with export interfaces.static classAgencyPlugin.ExportUnlockActionUnlock an export interface.static classAgencyPlugin.ExportViewLogActionShow protocols for an export interface.static classAgencyPlugin.SearchDialogActionShow dialog for a property search.static classAgencyPlugin.SearchRemoveActionRemove a property search.static classAgencyPlugin.SidebarRefreshActionRefresh property view in sidebar.static classAgencyPlugin.SidebarSelectActionShow property view in sidebar.
-
Field Summary
Fields Modifier and Type Field Description static StringAPP_LAST_IMPORT_LOCATIONstatic StringIDstatic StringIMAGE_FORMATstatic intIMAGE_PREVIEW_HEIGHTstatic intIMAGE_PREVIEW_WIDTHstatic StringUSER_FAVOURED_SEARCH_IDS
-
Constructor Summary
Constructors Constructor Description AgencyPlugin(org.pf4j.PluginWrapper wrapper)
-
Method Summary
-
Methods inherited from class com.openindex.openestate.tool.ImmoToolProjectPlugin
getApiVersion, isAllowed, isUsable
-
Methods inherited from class com.openindex.openestate.tool.ImmoToolPlugin
getAuthor, getAuthorWebsite, getDescriptor, getLicense, getProperty, getProperty, getRequiredPlugins, getResourcePath, getVersion, getWebsite, isLicensed
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
IMAGE_FORMAT
public static final String IMAGE_FORMAT
- See Also:
- Constant Field Values
-
IMAGE_PREVIEW_WIDTH
public static final int IMAGE_PREVIEW_WIDTH
- See Also:
- Constant Field Values
-
IMAGE_PREVIEW_HEIGHT
public static final int IMAGE_PREVIEW_HEIGHT
- See Also:
- Constant Field Values
-
APP_LAST_IMPORT_LOCATION
public static final String APP_LAST_IMPORT_LOCATION
- See Also:
- Constant Field Values
-
USER_FAVOURED_SEARCH_IDS
public static final String USER_FAVOURED_SEARCH_IDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDbAgencyExtension
public static DbAgencyExtension getDbAgencyExtension()
-
getDescription
public String getDescription()
- Overrides:
getDescriptionin classImmoToolPlugin
-
getIcon
public ImageIcon getIcon()
- Overrides:
getIconin classImmoToolPlugin
-
getId
public String getId()
- Specified by:
getIdin classImmoToolPlugin
-
getImageMaxHeight
public static int getImageMaxHeight()
-
getImageMaxWidth
public static int getImageMaxWidth()
-
getInstance
public static AgencyPlugin getInstance()
-
getLastExportLocation
public static File getLastExportLocation()
-
getLastImageLocation
public static File getLastImageLocation()
-
getLastImportLocation
public static File getLastImportLocation()
-
getLocales
public static Locale[] getLocales()
-
getLocalesWithLanguagePack
public static Locale[] getLocalesWithLanguagePack()
-
getPermissions
public ProjectPermission[] getPermissions()
- Specified by:
getPermissionsin classImmoToolProjectPlugin
-
getPhpExportVersion
public String getPhpExportVersion()
-
getPhpExport2Version
public String getPhpExport2Version()
-
getRequiredProcedures
public String[] getRequiredProcedures()
- Specified by:
getRequiredProceduresin classImmoToolProjectPlugin
-
getRequiredViews
public String[] getRequiredViews()
- Specified by:
getRequiredViewsin classImmoToolProjectPlugin
-
getResourceAsStream
public static InputStream getResourceAsStream(String name)
-
getResourceImage
public static BufferedImage getResourceImage(String name, int size)
-
getTitle
public String getTitle()
- Overrides:
getTitlein classImmoToolPlugin
-
getUninstallQuery
public String getUninstallQuery(String driverName) throws IOException
- Specified by:
getUninstallQueryin classImmoToolProjectPlugin- Throws:
IOException
-
getUpdateHandler
public DbUpdateHandler getUpdateHandler(String driverName)
- Specified by:
getUpdateHandlerin classImmoToolProjectPlugin
-
install
public void install(Connection c, DbExtension dbExtension, String driverName, boolean importDefaultData) throws SQLException, IOException
- Overrides:
installin classImmoToolProjectPlugin- Throws:
SQLExceptionIOException
-
isAllowed
public boolean isAllowed(ImmoToolProject project)
- Overrides:
isAllowedin classImmoToolProjectPlugin
-
isApproximatedAttributes
public static boolean isApproximatedAttributes()
-
isUsable
public boolean isUsable(ImmoToolProject project)
- Overrides:
isUsablein classImmoToolProjectPlugin
-
isUserAllowedTo
public static boolean isUserAllowedTo(AgencyPermission permission)
-
isUserAllowedTo
public static boolean isUserAllowedTo(AgencyPermission permission, ImmoToolProject project)
-
loadSettings
public static void loadSettings(ImmoToolProject project) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
loadSettings
public static void loadSettings(ImmoToolProject project, Connection c) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
repair
public void repair(Connection c, AbstractDbDriver driver) throws SQLException
- Overrides:
repairin classImmoToolProjectPlugin- Throws:
SQLException
-
saveSettings
public static void saveSettings(ImmoToolProject project) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
saveSettings
public static void saveSettings(Connection c, DbUser user, DbExtension dbExtension) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
saveSettings
public static void saveSettings(Connection c, DbUser user, DbExtension dbExtension, DbAgencyExtension dbAgencyExtension) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
setApproximatedAttributes
public static void setApproximatedAttributes(boolean approximatedAttributes)
-
setDbAgencyExtension
public static void setDbAgencyExtension(DbAgencyExtension dbAgencyExtension)
-
setImageMaxHeight
public static void setImageMaxHeight(int imageMaxHeight)
-
setImageMaxWidth
public static void setImageMaxWidth(int imageMaxWidth)
-
setLastExportLocation
public static void setLastExportLocation(File lastExportLocation)
-
setLastImageLocation
public static void setLastImageLocation(File lastImageLocation)
-
setLastImportLocation
public static void setLastImportLocation(File file)
-
setLocales
public static void setLocales(Locale[] locales)
-
start
public void start()
- Overrides:
startin classorg.pf4j.Plugin
-
stop
public void stop()
- Overrides:
stopin classorg.pf4j.Plugin
-
unloadSettings
public static void unloadSettings()
-
-