| java.lang.Object org.ofbiz.security.Security org.ofbiz.security.OFBizSecurity
Method Summary | |
public Iterator | findUserLoginSecurityGroupByUserLoginId(String userLoginId) | public GenericDelegator | getDelegator() | public boolean | hasEntityPermission(String entity, String action, HttpSession session) | public boolean | hasEntityPermission(String entity, String action, GenericValue userLogin) | public boolean | hasPermission(String permission, HttpSession session) | public boolean | hasPermission(String permission, GenericValue userLogin) | public boolean | hasRolePermission(String application, String action, String primaryKey, String role, HttpSession session) | public boolean | hasRolePermission(String application, String action, String primaryKey, String role, GenericValue userLogin) | public boolean | hasRolePermission(String application, String action, String primaryKey, List roles, HttpSession session) | public boolean | hasRolePermission(String application, String action, String primaryKey, List roles, GenericValue userLogin) | public boolean | hasRolePermission(String application, String action, String entityName, EntityCondition condition, GenericValue userLogin) Like hasEntityPermission above, this checks the specified action, as well as for "_ADMIN" to allow for simplified
general administration permission, but also checks action_ROLE and validates the user is a member for the
application.
Parameters: application - The name of the application corresponding to the desired permission. Parameters: action - The action on the application corresponding to the desired permission. Parameters: entityName - The name of the role entity to use for validation. Parameters: fields - Map of primary key fields to lookup in entityName. Parameters: userLogin - The userLogin object for user to check against. | public boolean | securityGroupPermissionExists(String groupId, String permission) | public void | setDelegator(GenericDelegator delegator) |
simpleRoleEntity | final public static Map simpleRoleEntity(Code) | | |
OFBizSecurity | protected OFBizSecurity()(Code) | | |
hasRolePermission | public boolean hasRolePermission(String application, String action, String entityName, EntityCondition condition, GenericValue userLogin)(Code) | | Like hasEntityPermission above, this checks the specified action, as well as for "_ADMIN" to allow for simplified
general administration permission, but also checks action_ROLE and validates the user is a member for the
application.
Parameters: application - The name of the application corresponding to the desired permission. Parameters: action - The action on the application corresponding to the desired permission. Parameters: entityName - The name of the role entity to use for validation. Parameters: fields - Map of primary key fields to lookup in entityName. Parameters: userLogin - The userLogin object for user to check against. Returns true if the currently logged in userLogin has the specified permission, otherwise returns false. |
Methods inherited from org.ofbiz.security.Security | abstract public Iterator findUserLoginSecurityGroupByUserLoginId(String userLoginId)(Code)(Java Doc) public GenericDelegator getDelegator()(Code)(Java Doc) abstract public boolean hasEntityPermission(String entity, String action, HttpSession session)(Code)(Java Doc) abstract public boolean hasEntityPermission(String entity, String action, GenericValue userLogin)(Code)(Java Doc) abstract public boolean hasPermission(String permission, HttpSession session)(Code)(Java Doc) abstract public boolean hasPermission(String permission, GenericValue userLogin)(Code)(Java Doc) abstract public boolean hasRolePermission(String application, String action, String primaryKey, String role, HttpSession session)(Code)(Java Doc) abstract public boolean hasRolePermission(String application, String action, String primaryKey, String role, GenericValue userLogin)(Code)(Java Doc) abstract public boolean hasRolePermission(String application, String action, String primaryKey, List roles, GenericValue userLogin)(Code)(Java Doc) abstract public boolean hasRolePermission(String application, String action, String primaryKey, List roles, HttpSession session)(Code)(Java Doc) abstract public boolean securityGroupPermissionExists(String groupId, String permission)(Code)(Java Doc) public void setDelegator(GenericDelegator delegator)(Code)(Java Doc)
|
|
|