Class EntityAssociationImpl
java.lang.Object
com.foreach.across.core.support.AttributeSupport
com.foreach.across.modules.entity.registry.EntityAssociationImpl
- All Implemented Interfaces:
com.foreach.across.core.support.ReadableAttributes,com.foreach.across.core.support.WritableAttributes,ConfigurableEntityViewRegistry,EntityAssociation,EntityViewRegistry,MutableEntityAssociation,org.springframework.core.AttributeAccessor
public class EntityAssociationImpl
extends com.foreach.across.core.support.AttributeSupport
implements MutableEntityAssociation
- Author:
- Arne Vandamme
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.foreach.across.modules.entity.registry.EntityAssociation
EntityAssociation.ParentDeleteMode, EntityAssociation.Type -
Constructor Summary
ConstructorsConstructorDescriptionEntityAssociationImpl(String name, MutableEntityConfiguration sourceEntityConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getName()<Y extends EntityViewFactory>
YgetViewFactory(String viewName) String[]booleanbooleanisHidden()voidregisterView(String viewName, EntityViewFactory viewFactory) voidremoveView(String viewName) Remove a view from the registry.voidsetAssociationType(EntityAssociation.Type associationType) voidShould the association be hidden or explicitly shown in the administrative UI.voidsetParentDeleteMode(EntityAssociation.ParentDeleteMode parentDeleteMode) voidsetSourceProperty(EntityPropertyDescriptor sourceProperty) voidsetTargetEntityConfiguration(EntityConfiguration targetEntityConfiguration) voidsetTargetProperty(EntityPropertyDescriptor targetProperty) Methods inherited from class com.foreach.across.core.support.AttributeSupport
attributeMap, attributeNames, getAttribute, getAttribute, getAttribute, hasAttribute, hasAttribute, removeAttribute, removeAttribute, setAttribute, setAttribute, setAttributesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.AttributeAccessor
attributeNames, computeAttribute, getAttribute, hasAttribute, removeAttribute, setAttributeMethods inherited from interface com.foreach.across.core.support.ReadableAttributes
attributeMap, attributeNames, getAttribute, getAttribute, getAttribute, hasAttribute, hasAttributeMethods inherited from interface com.foreach.across.core.support.WritableAttributes
removeAttribute, setAttribute, setAttributes
-
Constructor Details
-
EntityAssociationImpl
-
-
Method Details
-
getAssociationType
- Specified by:
getAssociationTypein interfaceEntityAssociation- Returns:
- type of association
-
setAssociationType
- Specified by:
setAssociationTypein interfaceMutableEntityAssociation
-
setHidden
Description copied from interface:MutableEntityAssociationShould the association be hidden or explicitly shown in the administrative UI. If the property is not set explicitly on the association (or set to null), an association should be hidden if any of its participatingEntityConfigurationinstances is hidden.- Specified by:
setHiddenin interfaceMutableEntityAssociation- Parameters:
hidden- true if should not show in the UI, can be null to revert to default check
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceEntityAssociation- Returns:
- True if the association should be hidden from administrative UI implementations.
-
getName
- Specified by:
getNamein interfaceEntityAssociation
-
getEntityType
- Specified by:
getEntityTypein interfaceEntityAssociation
-
getSourceEntityConfiguration
- Specified by:
getSourceEntityConfigurationin interfaceEntityAssociation
-
setTargetEntityConfiguration
- Specified by:
setTargetEntityConfigurationin interfaceMutableEntityAssociation
-
getTargetEntityConfiguration
- Specified by:
getTargetEntityConfigurationin interfaceEntityAssociation
-
getSourceProperty
- Specified by:
getSourcePropertyin interfaceEntityAssociation
-
setSourceProperty
- Specified by:
setSourcePropertyin interfaceMutableEntityAssociation
-
getTargetProperty
- Specified by:
getTargetPropertyin interfaceEntityAssociation
-
setTargetProperty
- Specified by:
setTargetPropertyin interfaceMutableEntityAssociation
-
getParentDeleteMode
- Specified by:
getParentDeleteModein interfaceEntityAssociation- Returns:
- behaviour in case the parent entity will be deleted but associated entities still exist
-
setParentDeleteMode
- Specified by:
setParentDeleteModein interfaceMutableEntityAssociation
-
hasView
- Specified by:
hasViewin interfaceEntityViewRegistry
-
getViewFactory
- Specified by:
getViewFactoryin interfaceEntityViewRegistry
-
registerView
- Specified by:
registerViewin interfaceConfigurableEntityViewRegistry
-
removeView
Description copied from interface:ConfigurableEntityViewRegistryRemove a view from the registry.- Specified by:
removeViewin interfaceConfigurableEntityViewRegistry- Parameters:
viewName- name of the view
-
getViewNames
- Specified by:
getViewNamesin interfaceEntityViewRegistry
-