Package com.liferay.portal.ejb

Examples of com.liferay.portal.ejb.PortletPK


            Company company = PublicCompanyFactory.getDefaultCompany();

            for ( Portlet portlet : portlets ) {

                //PK
                PortletPK id = portlet.getPrimaryKey();
                //Cache key
                String scpId = PortalUtil.class.getName() + "." + com.dotcms.repackage.javax.portlet.Portlet.class.getName();
                if ( !portlet.isWARFile() ) {
                    scpId += "." + company.getCompanyId();
                }

                //Clean-up the caches
                portletManager.removePortletFromPool( company.getCompanyId(), id.getPortletId() );
                //Clean-up the caches
                Map map = (Map) SimpleCachePool.get( scpId );
                if ( map != null ) {
                    map.remove( portlet.getPortletId() );
                }
View Full Code Here


    _roles = roles;
    _active = active;
  }

  public PortletPK getPrimaryKey() {
    return new PortletPK(_portletId, _groupId, _companyId);
  }
View Full Code Here

    if (obj == null) {
      return -1;
    }

    Portlet portlet = (Portlet)obj;
    PortletPK pk = portlet.getPrimaryKey();

    return getPrimaryKey().compareTo(pk);
  }
View Full Code Here

    }
    catch (ClassCastException cce) {
      return false;
    }

    PortletPK pk = portlet.getPrimaryKey();

    if (getPrimaryKey().equals(pk)) {
      return true;
    }
    else {
View Full Code Here

TOP

Related Classes of com.liferay.portal.ejb.PortletPK

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.