public function testCanSetRollUpForNewAccountLatestActivitiesForPortletView()
 {
     LatestActivitiesPortletPersistentConfigUtil::setForCurrentUserByPortletIdAndKey(static::$accountLatestActivitiesPortletId, static::CONFIG_KEY, '');
     $this->assertTrue(LatestActivitiesPortletPersistentConfigUtil::getForCurrentUserByPortletIdAndKey(static::$accountLatestActivitiesPortletId, static::CONFIG_KEY) === '');
     LatestActivitiesPortletPersistentConfigUtil::setForCurrentUserByPortletIdAndKey(static::$accountLatestActivitiesPortletId, static::CONFIG_KEY, '1');
     $this->assertTrue(LatestActivitiesPortletPersistentConfigUtil::getForCurrentUserByPortletIdAndKey(static::$accountLatestActivitiesPortletId, static::CONFIG_KEY) === '1');
 }
 public static function setShouldSlideToSecondPanelForCurrentUser($portletId, $shouldSlideToSecondPanel)
 {
     assert('is_bool($shouldSlideToSecondPanel)');
     LatestActivitiesPortletPersistentConfigUtil::setForCurrentUserByPortletIdAndKey($portletId, static::SHOULD_SLIDE_TO_FIRST_PANEL_KEY_NAME, !$shouldSlideToSecondPanel);
 }
 public static function processBeforeDelete($portletId)
 {
     foreach (static::$persistantUserPortletConfigs as $persistantUserConfigItem) {
         $property = static::resolvePropertyName($persistantUserConfigItem);
         if (method_exists(get_called_class(), $property) && static::$property()) {
             LatestActivitiesPortletPersistentConfigUtil::setForCurrentUserByPortletIdAndKey($portletId, $persistantUserConfigItem, null);
         }
     }
 }