Package org.apache.ofbiz.service
Class ModelPermission
java.lang.Object
org.apache.ofbiz.service.ModelPermission
- All Implemented Interfaces:
Serializable
Service Permission Model Class
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevalPermission
(DispatchContext dctx, Map<String, ? extends Object> context) Eval permission map.Gets action.static int
static int
static int
Gets permission service.void
Sets action.void
Sets auth.void
setNameOrRole
(String nameOrRole) Sets name or role.void
setPermissionMainAction
(String permissionMainAction) Sets permission main action.void
setPermissionRequireNewTransaction
(boolean permissionRequireNewTransaction) Sets permission require new transaction.void
setPermissionResourceDesc
(String permissionResourceDesc) Sets permission resource desc.void
setPermissionReturnErrorOnFailure
(boolean permissionReturnErrorOnFailure) Sets permission return error on failure.void
setPermissionServiceName
(String permissionServiceName) Sets permission service name.void
setPermissionType
(int permissionType) Sets permission type.void
setServiceModel
(ModelService serviceModel) Sets service model.toString()
-
Constructor Details
-
ModelPermission
public ModelPermission()
-
-
Method Details
-
toString
-
evalPermission
public Map<String,Object> evalPermission(DispatchContext dctx, Map<String, ? extends Object> context) Eval permission map.- Parameters:
dctx
- the dctxcontext
- the context- Returns:
- the map
-
setPermissionServiceName
Sets permission service name.- Parameters:
permissionServiceName
- the permission service name
-
setPermissionType
public void setPermissionType(int permissionType) Sets permission type.- Parameters:
permissionType
- the permission type
-
setPermissionMainAction
Sets permission main action.- Parameters:
permissionMainAction
- the permission main action
-
setPermissionResourceDesc
Sets permission resource desc.- Parameters:
permissionResourceDesc
- the permission resource desc
-
setPermissionRequireNewTransaction
public void setPermissionRequireNewTransaction(boolean permissionRequireNewTransaction) Sets permission require new transaction.- Parameters:
permissionRequireNewTransaction
- the permission require new transaction
-
setPermissionReturnErrorOnFailure
public void setPermissionReturnErrorOnFailure(boolean permissionReturnErrorOnFailure) Sets permission return error on failure.- Parameters:
permissionReturnErrorOnFailure
- the permission return error on failure
-
setNameOrRole
Sets name or role.- Parameters:
nameOrRole
- the name or role
-
setAction
Sets action.- Parameters:
action
- the action
-
getPERMISSION
public static int getPERMISSION() -
getEntityPermission
public static int getEntityPermission() -
getAction
Gets action.- Returns:
- the action
-
setAuth
Sets auth.- Parameters:
auth
- the auth
-
setServiceModel
Sets service model.- Parameters:
serviceModel
- the service model
-
getPermissionService
public static int getPermissionService()Gets permission service.- Returns:
- the permission service
-