Package com.liferay.portlet.expando.model

Examples of com.liferay.portlet.expando.model.ExpandoBridge


      Event.class.getName(), getPrimaryKey());
  }

  @Override
  public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
  }
View Full Code Here


      Location.class.getName(), getPrimaryKey());
  }

  @Override
  public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
  }
View Full Code Here

      Location.class.getName(), getPrimaryKey());
  }

  @Override
  public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
  }
View Full Code Here

  }

  private static void _localizeUsers(long companyId) throws Exception {
    Company company = CompanyLocalServiceUtil.getCompany(companyId);

    ExpandoBridge expandoBridge = company.getExpandoBridge();

    String attributeName =
      "localizationUpdated_" + PortletPropsValues.COMPANY_DEFAULT_LOCALE;

    boolean localizationUpdated = GetterUtil.getBoolean(
      expandoBridge.getAttribute(attributeName, false));

    if (localizationUpdated) {
      return;
    }

    try {
      expandoBridge.addAttribute(
        attributeName, ExpandoColumnConstants.BOOLEAN, Boolean.FALSE,
        false);
    }
    catch (DuplicateColumnNameException dcne) {
    }

    expandoBridge.setAttribute(attributeName, Boolean.TRUE, false);

    CompanyLocalServiceUtil.updateCompany(company);

    ActionableDynamicQuery actionableDynamicQuery =
      new UserActionableDynamicQuery() {
View Full Code Here

      Event.class.getName(), getPrimaryKey());
  }

  @Override
  public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
  }
View Full Code Here

      Event.class.getName(), getPrimaryKey());
  }

  @Override
  public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
  }
View Full Code Here

      Location.class.getName(), getPrimaryKey());
  }

  @Override
  public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
  }
View Full Code Here

    }// END Method getPluginImplementationsAdresses


    private void load() throws Exception {

        ExpandoBridge properties = WebsiteServiceUtil.getWebsite(currentsWebsitesIds.get(Thread.currentThread())).getExpandoBridge();

        if (!properties.hasAttribute("astenn-liferay")) {
            properties.addAttribute("astenn-liferay");
            properties.setAttribute("astenn-liferay", "");
        }

        persistenceDriver.getProperties().load(new StringReader(properties.getAttribute("astenn-liferay").toString()));

    }// END Method load
View Full Code Here

    }// END Method load


    private void save() throws Exception {

        ExpandoBridge properties = WebsiteServiceUtil.getWebsite(currentsWebsitesIds.get(Thread.currentThread())).getExpandoBridge();

        StringWriter sw = new StringWriter();
        persistenceDriver.getProperties().store(sw, null);

        properties.setAttribute("astenn-liferay", sw.getBuffer().toString());

        properties = null;

    }// END Method save
View Full Code Here

      Guestbook.class.getName(), getPrimaryKey());
  }

  @Override
  public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
  }
View Full Code Here

TOP

Related Classes of com.liferay.portlet.expando.model.ExpandoBridge

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.