PushDashboardUtil Class Reference

Static Public Member Functions

static canCurrentUserPushDashboardOrLayout ()
static pushDashboardToUsers (Dashboard $dashboard, $groupsAndUsers)
static pushUserHomeDashboardPortlets (User $user, Dashboard $userDashboard, Dashboard $pushedDashboard)
static resolveDefaultDashboardByUser (Dashboard $dashboard, User $user)
static resolveGroupsAndUsersFromPost ($postData)
static pushLayoutToUsers ($model, $groupsAndUsers)
static pushDetailsAndRelationsViewPortlets (User $user, $model)

Data Fields

const GROUP_PREFIX = 'Group_'
const USER_PREFIX = 'User_'
const HOME_DASHBOARD = 'HomeDashboard'
const DETAILS_AND_RELATIONS_VIEW = 'DetailsAndRelationsView'

Detailed Description

Supportive functions for push dashboard functionality

Definition at line 40 of file PushDashboardUtil.php.


Member Function Documentation

static canCurrentUserPushDashboardOrLayout (  )  [static]

Validates if current user has rights to push dashboard to users

Returns:
bool

Definition at line 54 of file PushDashboardUtil.php.

static pushDashboardToUsers ( Dashboard dashboard,
groupsAndUsers 
) [static]

Push dashboard to users. Synchronizes user's default dashboard portlets to given dashboard portlets

Parameters:
Dashboard $dashboard
$groupsAndUsers 

Definition at line 69 of file PushDashboardUtil.php.

static pushUserHomeDashboardPortlets ( User user,
Dashboard userDashboard,
Dashboard pushedDashboard 
) [static]

Syncs user's dashboard portlets to given dashboard portlets

Parameters:
User $user
Dashboard $userDashboard
Dashboard $pushedDashboard

Definition at line 104 of file PushDashboardUtil.php.

static resolveDefaultDashboardByUser ( Dashboard dashboard,
User user 
) [static]

Returns default dashboard for user. Creates and return default dashboard, if no dashboard exists for user

Parameters:
Dashboard $dashboard
User $user
Returns:
Dashboard
Exceptions:
FailedToSaveModelException 

Definition at line 139 of file PushDashboardUtil.php.

static resolveGroupsAndUsersFromPost ( postData  )  [static]

Resolves type-ahead post data to groups and users array

Parameters:
$postData 
Returns:
array

Definition at line 166 of file PushDashboardUtil.php.

static pushLayoutToUsers ( model,
groupsAndUsers 
) [static]

For a given model, contact or account or opportunity, pushes DetailsAndRelationsView layout for provided user

Parameters:
$model 
$groupsAndUsers 

Definition at line 195 of file PushDashboardUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Sep 22 07:11:06 2019