public void addToFavoriteList(CmsContainerPageRpcContext context, String clientId) throws CmsRpcException {

        try {
            ensureSession();
            List<CmsContainerElementBean> list = OpenCms.getADEManager().getFavoriteList(getCmsObject());
            CmsResource containerPage = getCmsObject().readResource(context.getPageStructureId());
            updateFavoriteRecentList(containerPage, clientId, list);
            OpenCms.getADEManager().saveFavoriteList(getCmsObject(), list);
        } catch (Throwable e) {
            error(e);
        }
    }
public void addToFavoriteList ( CmsContainerPageRpcContext context , String clientId ) throws CmsRpcException { try { ensureSession ( ) ; List < CmsContainerElementBean > list = OpenCms . getADEManager ( ) . getFavoriteList ( getCmsObject ( ) ) ; CmsResource containerPage = getCmsObject ( ) . readResource ( context . getPageStructureId ( ) ) ; updateFavoriteRecentList ( containerPage , clientId , list ) ; OpenCms . getADEManager ( ) . saveFavoriteList ( getCmsObject ( ) , list ) ; } catch ( Throwable e ) { error ( e ) ; } }
@see org.opencms.ade.containerpage.shared.rpc.I_CmsContainerpageService#addToFavoriteList(org.opencms.ade.containerpage.shared.CmsContainerPageRpcContext, java.lang.String)