Class ModelPermission

  • All Implemented Interfaces:
    java.io.Serializable

    public class ModelPermission
    extends java.lang.Object
    implements java.io.Serializable
    Service Permission Model Class
    See Also:
    Serialized Form
    • Constructor Detail

      • ModelPermission

        public ModelPermission()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • evalPermission

        public java.util.Map<java.lang.String,​java.lang.Object> evalPermission​(DispatchContext dctx,
                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Eval permission map.
        Parameters:
        dctx - the dctx
        context - the context
        Returns:
        the map
      • setPermissionServiceName

        public void setPermissionServiceName​(java.lang.String permissionServiceName)
        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

        public void setPermissionMainAction​(java.lang.String permissionMainAction)
        Sets permission main action.
        Parameters:
        permissionMainAction - the permission main action
      • setPermissionResourceDesc

        public void setPermissionResourceDesc​(java.lang.String permissionResourceDesc)
        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

        public void setNameOrRole​(java.lang.String nameOrRole)
        Sets name or role.
        Parameters:
        nameOrRole - the name or role
      • setAction

        public void setAction​(java.lang.String action)
        Sets action.
        Parameters:
        action - the action
      • getPERMISSION

        public static int getPERMISSION()
      • getEntityPermission

        public static int getEntityPermission()
      • getAction

        public java.lang.String getAction()
        Gets action.
        Returns:
        the action
      • setAuth

        public void setAuth​(java.lang.Boolean auth)
        Sets auth.
        Parameters:
        auth - the auth
      • setServiceModel

        public void setServiceModel​(ModelService serviceModel)
        Sets service model.
        Parameters:
        serviceModel - the service model
      • getPermissionService

        public static int getPermissionService()
        Gets permission service.
        Returns:
        the permission service