Package com.im.df.api.capabilities
Interface DFDataEditCapability
-
- All Superinterfaces:
DFCapability
public interface DFDataEditCapability extends DFCapability
This capability can be added toDFEntityor just to specificDFFields. When it's present user interface should reflect the status of selected object (e.g. disable/enable instert row action, etc.).This interface is or is going to be used for:
- admin can prevent data in a specific column/table to be editable by normal users
- entities based on DB VIEWs can prevent editing data using this capability
- in the future IJC version this interface can be used partly for "fine grain security"
If this capability is not present in entity or field it's supposed that everything is editable.
- Since:
- 3.0
- Author:
- Petr Hamernik
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDFDataEditCapability.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisOperationAllowed(DFDataEditCapability.Type type)Is a given type of operation allowed?voidsetOperationAllowed(DFDataEditCapability.Type type, boolean allowed, com.im.commons.progress.DFEnvironmentRW env)Sets new editable flag for the specified type of operation.
-
-
-
Method Detail
-
setOperationAllowed
void setOperationAllowed(DFDataEditCapability.Type type, boolean allowed, com.im.commons.progress.DFEnvironmentRW env)
Sets new editable flag for the specified type of operation.- Parameters:
type- Type of the operationallowed- Is this operation type allowed for thisDFItemenv-
-
isOperationAllowed
boolean isOperationAllowed(DFDataEditCapability.Type type)
Is a given type of operation allowed?- Parameters:
type- The type of operation- Returns:
trueif data can be modified using this operation
-
-