Interface MutableEntityConfiguration<T>

All Superinterfaces:
org.springframework.core.AttributeAccessor, ConfigurableEntityViewRegistry, EntityConfiguration<T>, EntityViewRegistry, com.foreach.across.core.support.ReadableAttributes, com.foreach.across.core.support.WritableAttributes
All Known Implementing Classes:
EntityConfigurationImpl

public interface MutableEntityConfiguration<T> extends EntityConfiguration<T>, com.foreach.across.core.support.WritableAttributes, ConfigurableEntityViewRegistry
Manageable version of a EntityConfiguration, implementations must allow the configuration to be modified through this interface, without changing the core properties like EntityConfiguration.getEntityType() and EntityConfiguration.getName().
Since:
1.0.0
Author:
Arne Vandamme
  • Method Details

    • setDisplayName

      void setDisplayName(String displayName)
      Set the default display name for this entity type.
      Parameters:
      displayName - value
    • setHidden

      void setHidden(boolean hidden)
      Should this configuration be shown in UI implementations?
      Parameters:
      hidden - true if this configuration should not be shown in UI implementations
    • setEntityModel

      void setEntityModel(EntityModel<T,Serializable> entityModel)
      Set the EntityModel for interacting with the entity repository. Required for auto-generated administration UI.
      Parameters:
      entityModel - instance
    • setPropertyRegistry

      void setPropertyRegistry(MutableEntityPropertyRegistry propertyRegistry)
      Set the property registry for this configuration.
      Parameters:
      propertyRegistry - instancce
    • setEntityMessageCodeResolver

      void setEntityMessageCodeResolver(EntityMessageCodeResolver entityMessageCodeResolver)
      Set the message code resolver.
      Parameters:
      entityMessageCodeResolver - instance
    • setAllowableActionsBuilder

      void setAllowableActionsBuilder(EntityConfigurationAllowableActionsBuilder allowableActionsBuilder)
      Set the builder for the AllowableActions of this entity configuration.
      Parameters:
      allowableActionsBuilder - instance
    • association

      MutableEntityAssociation association(String name)
      Retrieve a named association as a MutableEntityAssociation.
      Specified by:
      association in interface EntityConfiguration<T>
      Parameters:
      name - of the association
      Returns:
      mutable instance of the association (or null if non existing)
    • getPropertyRegistry

      MutableEntityPropertyRegistry getPropertyRegistry()
      Get the property registry as a MutableEntityPropertyRegistry.
      Specified by:
      getPropertyRegistry in interface EntityConfiguration<T>
      Returns:
      mutable instance of the property registry
    • createAssociation

      MutableEntityAssociation createAssociation(String name)
      Register a new association with a specific name. Should return any already existing association with that name.
      Parameters:
      name - of the association
      Returns:
      mutable instance of the association
    • getAllowableActionsBuilder

      EntityConfigurationAllowableActionsBuilder getAllowableActionsBuilder()
      Returns:
      the allowable actions builder instance