List of usage examples for com.liferay.portal.kernel.util StringPool POUND
String POUND
To view the source code for com.liferay.portal.kernel.util StringPool POUND.
Click Source Link
From source file:com.liferay.dynamic.data.mapping.form.web.internal.display.context.DDMFormAdminDisplayContext.java
License:Open Source License
public String getLexiconIconsPath() { ThemeDisplay themeDisplay = formAdminRequestHelper.getThemeDisplay(); StringBundler sb = new StringBundler(3); sb.append(themeDisplay.getPathThemeImages()); sb.append("/lexicon/icons.svg"); sb.append(StringPool.POUND); return sb.toString(); }
From source file:com.liferay.frontend.taglib.soy.servlet.taglib.TemplateRendererTag.java
License:Open Source License
protected String getElementSelector() { return StringPool.POUND.concat(getComponentId()).concat(" > div"); }
From source file:com.liferay.journal.transformer.JournalTransformer.java
License:Open Source License
protected String getTemplateId(String templateId, long companyId, long companyGroupId, long groupId) { StringBundler sb = new StringBundler(5); sb.append(companyId);/*from w w w . j a v a2s . c o m*/ sb.append(StringPool.POUND); if (companyGroupId > 0) { sb.append(companyGroupId); } else { sb.append(groupId); } sb.append(StringPool.POUND); sb.append(templateId); return sb.toString(); }
From source file:com.liferay.knowledgebase.admin.util.KBArticleContentCacheUtil.java
License:Open Source License
private static String _encodeKey(long groupId, KBArticle kbArticle, KBTemplate kbTemplate) { Date kbArticleModifiedDate = kbArticle.getModifiedDate(); Date kbTemplateModifiedDate = kbTemplate.getModifiedDate(); StringBundler sb = new StringBundler(11); sb.append(CACHE_NAME);//from w w w . j a v a 2 s. c om sb.append(StringPool.POUND); sb.append(StringUtil.toHexString(groupId)); sb.append(StringPool.POUND); sb.append(StringUtil.toHexString(kbArticle.getKbArticleId())); sb.append(StringPool.POUND); sb.append(StringUtil.toHexString(kbArticleModifiedDate.getTime())); sb.append(StringPool.POUND); sb.append(StringUtil.toHexString(kbTemplate.getKbTemplateId())); sb.append(StringPool.POUND); sb.append(StringUtil.toHexString(kbTemplateModifiedDate.getTime())); return sb.toString(); }
From source file:com.liferay.mail.mailbox.PasswordRetriever.java
License:Open Source License
protected String encodeKey(long accountId) { return PasswordRetriever.class.getName().concat(StringPool.POUND).concat(String.valueOf(accountId)); }
From source file:com.liferay.marketplace.messaging.MarketplaceMessageListener.java
License:Open Source License
@Override protected void doReceive(Message message) throws Exception { String command = message.getString("command"); if (!command.equals("deploy")) { return;/* w ww . j ava 2 s.c o m*/ } Properties properties = PropertiesUtil.load(message.getString("properties")); long remoteAppId = GetterUtil.getLong(properties.getProperty("remote-app-id")); String version = properties.getProperty("version"); if ((remoteAppId <= 0) || Validator.isNull(version)) { return; } String title = properties.getProperty("title"); String description = properties.getProperty("description"); String category = properties.getProperty("category"); String iconURL = properties.getProperty("icon-url"); App app = AppLocalServiceUtil.updateApp(0, remoteAppId, title, description, category, iconURL, version, null); String[] bundles = StringUtil.split(properties.getProperty("bundles")); for (String bundle : bundles) { String[] bundleParts = StringUtil.split(bundle, StringPool.POUND); String bundleSymbolicName = bundleParts[0]; String bundleVersion = bundleParts[1]; String contextName = bundleParts[2]; ModuleLocalServiceUtil.addModule(0, app.getAppId(), bundleSymbolicName, bundleVersion, contextName); } String[] contextNames = StringUtil.split(properties.getProperty("context-names")); for (String contextName : contextNames) { ModuleLocalServiceUtil.addModule(0, app.getAppId(), StringPool.BLANK, StringPool.BLANK, contextName); } AppLocalServiceUtil.processMarketplaceProperties(properties); }
From source file:com.liferay.mongodb.util.MongoDBUtil.java
License:Open Source License
private String _getCollectionName(String className, String tableName) { return className.concat(StringPool.POUND).concat(tableName); }
From source file:com.liferay.polls.util.PollsUtil.java
License:Open Source License
private static String _getCookieName(long pollsQuestionId) { return PollsQuestion.class.getName() + StringPool.POUND + pollsQuestionId; }
From source file:com.liferay.polls.web.internal.portlet.util.PollsUtil.java
License:Open Source License
private static String _getCookieName(long questionId) { return PollsQuestion.class.getName() + StringPool.POUND + questionId; }
From source file:com.liferay.portlet.calendar.service.impl.CalEventLocalUtil.java
License:Open Source License
private static String _encodeKey(long groupId) { return _CACHE_NAME.concat(StringPool.POUND).concat(StringUtil.toHexString(groupId)); }