/** * Helper method to get the request value without falling back to the provided * default value. * * @return <code>null</code> if no such request value is present */ @Nullable protected final ICommonsList <String> getRequestValuesWithoutDefault () { return getParams ().getAsStringList (getFieldName (), null); }
/** * Get the value of the request - optionally falling back to the provided * default value if no such request parameter is present * * @return A single request value as string. */ @Nonnull public final ICommonsList <String> getRequestValues () { return getParams ().getAsStringList (getFieldName (), getDefaultValues ()); }
/** * In case multiple request parameters with the same value are present (e.g. * multi-selects or checkboxes) this method retrieves all request values. If * no such request value is present a list with one entry (the default value) * is returned, in case the default value is non-empty * * @return A list of simple request values with the same key or * <code>null</code> if no such request parameter is present and no * default value was provided */ @Nullable @Deprecated public final ICommonsList <String> getRequestValueAsList () { ICommonsList <String> aDefault = null; final String sDefaultValue = getDefaultValue (); if (StringHelper.hasText (sDefaultValue)) aDefault = new CommonsArrayList <> (sDefaultValue); return getParams ().getAsStringList (getFieldName (), aDefault); }
.getAsStringList (FIELD_ROLES) : aSelectedObject.getAllContainedRoleIDs (); final HCRoleForUserGroupSelect aSelect = new HCRoleForUserGroupSelect (new RequestField (FIELD_ROLES), aRoleIDs);
.getAsStringList (FIELD_ROLES) : aSelectedObject.getAllContainedRoleIDs (); final HCRoleForUserGroupSelect aSelect = new HCRoleForUserGroupSelect (new RequestField (FIELD_ROLES), aRoleIDs);
final String sName = aWPEC.params ().getAsString (FIELD_NAME); final String sDescription = aWPEC.params ().getAsString (FIELD_DESCRIPTION); final ICommonsCollection <String> aRoleIDs = aWPEC.params ().getAsStringList (FIELD_ROLES); final RoleManager aRoleMgr = PhotonSecurityManager.getRoleMgr (); final UserGroupManager aUserGroupMgr = PhotonSecurityManager.getUserGroupMgr ();
final String sName = aWPEC.params ().getAsString (FIELD_NAME); final String sDescription = aWPEC.params ().getAsString (FIELD_DESCRIPTION); final ICommonsCollection <String> aRoleIDs = aWPEC.params ().getAsStringList (FIELD_ROLES); final RoleManager aRoleMgr = PhotonSecurityManager.getRoleMgr (); final UserGroupManager aUserGroupMgr = PhotonSecurityManager.getUserGroupMgr ();
final ICommonsCollection <String> aUserGroupIDs = bIsAdministrator ? aUserGroupMgr.getAllUserGroupIDsWithAssignedUser (aSelectedObject.getID ()) : aWPEC.params () .getAsStringList (FIELD_USERGROUPS);
final ICommonsCollection <String> aUserGroupIDs = bIsAdministrator ? aUserGroupMgr.getAllUserGroupIDsWithAssignedUser (aSelectedObject.getID ()) : aWPEC.params () .getAsStringList (FIELD_USERGROUPS);
.getAsStringList (FIELD_USERGROUPS) : aUserGroupMgr.getAllUserGroupIDsWithAssignedUser (aSelectedObject.getID ()); final HCUserGroupForUserSelect aSelect = new HCUserGroupForUserSelect (new RequestField (FIELD_USERGROUPS),
.getAsStringList (FIELD_USERGROUPS) : aUserGroupMgr.getAllUserGroupIDsWithAssignedUser (aSelectedObject.getID ()); final HCUserGroupForUserSelect aSelect = new HCUserGroupForUserSelect (new RequestField (FIELD_USERGROUPS),