T
- type of entitypublic class SetupAttributeAccessEvent<T extends Entity>
extends org.springframework.context.ApplicationEvent
implements org.springframework.core.ResolvableTypeProvider
SetupAttributeAccessHandler
s to receive the entity instance and to return
resulting access information.
Use addHidden(String)
, addReadOnly(String)
and addRequired(String)
methods to write
appropriate attribute names.
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.String> |
hiddenAttributes |
protected java.util.Set<java.lang.String> |
readonlyAttributes |
protected java.util.Set<java.lang.String> |
requiredAttributes |
Constructor and Description |
---|
SetupAttributeAccessEvent(T entity) |
Modifier and Type | Method and Description |
---|---|
SetupAttributeAccessEvent |
addHidden(java.lang.String attributeName) |
SetupAttributeAccessEvent |
addReadOnly(java.lang.String attributeName) |
SetupAttributeAccessEvent |
addRequired(java.lang.String attributeName) |
T |
getEntity()
Entity instance in managed state.
|
java.util.Set<java.lang.String> |
getHiddenAttributes() |
java.util.Set<java.lang.String> |
getReadonlyAttributes() |
java.util.Set<java.lang.String> |
getRequiredAttributes() |
org.springframework.core.ResolvableType |
getResolvableType()
Kept for compatibility with the previous implementation based on Spring application events.
|
protected java.util.Set<java.lang.String> readonlyAttributes
protected java.util.Set<java.lang.String> hiddenAttributes
protected java.util.Set<java.lang.String> requiredAttributes
public SetupAttributeAccessEvent(T entity)
public T getEntity()
@Nullable public java.util.Set<java.lang.String> getReadonlyAttributes()
@Nullable public java.util.Set<java.lang.String> getHiddenAttributes()
@Nullable public java.util.Set<java.lang.String> getRequiredAttributes()
public SetupAttributeAccessEvent addReadOnly(java.lang.String attributeName)
public SetupAttributeAccessEvent addRequired(java.lang.String attributeName)
public SetupAttributeAccessEvent addHidden(java.lang.String attributeName)
public org.springframework.core.ResolvableType getResolvableType()
getResolvableType
in interface org.springframework.core.ResolvableTypeProvider