Example usage for com.liferay.portal.kernel.util PortalUtil generateRandomKey

List of usage examples for com.liferay.portal.kernel.util PortalUtil generateRandomKey

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PortalUtil generateRandomKey.

Prototype

public static String generateRandomKey(HttpServletRequest httpServletRequest, String input) 

Source Link

Document

Generates a random key to identify the request based on the input string.

Usage

From source file:com.liferay.asset.taglib.internal.display.context.InputAssetLinksDisplayContext.java

License:Open Source License

public String getRandomNamespace() {
    if (_randomNamespace != null) {
        return _randomNamespace;
    }/*from w  w  w .  j  a v a 2s  .c o  m*/

    String randomKey = PortalUtil.generateRandomKey(_request, "taglib_asset_input_asset_links_page");

    _randomNamespace = randomKey + StringPool.UNDERLINE;

    return _randomNamespace;
}

From source file:com.liferay.asset.taglib.servlet.taglib.AssetAddonEntrySelectorTag.java

License:Open Source License

protected String getId() {
    if (Validator.isNotNull(_id)) {
        return _id;
    }//ww w.  j  a v  a 2  s  . com

    String id = PortalUtil.generateRandomKey(request, "taglib_ui_asset_addon_entry_selector_page");

    return id + StringPool.UNDERLINE;
}

From source file:com.liferay.asset.taglib.servlet.taglib.AssetTagsSelectorTag.java

License:Open Source License

protected String getId() {
    if (Validator.isNotNull(_id)) {
        return _id;
    }//from  w  w w.  j  a va2 s.c o  m

    String randomKey = PortalUtil.generateRandomKey(request, "taglib_ui_asset_tags_selector_page");

    return randomKey + StringPool.UNDERLINE;
}

From source file:com.liferay.dynamic.data.mapping.taglib.servlet.taglib.HTMLTag.java

License:Open Source License

protected String getRandomNamespace() {
    return PortalUtil.generateRandomKey(request, "taglib_ddm_init-ext");
}