Codota Logo
PortletDataHandlerControl.getNamespacedControlName
Code IndexAdd Codota to your IDE (free)

How to use
getNamespacedControlName
method
in
com.liferay.exportimport.kernel.lar.PortletDataHandlerControl

Best Java code snippets using com.liferay.exportimport.kernel.lar.PortletDataHandlerControl.getNamespacedControlName (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: com.liferay.portal/com.liferay.portal.kernel

public String getNamespacedControlName() {
  return getNamespacedControlName(_namespace, getControlName());
}
origin: com.liferay/com.liferay.exportimport.service

@Override
public boolean getBooleanParameter(
  String namespace, String name, boolean useDefaultValue) {
  if (!useDefaultValue) {
    return MapUtil.getBoolean(
      getParameterMap(),
      PortletDataHandlerControl.getNamespacedControlName(
        namespace, name));
  }
  boolean defaultValue = MapUtil.getBoolean(
    getParameterMap(),
    PortletDataHandlerKeys.PORTLET_DATA_CONTROL_DEFAULT, true);
  return MapUtil.getBoolean(
    getParameterMap(),
    PortletDataHandlerControl.getNamespacedControlName(namespace, name),
    defaultValue);
}
origin: com.liferay/com.liferay.exportimport.service

@Override
public boolean isAlwaysIncludeReference(
  PortletDataContext portletDataContext,
  StagedModel referenceStagedModel) {
  String rootPortletId = portletDataContext.getRootPortletId();
  if (Validator.isBlank(rootPortletId)) {
    return true;
  }
  Portlet portlet = _portletLocalService.getPortletById(rootPortletId);
  PortletDataHandler portletDataHandler =
    portlet.getPortletDataHandlerInstance();
  Map<String, String[]> parameterMap =
    portletDataContext.getParameterMap();
  String[] referencedContentBehaviorArray = parameterMap.get(
    PortletDataHandlerControl.getNamespacedControlName(
      portletDataHandler.getNamespace(),
      "referenced-content-behavior"));
  String referencedContentBehavior = "include-always";
  if (!ArrayUtil.isEmpty(referencedContentBehaviorArray)) {
    referencedContentBehavior = referencedContentBehaviorArray[0];
  }
  if (referencedContentBehavior.equals("include-always") ||
    (referencedContentBehavior.equals("include-if-modified") &&
     portletDataContext.isWithinDateRange(
       referenceStagedModel.getModifiedDate()))) {
    return true;
  }
  return false;
}
origin: com.liferay/com.liferay.journal.service

PortletDataHandlerControl.getNamespacedControlName(
  "journal", "version-history");
com.liferay.exportimport.kernel.larPortletDataHandlerControlgetNamespacedControlName

Popular methods of PortletDataHandlerControl

  • getClassName
  • getControlName
  • getNamespace
  • getReferrerClassName

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Path (java.nio.file)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now