Package de.xima.fc.gui.model.impex
Class ImportConfigWrapper
- java.lang.Object
-
- de.xima.fc.gui.model.impex.ImportConfigWrapper
-
- All Implemented Interfaces:
IDataContainer,Serializable
public class ImportConfigWrapper extends Object implements IDataContainer
Wrapper class forIEntityImportConfigs so additional information can be displayed.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImportConfigWrapper(IEntityImportConfig<?> config, Locale loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description de.xima.cmn.dao.interfaces.IEntity<Long>getAlternative()Deprecated.IEntityImportConfig<?>getConfig()EEntityConflictResolveActiongetConflictResolveAction()List<String>getDependencyDescriptions()StringgetDisplayName()StringgetEntityStateDescription()org.primefaces.model.menu.MenuModelgetMenuModel()Gets the menu model for the alternatives that can be selected for this entity.StringgetSubtitle()Gets the subtitle of the entity.StringgetTypeDisplayName()StringgetTypeIcon()StringgetTypeTitle()voidignore(ImportConfigWrapper config)Keeps track of import configs which should be ignored, defaults to no-op, implemented in project import config.booleanisAlternativePossible()Determines, whether an alternative is available.booleanisAppointmentTemplate()booleanisClientCounter()booleanisClientFormTheme()booleanisClientResource()booleanisCSSTemplate()Deprecated.booleanisCSVDataSource()booleanisDatabaseConnection()Determines, whether the entity to be selected is a database connection.booleanisDataSource()booleanisDBDataSource()booleanisEntityExists()booleanisHTMLTemplate()booleanisInbox()booleanisJSONDataSource()booleanisPDFResource()booleanisPromptConnection()booleanisPromptQuery()booleanisRelevantForImport()booleanisTemplate()booleanisURLTemplate()booleanisUserGroup()booleanisWordResource()booleanisXMLDataSource()booleanisXSLTemplate()voidsetAlternative(de.xima.cmn.dao.interfaces.IEntity<Long> alternative)Deprecated.voidsetAlternativeId(Long alternativeId)Deprecated.voidsetAlternativeObject(Object alternative)voidsetConfig(IEntityImportConfig<?> config)voidsetConflictResolveAction(EEntityConflictResolveAction conflictResolveAction)voidsetDependencyDescriptions(List<String> dependencyDescriptions)voidsetMenuModel(org.primefaces.model.menu.MenuModel menuModel)Sets the menu model for the alternatives that can be selected for this entity.booleanshouldAlsoBeIgnored(ImportConfigWrapper config)Predicate to indicate that this import config should also be ignored.voidupdateData()Should update data when called
-
-
-
Constructor Detail
-
ImportConfigWrapper
public ImportConfigWrapper(IEntityImportConfig<?> config, Locale loc)
-
-
Method Detail
-
getConfig
public IEntityImportConfig<?> getConfig()
-
getMenuModel
public org.primefaces.model.menu.MenuModel getMenuModel()
Gets the menu model for the alternatives that can be selected for this entity.- Returns:
- Menu model for the alternatives.
-
setMenuModel
public void setMenuModel(org.primefaces.model.menu.MenuModel menuModel)
Sets the menu model for the alternatives that can be selected for this entity.- Parameters:
menuModel- Menu model for the alternatives.
-
setConfig
public void setConfig(IEntityImportConfig<?> config)
-
setAlternativeObject
public void setAlternativeObject(Object alternative)
-
getDisplayName
public String getDisplayName()
-
getSubtitle
public String getSubtitle()
Gets the subtitle of the entity. The subtitle contains further details about the entity, in addition to thedisplay name. May be empty if there are no further details.- Returns:
- The subtitle of the entity
-
getTypeDisplayName
public String getTypeDisplayName()
-
getEntityStateDescription
public String getEntityStateDescription()
-
getTypeIcon
public String getTypeIcon()
-
getTypeTitle
public String getTypeTitle()
-
setDependencyDescriptions
public void setDependencyDescriptions(List<String> dependencyDescriptions)
-
getConflictResolveAction
public EEntityConflictResolveAction getConflictResolveAction()
- Returns:
EEntityConflictResolveActionspecifying what to do if the entity already exists
-
setConflictResolveAction
public void setConflictResolveAction(EEntityConflictResolveAction conflictResolveAction)
- Parameters:
conflictResolveAction-EEntityConflictResolveActionspecifying what to do if the entity already exists
-
isEntityExists
public boolean isEntityExists()
-
isRelevantForImport
public boolean isRelevantForImport()
-
isAlternativePossible
public boolean isAlternativePossible()
Determines, whether an alternative is available.- Returns:
- true, if available
-
isUserGroup
public boolean isUserGroup()
-
isInbox
public boolean isInbox()
-
isClientResource
public boolean isClientResource()
-
isPromptQuery
public boolean isPromptQuery()
-
isPromptConnection
public boolean isPromptConnection()
-
isTemplate
public boolean isTemplate()
-
isDataSource
public boolean isDataSource()
-
isPDFResource
public boolean isPDFResource()
-
isWordResource
public boolean isWordResource()
-
isClientFormTheme
public boolean isClientFormTheme()
-
isCSSTemplate
@Deprecated public boolean isCSSTemplate()
Deprecated.
-
isXSLTemplate
public boolean isXSLTemplate()
-
isHTMLTemplate
public boolean isHTMLTemplate()
-
isURLTemplate
public boolean isURLTemplate()
-
isCSVDataSource
public boolean isCSVDataSource()
-
isXMLDataSource
public boolean isXMLDataSource()
-
isJSONDataSource
public boolean isJSONDataSource()
-
isDBDataSource
public boolean isDBDataSource()
-
isAppointmentTemplate
public boolean isAppointmentTemplate()
-
isClientCounter
public boolean isClientCounter()
-
isDatabaseConnection
public boolean isDatabaseConnection()
Determines, whether the entity to be selected is a database connection.- Returns:
- true, if database connection
-
updateData
public void updateData()
Description copied from interface:IDataContainerShould update data when called- Specified by:
updateDatain interfaceIDataContainer
-
shouldAlsoBeIgnored
public boolean shouldAlsoBeIgnored(ImportConfigWrapper config)
Predicate to indicate that this import config should also be ignored.- Parameters:
config- the config to be ignored- Returns:
- true, if this config should also be ignored
-
ignore
public void ignore(ImportConfigWrapper config)
Keeps track of import configs which should be ignored, defaults to no-op, implemented in project import config.- Parameters:
config- config to be ignored
-
getAlternative
@Deprecated public de.xima.cmn.dao.interfaces.IEntity<Long> getAlternative()
Deprecated.
-
setAlternative
@Deprecated public void setAlternative(de.xima.cmn.dao.interfaces.IEntity<Long> alternative)
Deprecated.
-
setAlternativeId
@Deprecated public void setAlternativeId(Long alternativeId)
Deprecated.
-
-