public final class BaseEntityInternalAccess
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addHiddenAttributes(SecurityState state,
java.lang.String[] hiddenAttributes) |
static void |
addReadonlyAttributes(SecurityState state,
java.lang.String[] readonlyAttributes) |
static void |
addRequiredAttributes(SecurityState state,
java.lang.String[] requiredAttributes) |
static java.lang.String[] |
getFilteredAttributes(BaseGenericIdEntity entity) |
static java.lang.String[] |
getFilteredAttributes(SecurityState state) |
static com.google.common.collect.Multimap<java.lang.String,java.lang.Object> |
getFilteredData(Entity entity) |
static com.google.common.collect.Multimap<java.lang.String,java.lang.Object> |
getFilteredData(SecurityState state) |
static java.lang.String[] |
getHiddenAttributes(SecurityState state) |
static java.lang.String[] |
getInaccessibleAttributes(Entity entity) |
static java.lang.String[] |
getInaccessibleAttributes(SecurityState state) |
static SecurityState |
getOrCreateSecurityState(Entity entity) |
static java.lang.String[] |
getReadonlyAttributes(SecurityState state) |
static java.lang.String[] |
getRequiredAttributes(SecurityState state) |
static SecurityState |
getSecurityState(Entity entity) |
static byte[] |
getSecurityToken(Entity entity) |
static byte[] |
getSecurityToken(SecurityState state) |
static java.lang.Object |
getValue(Entity entity,
java.lang.String attribute) |
static boolean |
isDetached(BaseGenericIdEntity entity) |
static boolean |
isHiddenOrReadOnly(SecurityState securityState,
java.lang.String attributeName) |
static boolean |
isManaged(BaseGenericIdEntity entity) |
static boolean |
isNew(AbstractNotPersistentEntity entity) |
static boolean |
isNew(BaseGenericIdEntity entity) |
static boolean |
isRemoved(BaseGenericIdEntity entity) |
static boolean |
isRequired(SecurityState securityState,
java.lang.String attributeName) |
static void |
setDetached(BaseGenericIdEntity entity,
boolean detached) |
static void |
setFilteredAttributes(SecurityState state,
java.lang.String[] filteredAttributes) |
static void |
setFilteredData(SecurityState state,
com.google.common.collect.Multimap<java.lang.String,java.lang.Object> filteredData) |
static void |
setHiddenAttributes(SecurityState state,
java.lang.String[] hiddenAttributes) |
static void |
setInaccessibleAttributes(SecurityState state,
java.lang.String[] inaccessibleAttributes) |
static void |
setManaged(BaseGenericIdEntity entity,
boolean managed) |
static void |
setNew(AbstractNotPersistentEntity entity,
boolean _new) |
static void |
setNew(BaseGenericIdEntity entity,
boolean _new) |
static void |
setReadonlyAttributes(SecurityState state,
java.lang.String[] readonlyAttributes) |
static void |
setRemoved(BaseGenericIdEntity entity,
boolean removed) |
static void |
setRequiredAttributes(SecurityState state,
java.lang.String[] requiredAttributes) |
static void |
setSecurityState(Entity entity,
SecurityState securityState) |
static void |
setSecurityToken(SecurityState state,
byte[] securityToken) |
static void |
setValue(Entity entity,
java.lang.String attribute,
java.lang.Object value) |
static void |
setValueForHolder(Entity entity,
java.lang.String attribute,
java.lang.Object value) |
static boolean |
supportsSecurityState(Entity entity) |
public static boolean isNew(AbstractNotPersistentEntity entity)
public static boolean isNew(BaseGenericIdEntity entity)
public static void setNew(AbstractNotPersistentEntity entity, boolean _new)
public static void setNew(BaseGenericIdEntity entity, boolean _new)
public static boolean isManaged(BaseGenericIdEntity entity)
public static void setManaged(BaseGenericIdEntity entity, boolean managed)
public static boolean isDetached(BaseGenericIdEntity entity)
public static void setDetached(BaseGenericIdEntity entity, boolean detached)
public static boolean isRemoved(BaseGenericIdEntity entity)
public static void setRemoved(BaseGenericIdEntity entity, boolean removed)
public static java.lang.String[] getInaccessibleAttributes(Entity entity)
public static java.lang.String[] getInaccessibleAttributes(SecurityState state)
public static void setInaccessibleAttributes(SecurityState state, java.lang.String[] inaccessibleAttributes)
public static com.google.common.collect.Multimap<java.lang.String,java.lang.Object> getFilteredData(Entity entity)
public static com.google.common.collect.Multimap<java.lang.String,java.lang.Object> getFilteredData(SecurityState state)
public static void setFilteredData(SecurityState state, com.google.common.collect.Multimap<java.lang.String,java.lang.Object> filteredData)
public static byte[] getSecurityToken(Entity entity)
public static byte[] getSecurityToken(SecurityState state)
public static void setSecurityToken(SecurityState state, byte[] securityToken)
public static java.lang.String[] getFilteredAttributes(BaseGenericIdEntity entity)
public static java.lang.String[] getFilteredAttributes(SecurityState state)
public static void setFilteredAttributes(SecurityState state, java.lang.String[] filteredAttributes)
public static java.lang.String[] getReadonlyAttributes(SecurityState state)
public static void setReadonlyAttributes(SecurityState state, java.lang.String[] readonlyAttributes)
public static void addReadonlyAttributes(SecurityState state, java.lang.String[] readonlyAttributes)
public static java.lang.String[] getRequiredAttributes(SecurityState state)
public static void setRequiredAttributes(SecurityState state, java.lang.String[] requiredAttributes)
public static void addRequiredAttributes(SecurityState state, java.lang.String[] requiredAttributes)
public static java.lang.String[] getHiddenAttributes(SecurityState state)
public static void setHiddenAttributes(SecurityState state, java.lang.String[] hiddenAttributes)
public static void addHiddenAttributes(SecurityState state, java.lang.String[] hiddenAttributes)
public static boolean supportsSecurityState(Entity entity)
public static SecurityState getSecurityState(Entity entity)
public static void setSecurityState(Entity entity, SecurityState securityState)
public static SecurityState getOrCreateSecurityState(Entity entity)
public static boolean isHiddenOrReadOnly(SecurityState securityState, java.lang.String attributeName)
public static boolean isRequired(SecurityState securityState, java.lang.String attributeName)
public static void setValue(Entity entity, java.lang.String attribute, @Nullable java.lang.Object value)
public static void setValueForHolder(Entity entity, java.lang.String attribute, @Nullable java.lang.Object value)
public static java.lang.Object getValue(Entity entity, java.lang.String attribute)