id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
158,200
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/util/CmsStylesheetLoader.java
CmsStylesheetLoader.loadWithTimeout
public void loadWithTimeout(int timeout) { for (String stylesheet : m_stylesheets) { boolean alreadyLoaded = checkStylesheet(stylesheet); if (alreadyLoaded) { m_loadCounter += 1; } else { appendStylesheet(stylesheet, m_jsCallback); ...
java
public void loadWithTimeout(int timeout) { for (String stylesheet : m_stylesheets) { boolean alreadyLoaded = checkStylesheet(stylesheet); if (alreadyLoaded) { m_loadCounter += 1; } else { appendStylesheet(stylesheet, m_jsCallback); ...
[ "public", "void", "loadWithTimeout", "(", "int", "timeout", ")", "{", "for", "(", "String", "stylesheet", ":", "m_stylesheets", ")", "{", "boolean", "alreadyLoaded", "=", "checkStylesheet", "(", "stylesheet", ")", ";", "if", "(", "alreadyLoaded", ")", "{", "...
Starts the loading process and creates a timer that sets of the callback after a given tiime if it hasn't already been triggered. @param timeout number of milliseconds after which the callback should be called if it hasn't already been
[ "Starts", "the", "loading", "process", "and", "creates", "a", "timer", "that", "sets", "of", "the", "callback", "after", "a", "given", "tiime", "if", "it", "hasn", "t", "already", "been", "triggered", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/util/CmsStylesheetLoader.java#L93-L117
158,201
alkacon/opencms-core
src/org/opencms/search/solr/CmsSolrIndex.java
CmsSolrIndex.hasPermissions
protected boolean hasPermissions(CmsObject cms, CmsSolrDocument doc, CmsResourceFilter filter) { return null != (filter == null ? getResource(cms, doc) : getResource(cms, doc, filter)); }
java
protected boolean hasPermissions(CmsObject cms, CmsSolrDocument doc, CmsResourceFilter filter) { return null != (filter == null ? getResource(cms, doc) : getResource(cms, doc, filter)); }
[ "protected", "boolean", "hasPermissions", "(", "CmsObject", "cms", ",", "CmsSolrDocument", "doc", ",", "CmsResourceFilter", "filter", ")", "{", "return", "null", "!=", "(", "filter", "==", "null", "?", "getResource", "(", "cms", ",", "doc", ")", ":", "getRes...
Check, if the current user has permissions on the document's resource. @param cms the context @param doc the solr document (from the search result) @param filter the resource filter to use for checking permissions @return <code>true</code> iff the resource mirrored by the search result can be read by the current user.
[ "Check", "if", "the", "current", "user", "has", "permissions", "on", "the", "document", "s", "resource", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/search/solr/CmsSolrIndex.java#L1491-L1494
158,202
alkacon/opencms-core
src/org/opencms/search/solr/CmsSolrIndex.java
CmsSolrIndex.isDebug
private boolean isDebug(CmsObject cms, CmsSolrQuery query) { String[] debugSecretValues = query.remove(REQUEST_PARAM_DEBUG_SECRET); String debugSecret = (debugSecretValues == null) || (debugSecretValues.length < 1) ? null : debugSecretValues[0]; if ((null != debugSecret) &...
java
private boolean isDebug(CmsObject cms, CmsSolrQuery query) { String[] debugSecretValues = query.remove(REQUEST_PARAM_DEBUG_SECRET); String debugSecret = (debugSecretValues == null) || (debugSecretValues.length < 1) ? null : debugSecretValues[0]; if ((null != debugSecret) &...
[ "private", "boolean", "isDebug", "(", "CmsObject", "cms", ",", "CmsSolrQuery", "query", ")", "{", "String", "[", "]", "debugSecretValues", "=", "query", ".", "remove", "(", "REQUEST_PARAM_DEBUG_SECRET", ")", ";", "String", "debugSecret", "=", "(", "debugSecretVa...
Checks if the query should be executed using the debug mode where the security restrictions do not apply. @param cms the current context. @param query the query to execute. @return a flag, indicating, if the query should be performed in debug mode.
[ "Checks", "if", "the", "query", "should", "be", "executed", "using", "the", "debug", "mode", "where", "the", "security", "restrictions", "do", "not", "apply", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/search/solr/CmsSolrIndex.java#L1595-L1616
158,203
alkacon/opencms-core
src/org/opencms/search/solr/CmsSolrIndex.java
CmsSolrIndex.throwExceptionIfSafetyRestrictionsAreViolated
private void throwExceptionIfSafetyRestrictionsAreViolated(CmsObject cms, CmsSolrQuery query, boolean isSpell) throws CmsSearchException { if (!isDebug(cms, query)) { if (isSpell) { if (m_handlerSpellDisabled) { throw new CmsSearchException(Messages.get...
java
private void throwExceptionIfSafetyRestrictionsAreViolated(CmsObject cms, CmsSolrQuery query, boolean isSpell) throws CmsSearchException { if (!isDebug(cms, query)) { if (isSpell) { if (m_handlerSpellDisabled) { throw new CmsSearchException(Messages.get...
[ "private", "void", "throwExceptionIfSafetyRestrictionsAreViolated", "(", "CmsObject", "cms", ",", "CmsSolrQuery", "query", ",", "boolean", "isSpell", ")", "throws", "CmsSearchException", "{", "if", "(", "!", "isDebug", "(", "cms", ",", "query", ")", ")", "{", "i...
Throws an exception if the request can for security reasons not be performed. Security restrictions can be set via parameters of the index. @param cms the current context. @param query the query. @param isSpell flag, indicating if the spellcheck handler is requested. @throws CmsSearchException thrown if the query cann...
[ "Throws", "an", "exception", "if", "the", "request", "can", "for", "security", "reasons", "not", "be", "performed", ".", "Security", "restrictions", "can", "be", "set", "via", "parameters", "of", "the", "index", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/search/solr/CmsSolrIndex.java#L1627-L1673
158,204
alkacon/opencms-core
src-modules/org/opencms/workplace/tools/modules/CmsCloneModuleThread.java
CmsCloneModuleThread.alterPrefix
private String alterPrefix(String word, String oldPrefix, String newPrefix) { if (word.startsWith(oldPrefix)) { return word.replaceFirst(oldPrefix, newPrefix); } return (newPrefix + word); }
java
private String alterPrefix(String word, String oldPrefix, String newPrefix) { if (word.startsWith(oldPrefix)) { return word.replaceFirst(oldPrefix, newPrefix); } return (newPrefix + word); }
[ "private", "String", "alterPrefix", "(", "String", "word", ",", "String", "oldPrefix", ",", "String", "newPrefix", ")", "{", "if", "(", "word", ".", "startsWith", "(", "oldPrefix", ")", ")", "{", "return", "word", ".", "replaceFirst", "(", "oldPrefix", ","...
Manipulates a string by cutting of a prefix, if present, and adding a new prefix. @param word the string to be manipulated @param oldPrefix the old prefix that should be replaced @param newPrefix the new prefix that is added @return the manipulated string
[ "Manipulates", "a", "string", "by", "cutting", "of", "a", "prefix", "if", "present", "and", "adding", "a", "new", "prefix", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-modules/org/opencms/workplace/tools/modules/CmsCloneModuleThread.java#L477-L483
158,205
alkacon/opencms-core
src-setup/org/opencms/setup/ui/CmsSetupStep02ComponentCheck.java
CmsSetupStep02ComponentCheck.updateColor
public void updateColor(TestColor color) { switch (color) { case green: m_forwardButton.setEnabled(true); m_confirmCheckbox.setVisible(false); m_status.setValue(STATUS_GREEN); break; case yellow: m_forwardBu...
java
public void updateColor(TestColor color) { switch (color) { case green: m_forwardButton.setEnabled(true); m_confirmCheckbox.setVisible(false); m_status.setValue(STATUS_GREEN); break; case yellow: m_forwardBu...
[ "public", "void", "updateColor", "(", "TestColor", "color", ")", "{", "switch", "(", "color", ")", "{", "case", "green", ":", "m_forwardButton", ".", "setEnabled", "(", "true", ")", ";", "m_confirmCheckbox", ".", "setVisible", "(", "false", ")", ";", "m_st...
Sets test status.
[ "Sets", "test", "status", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-setup/org/opencms/setup/ui/CmsSetupStep02ComponentCheck.java#L121-L142
158,206
alkacon/opencms-core
src/org/opencms/relations/CmsCategoryService.java
CmsCategoryService.copyCategories
public void copyCategories(CmsObject cms, CmsResource fromResource, String toResourceSitePath) throws CmsException { List<CmsCategory> categories = readResourceCategories(cms, fromResource); for (CmsCategory category : categories) { addResourceToCategory(cms, toResourceSitePath, category); ...
java
public void copyCategories(CmsObject cms, CmsResource fromResource, String toResourceSitePath) throws CmsException { List<CmsCategory> categories = readResourceCategories(cms, fromResource); for (CmsCategory category : categories) { addResourceToCategory(cms, toResourceSitePath, category); ...
[ "public", "void", "copyCategories", "(", "CmsObject", "cms", ",", "CmsResource", "fromResource", ",", "String", "toResourceSitePath", ")", "throws", "CmsException", "{", "List", "<", "CmsCategory", ">", "categories", "=", "readResourceCategories", "(", "cms", ",", ...
Adds all categories from one resource to another, skipping categories that are not available for the resource copied to. The resource where categories are copied to has to be locked. @param cms the CmsObject used for reading and writing. @param fromResource the resource to copy the categories from. @param toResourceS...
[ "Adds", "all", "categories", "from", "one", "resource", "to", "another", "skipping", "categories", "that", "are", "not", "available", "for", "the", "resource", "copied", "to", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/relations/CmsCategoryService.java#L167-L173
158,207
alkacon/opencms-core
src/org/opencms/jsp/CmsJspTagBundle.java
CmsJspTagBundle.getLocale
static Locale getLocale(PageContext pageContext, String name) { Locale loc = null; Object obj = javax.servlet.jsp.jstl.core.Config.find(pageContext, name); if (obj != null) { if (obj instanceof Locale) { loc = (Locale)obj; } else { ...
java
static Locale getLocale(PageContext pageContext, String name) { Locale loc = null; Object obj = javax.servlet.jsp.jstl.core.Config.find(pageContext, name); if (obj != null) { if (obj instanceof Locale) { loc = (Locale)obj; } else { ...
[ "static", "Locale", "getLocale", "(", "PageContext", "pageContext", ",", "String", "name", ")", "{", "Locale", "loc", "=", "null", ";", "Object", "obj", "=", "javax", ".", "servlet", ".", "jsp", ".", "jstl", ".", "core", ".", "Config", ".", "find", "("...
Returns the locale specified by the named scoped attribute or context configuration parameter. <p> The named scoped attribute is searched in the page, request, session (if valid), and application scope(s) (in this order). If no such attribute exists in any of the scopes, the locale is taken from the named context conf...
[ "Returns", "the", "locale", "specified", "by", "the", "named", "scoped", "attribute", "or", "context", "configuration", "parameter", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/CmsJspTagBundle.java#L135-L149
158,208
alkacon/opencms-core
src/org/opencms/staticexport/CmsDefaultLinkSubstitutionHandler.java
CmsDefaultLinkSubstitutionHandler.generateCacheKey
protected String generateCacheKey( CmsObject cms, String targetSiteRoot, String detailPagePart, String absoluteLink) { return cms.getRequestContext().getSiteRoot() + ":" + targetSiteRoot + ":" + detailPagePart + absoluteLink; }
java
protected String generateCacheKey( CmsObject cms, String targetSiteRoot, String detailPagePart, String absoluteLink) { return cms.getRequestContext().getSiteRoot() + ":" + targetSiteRoot + ":" + detailPagePart + absoluteLink; }
[ "protected", "String", "generateCacheKey", "(", "CmsObject", "cms", ",", "String", "targetSiteRoot", ",", "String", "detailPagePart", ",", "String", "absoluteLink", ")", "{", "return", "cms", ".", "getRequestContext", "(", ")", ".", "getSiteRoot", "(", ")", "+",...
Generates the cache key for Online links. @param cms the current CmsObject @param targetSiteRoot the target site root @param detailPagePart the detail page part @param absoluteLink the absolute (site-relative) link to the resource @return the cache key
[ "Generates", "the", "cache", "key", "for", "Online", "links", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/staticexport/CmsDefaultLinkSubstitutionHandler.java#L443-L450
158,209
alkacon/opencms-core
src/org/opencms/staticexport/CmsDefaultLinkSubstitutionHandler.java
CmsDefaultLinkSubstitutionHandler.isSecureLink
protected boolean isSecureLink(CmsObject cms, String vfsName, CmsSite targetSite, boolean secureRequest) { return OpenCms.getStaticExportManager().isSecureLink(cms, vfsName, targetSite.getSiteRoot(), secureRequest); }
java
protected boolean isSecureLink(CmsObject cms, String vfsName, CmsSite targetSite, boolean secureRequest) { return OpenCms.getStaticExportManager().isSecureLink(cms, vfsName, targetSite.getSiteRoot(), secureRequest); }
[ "protected", "boolean", "isSecureLink", "(", "CmsObject", "cms", ",", "String", "vfsName", ",", "CmsSite", "targetSite", ",", "boolean", "secureRequest", ")", "{", "return", "OpenCms", ".", "getStaticExportManager", "(", ")", ".", "isSecureLink", "(", "cms", ","...
Checks if the link target is a secure link.<p @param cms the current CMS context @param vfsName the path of the link target @param targetSite the target site containing the detail page @param secureRequest true if the currently running request is secure @return true if the link should be a secure link
[ "Checks", "if", "the", "link", "target", "is", "a", "secure", "link", ".", "<p" ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/staticexport/CmsDefaultLinkSubstitutionHandler.java#L692-L695
158,210
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/input/colorpicker/CmsColor.java
CmsColor.MIN
private float MIN(float first, float second, float third) { float min = Integer.MAX_VALUE; if (first < min) { min = first; } if (second < min) { min = second; } if (third < min) { min = third; } return min; ...
java
private float MIN(float first, float second, float third) { float min = Integer.MAX_VALUE; if (first < min) { min = first; } if (second < min) { min = second; } if (third < min) { min = third; } return min; ...
[ "private", "float", "MIN", "(", "float", "first", ",", "float", "second", ",", "float", "third", ")", "{", "float", "min", "=", "Integer", ".", "MAX_VALUE", ";", "if", "(", "first", "<", "min", ")", "{", "min", "=", "first", ";", "}", "if", "(", ...
Calculates the smallest value between the three inputs. @param first value @param second value @param third value @return the smallest value between the three inputs
[ "Calculates", "the", "smallest", "value", "between", "the", "three", "inputs", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/input/colorpicker/CmsColor.java#L281-L294
158,211
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/input/colorpicker/CmsColor.java
CmsColor.setHex
private void setHex() { String hRed = Integer.toHexString(getRed()); String hGreen = Integer.toHexString(getGreen()); String hBlue = Integer.toHexString(getBlue()); if (hRed.length() == 0) { hRed = "00"; } if (hRed.length() == 1) { hRed...
java
private void setHex() { String hRed = Integer.toHexString(getRed()); String hGreen = Integer.toHexString(getGreen()); String hBlue = Integer.toHexString(getBlue()); if (hRed.length() == 0) { hRed = "00"; } if (hRed.length() == 1) { hRed...
[ "private", "void", "setHex", "(", ")", "{", "String", "hRed", "=", "Integer", ".", "toHexString", "(", "getRed", "(", ")", ")", ";", "String", "hGreen", "=", "Integer", ".", "toHexString", "(", "getGreen", "(", ")", ")", ";", "String", "hBlue", "=", ...
Converts from RGB to Hexadecimal notation.
[ "Converts", "from", "RGB", "to", "Hexadecimal", "notation", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/input/colorpicker/CmsColor.java#L346-L372
158,212
alkacon/opencms-core
src/org/opencms/ade/contenteditor/CmsSerialDateService.java
CmsSerialDateService.formatDate
private String formatDate(Date date) { if (null == m_dateFormat) { m_dateFormat = DateFormat.getDateInstance( 0, OpenCms.getWorkplaceManager().getWorkplaceLocale(getCmsObject())); } return m_dateFormat.format(date); }
java
private String formatDate(Date date) { if (null == m_dateFormat) { m_dateFormat = DateFormat.getDateInstance( 0, OpenCms.getWorkplaceManager().getWorkplaceLocale(getCmsObject())); } return m_dateFormat.format(date); }
[ "private", "String", "formatDate", "(", "Date", "date", ")", "{", "if", "(", "null", "==", "m_dateFormat", ")", "{", "m_dateFormat", "=", "DateFormat", ".", "getDateInstance", "(", "0", ",", "OpenCms", ".", "getWorkplaceManager", "(", ")", ".", "getWorkplace...
Format the date for the status messages. @param date the date to format. @return the formatted date.
[ "Format", "the", "date", "for", "the", "status", "messages", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ade/contenteditor/CmsSerialDateService.java#L126-L134
158,213
alkacon/opencms-core
src/org/opencms/jsp/CmsJspTagEdit.java
CmsJspTagEdit.createResource
public static String createResource( CmsObject cmsObject, String newLink, Locale locale, String sitePath, String modelFileName, String mode, String postCreateHandler) { String[] newLinkParts = newLink.split("\\|"); String rootPath = newLinkParts[1...
java
public static String createResource( CmsObject cmsObject, String newLink, Locale locale, String sitePath, String modelFileName, String mode, String postCreateHandler) { String[] newLinkParts = newLink.split("\\|"); String rootPath = newLinkParts[1...
[ "public", "static", "String", "createResource", "(", "CmsObject", "cmsObject", ",", "String", "newLink", ",", "Locale", "locale", ",", "String", "sitePath", ",", "String", "modelFileName", ",", "String", "mode", ",", "String", "postCreateHandler", ")", "{", "Str...
Creates a new resource. @param cmsObject The CmsObject of the current request context. @param newLink A string, specifying where which new content should be created. @param locale The locale for which the @param sitePath site path of the currently edited content. @param modelFileName not used. @param mode optional crea...
[ "Creates", "a", "new", "resource", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/CmsJspTagEdit.java#L104-L146
158,214
alkacon/opencms-core
src/org/opencms/i18n/CmsResourceBundleLoader.java
CmsResourceBundleLoader.tryBundle
private static I_CmsResourceBundle tryBundle(String localizedName) { I_CmsResourceBundle result = null; try { String resourceName = localizedName.replace('.', '/') + ".properties"; URL url = CmsResourceBundleLoader.class.getClassLoader().getResource(resourceName); ...
java
private static I_CmsResourceBundle tryBundle(String localizedName) { I_CmsResourceBundle result = null; try { String resourceName = localizedName.replace('.', '/') + ".properties"; URL url = CmsResourceBundleLoader.class.getClassLoader().getResource(resourceName); ...
[ "private", "static", "I_CmsResourceBundle", "tryBundle", "(", "String", "localizedName", ")", "{", "I_CmsResourceBundle", "result", "=", "null", ";", "try", "{", "String", "resourceName", "=", "localizedName", ".", "replace", "(", "'", "'", ",", "'", "'", ")",...
Tries to load a property file with the specified name. @param localizedName the name @return the resource bundle if it was loaded, otherwise the backup
[ "Tries", "to", "load", "a", "property", "file", "with", "the", "specified", "name", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/i18n/CmsResourceBundleLoader.java#L365-L412
158,215
alkacon/opencms-core
src/org/opencms/i18n/CmsResourceBundleLoader.java
CmsResourceBundleLoader.tryBundle
private static ResourceBundle tryBundle(String baseName, Locale locale, boolean wantBase) { I_CmsResourceBundle first = null; // The most specialized bundle. I_CmsResourceBundle last = null; // The least specialized bundle. List<String> bundleNames = CmsLocaleManager.getLocaleVariants(baseName...
java
private static ResourceBundle tryBundle(String baseName, Locale locale, boolean wantBase) { I_CmsResourceBundle first = null; // The most specialized bundle. I_CmsResourceBundle last = null; // The least specialized bundle. List<String> bundleNames = CmsLocaleManager.getLocaleVariants(baseName...
[ "private", "static", "ResourceBundle", "tryBundle", "(", "String", "baseName", ",", "Locale", "locale", ",", "boolean", "wantBase", ")", "{", "I_CmsResourceBundle", "first", "=", "null", ";", "// The most specialized bundle.", "I_CmsResourceBundle", "last", "=", "null...
Tries to load a the bundle for a given locale, also loads the backup locales with the same language. @param baseName the raw bundle name, without locale qualifiers @param locale the locale @param wantBase whether a resource bundle made only from the base name (with no locale information attached) should be returned. @...
[ "Tries", "to", "load", "a", "the", "bundle", "for", "a", "given", "locale", "also", "loads", "the", "backup", "locales", "with", "the", "same", "language", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/i18n/CmsResourceBundleLoader.java#L424-L450
158,216
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.validateWithMessage
public CmsMessageContainer validateWithMessage() { if (m_parsingFailed) { return Messages.get().container(Messages.ERR_SERIALDATE_INVALID_VALUE_0); } if (!isStartSet()) { return Messages.get().container(Messages.ERR_SERIALDATE_START_MISSING_0); } if (!isE...
java
public CmsMessageContainer validateWithMessage() { if (m_parsingFailed) { return Messages.get().container(Messages.ERR_SERIALDATE_INVALID_VALUE_0); } if (!isStartSet()) { return Messages.get().container(Messages.ERR_SERIALDATE_START_MISSING_0); } if (!isE...
[ "public", "CmsMessageContainer", "validateWithMessage", "(", ")", "{", "if", "(", "m_parsingFailed", ")", "{", "return", "Messages", ".", "get", "(", ")", ".", "container", "(", "Messages", ".", "ERR_SERIALDATE_INVALID_VALUE_0", ")", ";", "}", "if", "(", "!", ...
Validates the wrapped value and returns a localized error message in case of invalid values. @return <code>null</code> if the value is valid, a suitable localized error message otherwise.
[ "Validates", "the", "wrapped", "value", "and", "returns", "a", "localized", "error", "message", "in", "case", "of", "invalid", "values", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L158-L183
158,217
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.datesToJson
private JSONArray datesToJson(Collection<Date> individualDates) { if (null != individualDates) { JSONArray result = new JSONArray(); for (Date d : individualDates) { result.put(dateToJson(d)); } return result; } return null; }
java
private JSONArray datesToJson(Collection<Date> individualDates) { if (null != individualDates) { JSONArray result = new JSONArray(); for (Date d : individualDates) { result.put(dateToJson(d)); } return result; } return null; }
[ "private", "JSONArray", "datesToJson", "(", "Collection", "<", "Date", ">", "individualDates", ")", "{", "if", "(", "null", "!=", "individualDates", ")", "{", "JSONArray", "result", "=", "new", "JSONArray", "(", ")", ";", "for", "(", "Date", "d", ":", "i...
Converts a list of dates to a Json array with the long representation of the dates as strings. @param individualDates the list to convert. @return Json array with long values of dates as string
[ "Converts", "a", "list", "of", "dates", "to", "a", "Json", "array", "with", "the", "long", "representation", "of", "the", "dates", "as", "strings", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L190-L200
158,218
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.readOptionalArray
private JSONArray readOptionalArray(JSONObject json, String key) { try { return json.getJSONArray(key); } catch (JSONException e) { LOG.debug("Reading optional JSON array failed. Default to provided default value.", e); } return null; }
java
private JSONArray readOptionalArray(JSONObject json, String key) { try { return json.getJSONArray(key); } catch (JSONException e) { LOG.debug("Reading optional JSON array failed. Default to provided default value.", e); } return null; }
[ "private", "JSONArray", "readOptionalArray", "(", "JSONObject", "json", ",", "String", "key", ")", "{", "try", "{", "return", "json", ".", "getJSONArray", "(", "key", ")", ";", "}", "catch", "(", "JSONException", "e", ")", "{", "LOG", ".", "debug", "(", ...
Read an optional JSON array. @param json the JSON Object that has the array as element @param key the key for the array in the provided JSON object @return the array or null if reading the array fails.
[ "Read", "an", "optional", "JSON", "array", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L301-L309
158,219
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.readOptionalBoolean
private Boolean readOptionalBoolean(JSONObject json, String key) { try { return Boolean.valueOf(json.getBoolean(key)); } catch (JSONException e) { LOG.debug("Reading optional JSON boolean failed. Default to provided default value.", e); } return null; }
java
private Boolean readOptionalBoolean(JSONObject json, String key) { try { return Boolean.valueOf(json.getBoolean(key)); } catch (JSONException e) { LOG.debug("Reading optional JSON boolean failed. Default to provided default value.", e); } return null; }
[ "private", "Boolean", "readOptionalBoolean", "(", "JSONObject", "json", ",", "String", "key", ")", "{", "try", "{", "return", "Boolean", ".", "valueOf", "(", "json", ".", "getBoolean", "(", "key", ")", ")", ";", "}", "catch", "(", "JSONException", "e", "...
Read an optional boolean value form a JSON Object. @param json the JSON object to read from. @param key the key for the boolean value in the provided JSON object. @return the boolean or null if reading the boolean fails.
[ "Read", "an", "optional", "boolean", "value", "form", "a", "JSON", "Object", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L317-L325
158,220
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.readOptionalString
private String readOptionalString(JSONObject json, String key, String defaultValue) { try { String str = json.getString(key); if (str != null) { return str; } } catch (JSONException e) { LOG.debug("Reading optional JSON string failed. Def...
java
private String readOptionalString(JSONObject json, String key, String defaultValue) { try { String str = json.getString(key); if (str != null) { return str; } } catch (JSONException e) { LOG.debug("Reading optional JSON string failed. Def...
[ "private", "String", "readOptionalString", "(", "JSONObject", "json", ",", "String", "key", ",", "String", "defaultValue", ")", "{", "try", "{", "String", "str", "=", "json", ".", "getString", "(", "key", ")", ";", "if", "(", "str", "!=", "null", ")", ...
Read an optional string value form a JSON Object. @param json the JSON object to read from. @param key the key for the string value in the provided JSON object. @param defaultValue the default value, to be returned if the string can not be read from the JSON object. @return the string or the default value if reading th...
[ "Read", "an", "optional", "string", "value", "form", "a", "JSON", "Object", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L385-L397
158,221
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.readPattern
private void readPattern(JSONObject patternJson) { setPatternType(readPatternType(patternJson)); setInterval(readOptionalInt(patternJson, JsonKey.PATTERN_INTERVAL)); setWeekDays(readWeekDays(patternJson)); setDayOfMonth(readOptionalInt(patternJson, JsonKey.PATTERN_DAY_OF_MONTH)); ...
java
private void readPattern(JSONObject patternJson) { setPatternType(readPatternType(patternJson)); setInterval(readOptionalInt(patternJson, JsonKey.PATTERN_INTERVAL)); setWeekDays(readWeekDays(patternJson)); setDayOfMonth(readOptionalInt(patternJson, JsonKey.PATTERN_DAY_OF_MONTH)); ...
[ "private", "void", "readPattern", "(", "JSONObject", "patternJson", ")", "{", "setPatternType", "(", "readPatternType", "(", "patternJson", ")", ")", ";", "setInterval", "(", "readOptionalInt", "(", "patternJson", ",", "JsonKey", ".", "PATTERN_INTERVAL", ")", ")",...
Read pattern information from the provided JSON object. @param patternJson the JSON object containing the pattern information.
[ "Read", "pattern", "information", "from", "the", "provided", "JSON", "object", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L423-L434
158,222
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.toJsonStringArray
private JSONArray toJsonStringArray(Collection<? extends Object> collection) { if (null != collection) { JSONArray array = new JSONArray(); for (Object o : collection) { array.put("" + o); } return array; } else { return null; ...
java
private JSONArray toJsonStringArray(Collection<? extends Object> collection) { if (null != collection) { JSONArray array = new JSONArray(); for (Object o : collection) { array.put("" + o); } return array; } else { return null; ...
[ "private", "JSONArray", "toJsonStringArray", "(", "Collection", "<", "?", "extends", "Object", ">", "collection", ")", "{", "if", "(", "null", "!=", "collection", ")", "{", "JSONArray", "array", "=", "new", "JSONArray", "(", ")", ";", "for", "(", "Object",...
Convert a collection of objects to a JSON array with the string representations of that objects. @param collection the collection of objects. @return the JSON array with the string representations.
[ "Convert", "a", "collection", "of", "objects", "to", "a", "JSON", "array", "with", "the", "string", "representations", "of", "that", "objects", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L513-L524
158,223
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.validateDuration
private String validateDuration() { if (!isValidEndTypeForPattern()) { return Messages.ERR_SERIALDATE_INVALID_END_TYPE_FOR_PATTERN_0; } switch (getEndType()) { case DATE: return (getStart().getTime() < (getSeriesEndDate().getTime() + DAY_IN_MILLIS)) ...
java
private String validateDuration() { if (!isValidEndTypeForPattern()) { return Messages.ERR_SERIALDATE_INVALID_END_TYPE_FOR_PATTERN_0; } switch (getEndType()) { case DATE: return (getStart().getTime() < (getSeriesEndDate().getTime() + DAY_IN_MILLIS)) ...
[ "private", "String", "validateDuration", "(", ")", "{", "if", "(", "!", "isValidEndTypeForPattern", "(", ")", ")", "{", "return", "Messages", ".", "ERR_SERIALDATE_INVALID_END_TYPE_FOR_PATTERN_0", ";", "}", "switch", "(", "getEndType", "(", ")", ")", "{", "case",...
Checks if the provided duration information is valid. @return <code>null</code> if the information is valid, the key of the suitable error message otherwise.
[ "Checks", "if", "the", "provided", "duration", "information", "is", "valid", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L539-L555
158,224
alkacon/opencms-core
src/org/opencms/widgets/serialdate/CmsSerialDateValue.java
CmsSerialDateValue.validatePattern
private String validatePattern() { String error = null; switch (getPatternType()) { case DAILY: error = isEveryWorkingDay() ? null : validateInterval(); break; case WEEKLY: error = validateInterval(); if (null == er...
java
private String validatePattern() { String error = null; switch (getPatternType()) { case DAILY: error = isEveryWorkingDay() ? null : validateInterval(); break; case WEEKLY: error = validateInterval(); if (null == er...
[ "private", "String", "validatePattern", "(", ")", "{", "String", "error", "=", "null", ";", "switch", "(", "getPatternType", "(", ")", ")", "{", "case", "DAILY", ":", "error", "=", "isEveryWorkingDay", "(", ")", "?", "null", ":", "validateInterval", "(", ...
Check, if all values used for calculating the series for a specific pattern are valid. @return <code>null</code> if the pattern is valid, a suitable error message otherwise.
[ "Check", "if", "all", "values", "used", "for", "calculating", "the", "series", "for", "a", "specific", "pattern", "are", "valid", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/widgets/serialdate/CmsSerialDateValue.java#L579-L609
158,225
alkacon/opencms-core
src/org/opencms/db/CmsDbPoolV11.java
CmsDbPoolV11.createHikariConfig
public static HikariConfig createHikariConfig(CmsParameterConfiguration config, String key) { Map<String, String> poolMap = Maps.newHashMap(); for (Map.Entry<String, String> entry : config.entrySet()) { String suffix = getPropertyRelativeSuffix(KEY_DATABASE_POOL + "." + key, entry.getKey())...
java
public static HikariConfig createHikariConfig(CmsParameterConfiguration config, String key) { Map<String, String> poolMap = Maps.newHashMap(); for (Map.Entry<String, String> entry : config.entrySet()) { String suffix = getPropertyRelativeSuffix(KEY_DATABASE_POOL + "." + key, entry.getKey())...
[ "public", "static", "HikariConfig", "createHikariConfig", "(", "CmsParameterConfiguration", "config", ",", "String", "key", ")", "{", "Map", "<", "String", ",", "String", ">", "poolMap", "=", "Maps", ".", "newHashMap", "(", ")", ";", "for", "(", "Map", ".", ...
Creates the HikariCP configuration based on the configuration of a pool defined in opencms.properties. @param config the configuration object with the properties @param key the pool name (without the opencms prefix) @return the HikariCP configuration for the pool
[ "Creates", "the", "HikariCP", "configuration", "based", "on", "the", "configuration", "of", "a", "pool", "defined", "in", "opencms", ".", "properties", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/db/CmsDbPoolV11.java#L183-L245
158,226
alkacon/opencms-core
src/org/opencms/ugc/CmsUgcSession.java
CmsUgcSession.unmarshalXmlContent
private CmsXmlContent unmarshalXmlContent(CmsFile file) throws CmsXmlException { CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, file); content.setAutoCorrectionEnabled(true); content.correctXmlStructure(m_cms); return content; }
java
private CmsXmlContent unmarshalXmlContent(CmsFile file) throws CmsXmlException { CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, file); content.setAutoCorrectionEnabled(true); content.correctXmlStructure(m_cms); return content; }
[ "private", "CmsXmlContent", "unmarshalXmlContent", "(", "CmsFile", "file", ")", "throws", "CmsXmlException", "{", "CmsXmlContent", "content", "=", "CmsXmlContentFactory", ".", "unmarshal", "(", "m_cms", ",", "file", ")", ";", "content", ".", "setAutoCorrectionEnabled"...
Unmarshal the XML content with auto-correction. @param file the file that contains the XML @return the XML read from the file @throws CmsXmlException thrown if the XML can't be read.
[ "Unmarshal", "the", "XML", "content", "with", "auto", "-", "correction", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ugc/CmsUgcSession.java#L828-L835
158,227
alkacon/opencms-core
src/org/opencms/importexport/A_CmsImport.java
A_CmsImport.getImportAccessControlEntry
protected CmsAccessControlEntry getImportAccessControlEntry( CmsResource res, String id, String allowed, String denied, String flags) { return new CmsAccessControlEntry( res.getResourceId(), new CmsUUID(id), Integer.parseInt(allowed), ...
java
protected CmsAccessControlEntry getImportAccessControlEntry( CmsResource res, String id, String allowed, String denied, String flags) { return new CmsAccessControlEntry( res.getResourceId(), new CmsUUID(id), Integer.parseInt(allowed), ...
[ "protected", "CmsAccessControlEntry", "getImportAccessControlEntry", "(", "CmsResource", "res", ",", "String", "id", ",", "String", "allowed", ",", "String", "denied", ",", "String", "flags", ")", "{", "return", "new", "CmsAccessControlEntry", "(", "res", ".", "ge...
Creates a new access control entry and stores it for later write out. @param res the resource @param id the id of the principal @param allowed the allowed permissions @param denied the denied permissions @param flags the flags @return the created ACE
[ "Creates", "a", "new", "access", "control", "entry", "and", "stores", "it", "for", "later", "write", "out", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/importexport/A_CmsImport.java#L606-L619
158,228
alkacon/opencms-core
src/org/opencms/workplace/Messages.java
Messages.getStateKey
public static String getStateKey(CmsResourceState state) { StringBuffer sb = new StringBuffer(STATE_PREFIX); sb.append(state); sb.append(STATE_POSTFIX); return sb.toString(); }
java
public static String getStateKey(CmsResourceState state) { StringBuffer sb = new StringBuffer(STATE_PREFIX); sb.append(state); sb.append(STATE_POSTFIX); return sb.toString(); }
[ "public", "static", "String", "getStateKey", "(", "CmsResourceState", "state", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", "STATE_PREFIX", ")", ";", "sb", ".", "append", "(", "state", ")", ";", "sb", ".", "append", "(", "STATE_POSTFIX", ...
Create constant name. @param state STATE_UNCHANGED, STATE_CHANGED, STATE_NEW or STATE_DELETED. @return cconstanname as String
[ "Create", "constant", "name", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/workplace/Messages.java#L520-L527
158,229
alkacon/opencms-core
src/org/opencms/ui/components/CmsAppViewLayout.java
CmsAppViewLayout.createPublishButton
public static Button createPublishButton(final I_CmsUpdateListener<String> updateListener) { Button publishButton = CmsToolBar.createButton( FontOpenCms.PUBLISH, CmsVaadinUtils.getMessageText(Messages.GUI_PUBLISH_BUTTON_TITLE_0)); if (CmsAppWorkplaceUi.isOnlineProject()) { ...
java
public static Button createPublishButton(final I_CmsUpdateListener<String> updateListener) { Button publishButton = CmsToolBar.createButton( FontOpenCms.PUBLISH, CmsVaadinUtils.getMessageText(Messages.GUI_PUBLISH_BUTTON_TITLE_0)); if (CmsAppWorkplaceUi.isOnlineProject()) { ...
[ "public", "static", "Button", "createPublishButton", "(", "final", "I_CmsUpdateListener", "<", "String", ">", "updateListener", ")", "{", "Button", "publishButton", "=", "CmsToolBar", ".", "createButton", "(", "FontOpenCms", ".", "PUBLISH", ",", "CmsVaadinUtils", "....
Creates the publish button. @param updateListener the update listener @return the publish button
[ "Creates", "the", "publish", "button", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/components/CmsAppViewLayout.java#L96-L119
158,230
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.getFilters
Map<Object, Object> getFilters() { Map<Object, Object> result = new HashMap<Object, Object>(4); result.put(TableProperty.KEY, m_table.getFilterFieldValue(TableProperty.KEY)); result.put(TableProperty.DEFAULT, m_table.getFilterFieldValue(TableProperty.DEFAULT)); result.put(TableProperty....
java
Map<Object, Object> getFilters() { Map<Object, Object> result = new HashMap<Object, Object>(4); result.put(TableProperty.KEY, m_table.getFilterFieldValue(TableProperty.KEY)); result.put(TableProperty.DEFAULT, m_table.getFilterFieldValue(TableProperty.DEFAULT)); result.put(TableProperty....
[ "Map", "<", "Object", ",", "Object", ">", "getFilters", "(", ")", "{", "Map", "<", "Object", ",", "Object", ">", "result", "=", "new", "HashMap", "<", "Object", ",", "Object", ">", "(", "4", ")", ";", "result", ".", "put", "(", "TableProperty", "."...
Returns the currently set filters in a map column -> filter. @return the currently set filters in a map column -> filter.
[ "Returns", "the", "currently", "set", "filters", "in", "a", "map", "column", "-", ">", "filter", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L492-L500
158,231
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.saveAction
void saveAction() { Map<Object, Object> filters = getFilters(); m_table.clearFilters(); try { m_model.save(); disableSaveButtons(); } catch (CmsException e) { LOG.error(m_messages.key(Messages.ERR_SAVING_CHANGES_0), e); CmsErrorDialog.s...
java
void saveAction() { Map<Object, Object> filters = getFilters(); m_table.clearFilters(); try { m_model.save(); disableSaveButtons(); } catch (CmsException e) { LOG.error(m_messages.key(Messages.ERR_SAVING_CHANGES_0), e); CmsErrorDialog.s...
[ "void", "saveAction", "(", ")", "{", "Map", "<", "Object", ",", "Object", ">", "filters", "=", "getFilters", "(", ")", ";", "m_table", ".", "clearFilters", "(", ")", ";", "try", "{", "m_model", ".", "save", "(", ")", ";", "disableSaveButtons", "(", "...
Save the changes.
[ "Save", "the", "changes", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L518-L535
158,232
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.setFilters
void setFilters(Map<Object, Object> filters) { for (Object column : filters.keySet()) { Object filterValue = filters.get(column); if ((filterValue != null) && !filterValue.toString().isEmpty() && !m_table.isColumnCollapsed(column)) { m_table.setFilterFieldValue(column, f...
java
void setFilters(Map<Object, Object> filters) { for (Object column : filters.keySet()) { Object filterValue = filters.get(column); if ((filterValue != null) && !filterValue.toString().isEmpty() && !m_table.isColumnCollapsed(column)) { m_table.setFilterFieldValue(column, f...
[ "void", "setFilters", "(", "Map", "<", "Object", ",", "Object", ">", "filters", ")", "{", "for", "(", "Object", "column", ":", "filters", ".", "keySet", "(", ")", ")", "{", "Object", "filterValue", "=", "filters", ".", "get", "(", "column", ")", ";",...
Sets the provided filters. @param filters a map "column id -> filter".
[ "Sets", "the", "provided", "filters", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L571-L579
158,233
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.adjustOptionsColumn
private void adjustOptionsColumn( CmsMessageBundleEditorTypes.EditMode oldMode, CmsMessageBundleEditorTypes.EditMode newMode) { if (m_model.isShowOptionsColumn(oldMode) != m_model.isShowOptionsColumn(newMode)) { m_table.removeGeneratedColumn(TableProperty.OPTIONS); if (m...
java
private void adjustOptionsColumn( CmsMessageBundleEditorTypes.EditMode oldMode, CmsMessageBundleEditorTypes.EditMode newMode) { if (m_model.isShowOptionsColumn(oldMode) != m_model.isShowOptionsColumn(newMode)) { m_table.removeGeneratedColumn(TableProperty.OPTIONS); if (m...
[ "private", "void", "adjustOptionsColumn", "(", "CmsMessageBundleEditorTypes", ".", "EditMode", "oldMode", ",", "CmsMessageBundleEditorTypes", ".", "EditMode", "newMode", ")", "{", "if", "(", "m_model", ".", "isShowOptionsColumn", "(", "oldMode", ")", "!=", "m_model", ...
Show or hide the options column dependent on the provided edit mode. @param oldMode the old edit mode @param newMode the edit mode for which the options column's visibility should be adjusted.
[ "Show", "or", "hide", "the", "options", "column", "dependent", "on", "the", "provided", "edit", "mode", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L596-L610
158,234
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.adjustVisibleColumns
private void adjustVisibleColumns() { if (m_table.isColumnCollapsingAllowed()) { if ((m_model.hasDefaultValues()) || m_model.getBundleType().equals(BundleType.DESCRIPTOR)) { m_table.setColumnCollapsed(TableProperty.DEFAULT, false); } else { m_table.setCol...
java
private void adjustVisibleColumns() { if (m_table.isColumnCollapsingAllowed()) { if ((m_model.hasDefaultValues()) || m_model.getBundleType().equals(BundleType.DESCRIPTOR)) { m_table.setColumnCollapsed(TableProperty.DEFAULT, false); } else { m_table.setCol...
[ "private", "void", "adjustVisibleColumns", "(", ")", "{", "if", "(", "m_table", ".", "isColumnCollapsingAllowed", "(", ")", ")", "{", "if", "(", "(", "m_model", ".", "hasDefaultValues", "(", ")", ")", "||", "m_model", ".", "getBundleType", "(", ")", ".", ...
Adjust the visible columns.
[ "Adjust", "the", "visible", "columns", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L615-L631
158,235
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.cleanUpAction
private void cleanUpAction() { try { m_model.deleteDescriptorIfNecessary(); } catch (CmsException e) { LOG.error(m_messages.key(Messages.ERR_DELETING_DESCRIPTOR_0), e); } // unlock resource m_model.unlock(); }
java
private void cleanUpAction() { try { m_model.deleteDescriptorIfNecessary(); } catch (CmsException e) { LOG.error(m_messages.key(Messages.ERR_DELETING_DESCRIPTOR_0), e); } // unlock resource m_model.unlock(); }
[ "private", "void", "cleanUpAction", "(", ")", "{", "try", "{", "m_model", ".", "deleteDescriptorIfNecessary", "(", ")", ";", "}", "catch", "(", "CmsException", "e", ")", "{", "LOG", ".", "error", "(", "m_messages", ".", "key", "(", "Messages", ".", "ERR_...
Unlock all edited resources.
[ "Unlock", "all", "edited", "resources", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L636-L645
158,236
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.createAddDescriptorButton
@SuppressWarnings("serial") private Component createAddDescriptorButton() { Button addDescriptorButton = CmsToolBar.createButton( FontOpenCms.COPY_LOCALE, m_messages.key(Messages.GUI_ADD_DESCRIPTOR_0)); addDescriptorButton.setDisableOnClick(true); addDescriptorButt...
java
@SuppressWarnings("serial") private Component createAddDescriptorButton() { Button addDescriptorButton = CmsToolBar.createButton( FontOpenCms.COPY_LOCALE, m_messages.key(Messages.GUI_ADD_DESCRIPTOR_0)); addDescriptorButton.setDisableOnClick(true); addDescriptorButt...
[ "@", "SuppressWarnings", "(", "\"serial\"", ")", "private", "Component", "createAddDescriptorButton", "(", ")", "{", "Button", "addDescriptorButton", "=", "CmsToolBar", ".", "createButton", "(", "FontOpenCms", ".", "COPY_LOCALE", ",", "m_messages", ".", "key", "(", ...
Returns a button component. On click, it triggers adding a bundle descriptor. @return a button for adding a descriptor to a bundle.
[ "Returns", "a", "button", "component", ".", "On", "click", "it", "triggers", "adding", "a", "bundle", "descriptor", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L651-L693
158,237
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.createCloseButton
@SuppressWarnings("serial") private Component createCloseButton() { Button closeBtn = CmsToolBar.createButton( FontOpenCms.CIRCLE_INV_CANCEL, m_messages.key(Messages.GUI_BUTTON_CANCEL_0)); closeBtn.addClickListener(new ClickListener() { public void buttonClick(C...
java
@SuppressWarnings("serial") private Component createCloseButton() { Button closeBtn = CmsToolBar.createButton( FontOpenCms.CIRCLE_INV_CANCEL, m_messages.key(Messages.GUI_BUTTON_CANCEL_0)); closeBtn.addClickListener(new ClickListener() { public void buttonClick(C...
[ "@", "SuppressWarnings", "(", "\"serial\"", ")", "private", "Component", "createCloseButton", "(", ")", "{", "Button", "closeBtn", "=", "CmsToolBar", ".", "createButton", "(", "FontOpenCms", ".", "CIRCLE_INV_CANCEL", ",", "m_messages", ".", "key", "(", "Messages",...
Create the close button UI Component. @return the close button.
[ "Create", "the", "close", "button", "UI", "Component", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L699-L714
158,238
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.createConvertToPropertyBundleButton
private Component createConvertToPropertyBundleButton() { Button addDescriptorButton = CmsToolBar.createButton( FontOpenCms.SETTINGS, m_messages.key(Messages.GUI_CONVERT_TO_PROPERTY_BUNDLE_0)); addDescriptorButton.setDisableOnClick(true); addDescriptorButton.addClickLi...
java
private Component createConvertToPropertyBundleButton() { Button addDescriptorButton = CmsToolBar.createButton( FontOpenCms.SETTINGS, m_messages.key(Messages.GUI_CONVERT_TO_PROPERTY_BUNDLE_0)); addDescriptorButton.setDisableOnClick(true); addDescriptorButton.addClickLi...
[ "private", "Component", "createConvertToPropertyBundleButton", "(", ")", "{", "Button", "addDescriptorButton", "=", "CmsToolBar", ".", "createButton", "(", "FontOpenCms", ".", "SETTINGS", ",", "m_messages", ".", "key", "(", "Messages", ".", "GUI_CONVERT_TO_PROPERTY_BUND...
Creates the button for converting an XML bundle in a property bundle. @return the created button.
[ "Creates", "the", "button", "for", "converting", "an", "XML", "bundle", "in", "a", "property", "bundle", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L720-L744
158,239
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.createMainComponent
private Component createMainComponent() throws IOException, CmsException { VerticalLayout mainComponent = new VerticalLayout(); mainComponent.setSizeFull(); mainComponent.addStyleName("o-message-bundle-editor"); m_table = createTable(); Panel navigator = new Panel(); nav...
java
private Component createMainComponent() throws IOException, CmsException { VerticalLayout mainComponent = new VerticalLayout(); mainComponent.setSizeFull(); mainComponent.addStyleName("o-message-bundle-editor"); m_table = createTable(); Panel navigator = new Panel(); nav...
[ "private", "Component", "createMainComponent", "(", ")", "throws", "IOException", ",", "CmsException", "{", "VerticalLayout", "mainComponent", "=", "new", "VerticalLayout", "(", ")", ";", "mainComponent", ".", "setSizeFull", "(", ")", ";", "mainComponent", ".", "a...
Creates the main component of the editor with all sub-components. @return the completely filled main component of the editor. @throws IOException thrown if setting the table's content data source fails. @throws CmsException thrown if setting the table's content data source fails.
[ "Creates", "the", "main", "component", "of", "the", "editor", "with", "all", "sub", "-", "components", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L752-L769
158,240
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.createSaveExitButton
@SuppressWarnings("serial") private Button createSaveExitButton() { Button saveExitBtn = CmsToolBar.createButton( FontOpenCms.SAVE_EXIT, m_messages.key(Messages.GUI_BUTTON_SAVE_AND_EXIT_0)); saveExitBtn.addClickListener(new ClickListener() { public void buttonCl...
java
@SuppressWarnings("serial") private Button createSaveExitButton() { Button saveExitBtn = CmsToolBar.createButton( FontOpenCms.SAVE_EXIT, m_messages.key(Messages.GUI_BUTTON_SAVE_AND_EXIT_0)); saveExitBtn.addClickListener(new ClickListener() { public void buttonCl...
[ "@", "SuppressWarnings", "(", "\"serial\"", ")", "private", "Button", "createSaveExitButton", "(", ")", "{", "Button", "saveExitBtn", "=", "CmsToolBar", ".", "createButton", "(", "FontOpenCms", ".", "SAVE_EXIT", ",", "m_messages", ".", "key", "(", "Messages", "....
Creates the save and exit button UI Component. @return the save and exit button.
[ "Creates", "the", "save", "and", "exit", "button", "UI", "Component", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L811-L828
158,241
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.fillToolBar
private void fillToolBar(final I_CmsAppUIContext context) { context.setAppTitle(m_messages.key(Messages.GUI_APP_TITLE_0)); // create components Component publishBtn = createPublishButton(); m_saveBtn = createSaveButton(); m_saveExitBtn = createSaveExitButton(); Componen...
java
private void fillToolBar(final I_CmsAppUIContext context) { context.setAppTitle(m_messages.key(Messages.GUI_APP_TITLE_0)); // create components Component publishBtn = createPublishButton(); m_saveBtn = createSaveButton(); m_saveExitBtn = createSaveExitButton(); Componen...
[ "private", "void", "fillToolBar", "(", "final", "I_CmsAppUIContext", "context", ")", "{", "context", ".", "setAppTitle", "(", "m_messages", ".", "key", "(", "Messages", ".", "GUI_APP_TITLE_0", ")", ")", ";", "// create components", "Component", "publishBtn", "=", ...
Adds Editor specific UI components to the toolbar. @param context The context that provides access to the toolbar.
[ "Adds", "Editor", "specific", "UI", "components", "to", "the", "toolbar", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L925-L950
158,242
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.handleChange
private void handleChange(Object propertyId) { if (!m_saveBtn.isEnabled()) { m_saveBtn.setEnabled(true); m_saveExitBtn.setEnabled(true); } m_model.handleChange(propertyId); }
java
private void handleChange(Object propertyId) { if (!m_saveBtn.isEnabled()) { m_saveBtn.setEnabled(true); m_saveExitBtn.setEnabled(true); } m_model.handleChange(propertyId); }
[ "private", "void", "handleChange", "(", "Object", "propertyId", ")", "{", "if", "(", "!", "m_saveBtn", ".", "isEnabled", "(", ")", ")", "{", "m_saveBtn", ".", "setEnabled", "(", "true", ")", ";", "m_saveExitBtn", ".", "setEnabled", "(", "true", ")", ";",...
Handle a value change. @param propertyId the column in which the value has changed.
[ "Handle", "a", "value", "change", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L965-L973
158,243
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.initFieldFactories
private void initFieldFactories() { if (m_model.hasMasterMode()) { TranslateTableFieldFactory masterFieldFactory = new CmsMessageBundleEditorTypes.TranslateTableFieldFactory( m_table, m_model.getEditableColumns(CmsMessageBundleEditorTypes.EditMode.MASTER)); ...
java
private void initFieldFactories() { if (m_model.hasMasterMode()) { TranslateTableFieldFactory masterFieldFactory = new CmsMessageBundleEditorTypes.TranslateTableFieldFactory( m_table, m_model.getEditableColumns(CmsMessageBundleEditorTypes.EditMode.MASTER)); ...
[ "private", "void", "initFieldFactories", "(", ")", "{", "if", "(", "m_model", ".", "hasMasterMode", "(", ")", ")", "{", "TranslateTableFieldFactory", "masterFieldFactory", "=", "new", "CmsMessageBundleEditorTypes", ".", "TranslateTableFieldFactory", "(", "m_table", ",...
Initialize the field factories for the messages table.
[ "Initialize", "the", "field", "factories", "for", "the", "messages", "table", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L978-L993
158,244
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.initStyleGenerators
private void initStyleGenerators() { if (m_model.hasMasterMode()) { m_styleGenerators.put( CmsMessageBundleEditorTypes.EditMode.MASTER, new CmsMessageBundleEditorTypes.TranslateTableCellStyleGenerator( m_model.getEditableColumns(CmsMessageBundleEd...
java
private void initStyleGenerators() { if (m_model.hasMasterMode()) { m_styleGenerators.put( CmsMessageBundleEditorTypes.EditMode.MASTER, new CmsMessageBundleEditorTypes.TranslateTableCellStyleGenerator( m_model.getEditableColumns(CmsMessageBundleEd...
[ "private", "void", "initStyleGenerators", "(", ")", "{", "if", "(", "m_model", ".", "hasMasterMode", "(", ")", ")", "{", "m_styleGenerators", ".", "put", "(", "CmsMessageBundleEditorTypes", ".", "EditMode", ".", "MASTER", ",", "new", "CmsMessageBundleEditorTypes",...
Initialize the style generators for the messages table.
[ "Initialize", "the", "style", "generators", "for", "the", "messages", "table", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L998-L1011
158,245
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java
CmsMessageBundleEditor.keyAlreadyExists
private boolean keyAlreadyExists(String newKey) { Collection<?> itemIds = m_table.getItemIds(); for (Object itemId : itemIds) { if (m_table.getItem(itemId).getItemProperty(TableProperty.KEY).getValue().equals(newKey)) { return true; } } return fal...
java
private boolean keyAlreadyExists(String newKey) { Collection<?> itemIds = m_table.getItemIds(); for (Object itemId : itemIds) { if (m_table.getItem(itemId).getItemProperty(TableProperty.KEY).getValue().equals(newKey)) { return true; } } return fal...
[ "private", "boolean", "keyAlreadyExists", "(", "String", "newKey", ")", "{", "Collection", "<", "?", ">", "itemIds", "=", "m_table", ".", "getItemIds", "(", ")", ";", "for", "(", "Object", "itemId", ":", "itemIds", ")", "{", "if", "(", "m_table", ".", ...
Checks if a key already exists. @param newKey the key to check for. @return <code>true</code> if the key already exists, <code>false</code> otherwise.
[ "Checks", "if", "a", "key", "already", "exists", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditor.java#L1018-L1027
158,246
alkacon/opencms-core
src-gwt/org/opencms/ugc/client/CmsUgcWrapper.java
CmsUgcWrapper.uploadFields
public void uploadFields( final Set<String> fields, final Function<Map<String, String>, Void> filenameCallback, final I_CmsErrorCallback errorCallback) { disableAllFileFieldsExcept(fields); final String id = CmsJsUtils.generateRandomId(); updateFormAction(id); //...
java
public void uploadFields( final Set<String> fields, final Function<Map<String, String>, Void> filenameCallback, final I_CmsErrorCallback errorCallback) { disableAllFileFieldsExcept(fields); final String id = CmsJsUtils.generateRandomId(); updateFormAction(id); //...
[ "public", "void", "uploadFields", "(", "final", "Set", "<", "String", ">", "fields", ",", "final", "Function", "<", "Map", "<", "String", ",", "String", ">", ",", "Void", ">", "filenameCallback", ",", "final", "I_CmsErrorCallback", "errorCallback", ")", "{",...
Uploads files from the given file input fields.<p< @param fields the set of names of fields containing the files to upload @param filenameCallback the callback to call with the resulting map from field names to file paths @param errorCallback the callback to call with an error message
[ "Uploads", "files", "from", "the", "given", "file", "input", "fields", ".", "<p<" ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/ugc/client/CmsUgcWrapper.java#L99-L141
158,247
alkacon/opencms-core
src/org/opencms/jsp/util/CmsJspElFunctions.java
CmsJspElFunctions.convertResource
public static CmsJspResourceWrapper convertResource(CmsObject cms, Object input) throws CmsException { CmsJspResourceWrapper result; if (input instanceof CmsResource) { result = CmsJspResourceWrapper.wrap(cms, (CmsResource)input); } else { result = CmsJspResourceWrapper....
java
public static CmsJspResourceWrapper convertResource(CmsObject cms, Object input) throws CmsException { CmsJspResourceWrapper result; if (input instanceof CmsResource) { result = CmsJspResourceWrapper.wrap(cms, (CmsResource)input); } else { result = CmsJspResourceWrapper....
[ "public", "static", "CmsJspResourceWrapper", "convertResource", "(", "CmsObject", "cms", ",", "Object", "input", ")", "throws", "CmsException", "{", "CmsJspResourceWrapper", "result", ";", "if", "(", "input", "instanceof", "CmsResource", ")", "{", "result", "=", "...
Returns a resource wrapper created from the input. The wrapped result of {@link #convertRawResource(CmsObject, Object)} is returned. @param cms the current OpenCms user context @param input the input to create a resource from @return a resource wrapper created from the given Object @throws CmsException in case of e...
[ "Returns", "a", "resource", "wrapper", "created", "from", "the", "input", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/util/CmsJspElFunctions.java#L365-L374
158,248
alkacon/opencms-core
src/org/opencms/jsp/util/CmsJspElFunctions.java
CmsJspElFunctions.convertResourceList
public static List<CmsJspResourceWrapper> convertResourceList(CmsObject cms, List<CmsResource> list) { List<CmsJspResourceWrapper> result = new ArrayList<CmsJspResourceWrapper>(list.size()); for (CmsResource res : list) { result.add(CmsJspResourceWrapper.wrap(cms, res)); } r...
java
public static List<CmsJspResourceWrapper> convertResourceList(CmsObject cms, List<CmsResource> list) { List<CmsJspResourceWrapper> result = new ArrayList<CmsJspResourceWrapper>(list.size()); for (CmsResource res : list) { result.add(CmsJspResourceWrapper.wrap(cms, res)); } r...
[ "public", "static", "List", "<", "CmsJspResourceWrapper", ">", "convertResourceList", "(", "CmsObject", "cms", ",", "List", "<", "CmsResource", ">", "list", ")", "{", "List", "<", "CmsJspResourceWrapper", ">", "result", "=", "new", "ArrayList", "<", "CmsJspResou...
Returns a list of resource wrappers created from the input list of resources. @param cms the current OpenCms user context @param list the list to create the resource wrapper list from @return the list of wrapped resources.
[ "Returns", "a", "list", "of", "resource", "wrappers", "created", "from", "the", "input", "list", "of", "resources", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/util/CmsJspElFunctions.java#L384-L391
158,249
alkacon/opencms-core
src/org/opencms/jsp/search/config/CmsSearchConfigurationPagination.java
CmsSearchConfigurationPagination.create
public static I_CmsSearchConfigurationPagination create( String pageParam, List<Integer> pageSizes, Integer pageNavLength) { return (pageParam != null) || (pageSizes != null) || (pageNavLength != null) ? new CmsSearchConfigurationPagination(pageParam, pageSizes, pageNavLength) ...
java
public static I_CmsSearchConfigurationPagination create( String pageParam, List<Integer> pageSizes, Integer pageNavLength) { return (pageParam != null) || (pageSizes != null) || (pageNavLength != null) ? new CmsSearchConfigurationPagination(pageParam, pageSizes, pageNavLength) ...
[ "public", "static", "I_CmsSearchConfigurationPagination", "create", "(", "String", "pageParam", ",", "List", "<", "Integer", ">", "pageSizes", ",", "Integer", "pageNavLength", ")", "{", "return", "(", "pageParam", "!=", "null", ")", "||", "(", "pageSizes", "!=",...
Creates a new pagination configuration if at least one of the provided parameters is not null. Otherwise returns null. @param pageParam The request parameter used to send the current page number. @param pageSizes The page sizes for the first pages. The last provided size is the size of all following pages. @param pageN...
[ "Creates", "a", "new", "pagination", "configuration", "if", "at", "least", "one", "of", "the", "provided", "parameters", "is", "not", "null", ".", "Otherwise", "returns", "null", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/search/config/CmsSearchConfigurationPagination.java#L98-L107
158,250
alkacon/opencms-core
src/org/opencms/search/CmsSearchUtil.java
CmsSearchUtil.getDateCreatedTimeRangeFilterQuery
public static String getDateCreatedTimeRangeFilterQuery(String searchField, long startTime, long endTime) { String sStartTime = null; String sEndTime = null; // Convert startTime to ISO 8601 format if ((startTime > Long.MIN_VALUE) && (startTime < Long.MAX_VALUE)) { sStartTi...
java
public static String getDateCreatedTimeRangeFilterQuery(String searchField, long startTime, long endTime) { String sStartTime = null; String sEndTime = null; // Convert startTime to ISO 8601 format if ((startTime > Long.MIN_VALUE) && (startTime < Long.MAX_VALUE)) { sStartTi...
[ "public", "static", "String", "getDateCreatedTimeRangeFilterQuery", "(", "String", "searchField", ",", "long", "startTime", ",", "long", "endTime", ")", "{", "String", "sStartTime", "=", "null", ";", "String", "sEndTime", "=", "null", ";", "// Convert startTime to I...
Returns a time interval as Solr compatible query string. @param searchField the field to search for. @param startTime the lower limit of the interval. @param endTime the upper limit of the interval. @return Solr compatible query string.
[ "Returns", "a", "time", "interval", "as", "Solr", "compatible", "query", "string", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/search/CmsSearchUtil.java#L209-L229
158,251
alkacon/opencms-core
src/org/opencms/search/CmsSearchUtil.java
CmsSearchUtil.getSolrRangeString
public static String getSolrRangeString(String from, String to) { // If a parameter is not initialized, use the asterisk '*' operator if (CmsStringUtil.isEmptyOrWhitespaceOnly(from)) { from = "*"; } if (CmsStringUtil.isEmptyOrWhitespaceOnly(to)) { to = "*"; ...
java
public static String getSolrRangeString(String from, String to) { // If a parameter is not initialized, use the asterisk '*' operator if (CmsStringUtil.isEmptyOrWhitespaceOnly(from)) { from = "*"; } if (CmsStringUtil.isEmptyOrWhitespaceOnly(to)) { to = "*"; ...
[ "public", "static", "String", "getSolrRangeString", "(", "String", "from", ",", "String", "to", ")", "{", "// If a parameter is not initialized, use the asterisk '*' operator", "if", "(", "CmsStringUtil", ".", "isEmptyOrWhitespaceOnly", "(", "from", ")", ")", "{", "from...
Returns a string that represents a valid Solr query range. @param from Lower bound of the query range. @param to Upper bound of the query range. @return String that represents a Solr query range.
[ "Returns", "a", "string", "that", "represents", "a", "valid", "Solr", "query", "range", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/search/CmsSearchUtil.java#L277-L289
158,252
alkacon/opencms-core
src/org/opencms/search/CmsSearchUtil.java
CmsSearchUtil.toContentStreams
public static Collection<ContentStream> toContentStreams(final String str, final String contentType) { if (str == null) { return null; } ArrayList<ContentStream> streams = new ArrayList<>(1); ContentStreamBase ccc = new ContentStreamBase.StringStream(str); ccc.setCo...
java
public static Collection<ContentStream> toContentStreams(final String str, final String contentType) { if (str == null) { return null; } ArrayList<ContentStream> streams = new ArrayList<>(1); ContentStreamBase ccc = new ContentStreamBase.StringStream(str); ccc.setCo...
[ "public", "static", "Collection", "<", "ContentStream", ">", "toContentStreams", "(", "final", "String", "str", ",", "final", "String", "contentType", ")", "{", "if", "(", "str", "==", "null", ")", "{", "return", "null", ";", "}", "ArrayList", "<", "Conten...
Take a string and make it an iterable ContentStream
[ "Take", "a", "string", "and", "make", "it", "an", "iterable", "ContentStream" ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/search/CmsSearchUtil.java#L390-L401
158,253
alkacon/opencms-core
src/org/opencms/jsp/search/result/CmsSearchStateParameters.java
CmsSearchStateParameters.paramMapToString
public static String paramMapToString(final Map<String, String[]> parameters) { final StringBuffer result = new StringBuffer(); for (final String key : parameters.keySet()) { String[] values = parameters.get(key); if (null == values) { result.append(key).append('...
java
public static String paramMapToString(final Map<String, String[]> parameters) { final StringBuffer result = new StringBuffer(); for (final String key : parameters.keySet()) { String[] values = parameters.get(key); if (null == values) { result.append(key).append('...
[ "public", "static", "String", "paramMapToString", "(", "final", "Map", "<", "String", ",", "String", "[", "]", ">", "parameters", ")", "{", "final", "StringBuffer", "result", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "final", "String", "key", ...
Converts a parameter map to the parameter string. @param parameters the parameter map. @return the parameter string.
[ "Converts", "a", "parameter", "map", "to", "the", "parameter", "string", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/search/result/CmsSearchStateParameters.java#L91-L109
158,254
alkacon/opencms-core
src/org/opencms/jsp/search/result/CmsSearchStateParameters.java
CmsSearchStateParameters.getFacetParamKey
String getFacetParamKey(String facet) { I_CmsSearchControllerFacetField fieldFacet = m_result.getController().getFieldFacets().getFieldFacetController().get( facet); if (fieldFacet != null) { return fieldFacet.getConfig().getParamKey(); } I_CmsSearchControllerFac...
java
String getFacetParamKey(String facet) { I_CmsSearchControllerFacetField fieldFacet = m_result.getController().getFieldFacets().getFieldFacetController().get( facet); if (fieldFacet != null) { return fieldFacet.getConfig().getParamKey(); } I_CmsSearchControllerFac...
[ "String", "getFacetParamKey", "(", "String", "facet", ")", "{", "I_CmsSearchControllerFacetField", "fieldFacet", "=", "m_result", ".", "getController", "(", ")", ".", "getFieldFacets", "(", ")", ".", "getFieldFacetController", "(", ")", ".", "get", "(", "facet", ...
Returns the parameter key of the facet with the given name. @param facet the facet's name. @return the parameter key for the facet.
[ "Returns", "the", "parameter", "key", "of", "the", "facet", "with", "the", "given", "name", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/search/result/CmsSearchStateParameters.java#L407-L428
158,255
alkacon/opencms-core
src/org/opencms/ui/CmsVaadinUtils.java
CmsVaadinUtils.closeWindow
public static void closeWindow(Component component) { Window window = getWindow(component); if (window != null) { window.close(); } }
java
public static void closeWindow(Component component) { Window window = getWindow(component); if (window != null) { window.close(); } }
[ "public", "static", "void", "closeWindow", "(", "Component", "component", ")", "{", "Window", "window", "=", "getWindow", "(", "component", ")", ";", "if", "(", "window", "!=", "null", ")", "{", "window", ".", "close", "(", ")", ";", "}", "}" ]
Closes the window containing the given component. @param component a component
[ "Closes", "the", "window", "containing", "the", "given", "component", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/CmsVaadinUtils.java#L294-L300
158,256
alkacon/opencms-core
src/org/opencms/ui/CmsVaadinUtils.java
CmsVaadinUtils.defaultHandleContextMenuForMultiselect
@SuppressWarnings("unchecked") public static <T> void defaultHandleContextMenuForMultiselect( Table table, CmsContextMenu menu, ItemClickEvent event, List<I_CmsSimpleContextMenuEntry<Collection<T>>> entries) { if (!event.isCtrlKey() && !event.isShiftKey()) { if (...
java
@SuppressWarnings("unchecked") public static <T> void defaultHandleContextMenuForMultiselect( Table table, CmsContextMenu menu, ItemClickEvent event, List<I_CmsSimpleContextMenuEntry<Collection<T>>> entries) { if (!event.isCtrlKey() && !event.isShiftKey()) { if (...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "<", "T", ">", "void", "defaultHandleContextMenuForMultiselect", "(", "Table", "table", ",", "CmsContextMenu", "menu", ",", "ItemClickEvent", "event", ",", "List", "<", "I_CmsSimpleContextMenuEntr...
Simple context menu handler for multi-select tables. @param table the table @param menu the table's context menu @param event the click event @param entries the context menu entries
[ "Simple", "context", "menu", "handler", "for", "multi", "-", "select", "tables", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/CmsVaadinUtils.java#L331-L350
158,257
alkacon/opencms-core
src/org/opencms/ui/CmsVaadinUtils.java
CmsVaadinUtils.getGroupsOfUser
public static IndexedContainer getGroupsOfUser( CmsObject cms, CmsUser user, String caption, String iconProp, String ou, String propStatus, Function<CmsGroup, CmsCssIcon> iconProvider) { IndexedContainer container = new IndexedContainer(); contain...
java
public static IndexedContainer getGroupsOfUser( CmsObject cms, CmsUser user, String caption, String iconProp, String ou, String propStatus, Function<CmsGroup, CmsCssIcon> iconProvider) { IndexedContainer container = new IndexedContainer(); contain...
[ "public", "static", "IndexedContainer", "getGroupsOfUser", "(", "CmsObject", "cms", ",", "CmsUser", "user", ",", "String", "caption", ",", "String", "iconProp", ",", "String", "ou", ",", "String", "propStatus", ",", "Function", "<", "CmsGroup", ",", "CmsCssIcon"...
Gets container with alls groups of a certain user. @param cms cmsobject @param user to find groups for @param caption caption property @param iconProp property @param ou ou @param propStatus status property @param iconProvider the icon provider @return Indexed Container
[ "Gets", "container", "with", "alls", "groups", "of", "a", "certain", "user", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/CmsVaadinUtils.java#L543-L572
158,258
alkacon/opencms-core
src/org/opencms/ui/CmsVaadinUtils.java
CmsVaadinUtils.getPrincipalContainer
public static IndexedContainer getPrincipalContainer( CmsObject cms, List<? extends I_CmsPrincipal> list, String captionID, String descID, String iconID, String ouID, String icon, List<FontIcon> iconList) { IndexedContainer res = new IndexedContai...
java
public static IndexedContainer getPrincipalContainer( CmsObject cms, List<? extends I_CmsPrincipal> list, String captionID, String descID, String iconID, String ouID, String icon, List<FontIcon> iconList) { IndexedContainer res = new IndexedContai...
[ "public", "static", "IndexedContainer", "getPrincipalContainer", "(", "CmsObject", "cms", ",", "List", "<", "?", "extends", "I_CmsPrincipal", ">", "list", ",", "String", "captionID", ",", "String", "descID", ",", "String", "iconID", ",", "String", "ouID", ",", ...
Get container for principal. @param cms cmsobject @param list of principals @param captionID caption id @param descID description id @param iconID icon id @param ouID ou id @param icon icon @param iconList iconlist @return indexedcontainer
[ "Get", "container", "for", "principal", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/CmsVaadinUtils.java#L740-L774
158,259
alkacon/opencms-core
src/org/opencms/ui/CmsVaadinUtils.java
CmsVaadinUtils.setFilterBoxStyle
public static void setFilterBoxStyle(TextField searchBox) { searchBox.setIcon(FontOpenCms.FILTER); searchBox.setPlaceholder( org.opencms.ui.apps.Messages.get().getBundle(UI.getCurrent().getLocale()).key( org.opencms.ui.apps.Messages.GUI_EXPLORER_FILTER_0)); searchBo...
java
public static void setFilterBoxStyle(TextField searchBox) { searchBox.setIcon(FontOpenCms.FILTER); searchBox.setPlaceholder( org.opencms.ui.apps.Messages.get().getBundle(UI.getCurrent().getLocale()).key( org.opencms.ui.apps.Messages.GUI_EXPLORER_FILTER_0)); searchBo...
[ "public", "static", "void", "setFilterBoxStyle", "(", "TextField", "searchBox", ")", "{", "searchBox", ".", "setIcon", "(", "FontOpenCms", ".", "FILTER", ")", ";", "searchBox", ".", "setPlaceholder", "(", "org", ".", "opencms", ".", "ui", ".", "apps", ".", ...
Configures a text field to look like a filter box for a table. @param searchBox the text field to configure
[ "Configures", "a", "text", "field", "to", "look", "like", "a", "filter", "box", "for", "a", "table", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/CmsVaadinUtils.java#L1125-L1133
158,260
alkacon/opencms-core
src/org/opencms/importexport/CmsImportHelper.java
CmsImportHelper.getZipEntry
protected ZipEntry getZipEntry(String filename) throws ZipException { // yes ZipEntry entry = getZipFile().getEntry(filename); // path to file might be relative, too if ((entry == null) && filename.startsWith("/")) { entry = m_zipFile.getEntry(filename.substring(1)); ...
java
protected ZipEntry getZipEntry(String filename) throws ZipException { // yes ZipEntry entry = getZipFile().getEntry(filename); // path to file might be relative, too if ((entry == null) && filename.startsWith("/")) { entry = m_zipFile.getEntry(filename.substring(1)); ...
[ "protected", "ZipEntry", "getZipEntry", "(", "String", "filename", ")", "throws", "ZipException", "{", "// yes", "ZipEntry", "entry", "=", "getZipFile", "(", ")", ".", "getEntry", "(", "filename", ")", ";", "// path to file might be relative, too", "if", "(", "(",...
Returns the zip entry for a file in the archive. @param filename the file name @return the zip entry for the file with the provided name @throws ZipException thrown if the file is not in the zip archive
[ "Returns", "the", "zip", "entry", "for", "a", "file", "in", "the", "archive", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/importexport/CmsImportHelper.java#L336-L349
158,261
alkacon/opencms-core
src/org/opencms/notification/A_CmsNotification.java
A_CmsNotification.appenHtmlFooter
protected void appenHtmlFooter(StringBuffer buffer) { if (m_configuredFooter != null) { buffer.append(m_configuredFooter); } else { buffer.append(" </body>\r\n" + "</html>"); } }
java
protected void appenHtmlFooter(StringBuffer buffer) { if (m_configuredFooter != null) { buffer.append(m_configuredFooter); } else { buffer.append(" </body>\r\n" + "</html>"); } }
[ "protected", "void", "appenHtmlFooter", "(", "StringBuffer", "buffer", ")", "{", "if", "(", "m_configuredFooter", "!=", "null", ")", "{", "buffer", ".", "append", "(", "m_configuredFooter", ")", ";", "}", "else", "{", "buffer", ".", "append", "(", "\" </bod...
Append the html-code to finish a html mail message to the given buffer. @param buffer The StringBuffer to add the html code to.
[ "Append", "the", "html", "-", "code", "to", "finish", "a", "html", "mail", "message", "to", "the", "given", "buffer", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/notification/A_CmsNotification.java#L305-L312
158,262
alkacon/opencms-core
src/org/opencms/ui/apps/modules/CmsModuleApp.java
CmsModuleApp.openReport
public void openReport(String newState, A_CmsReportThread thread, String label) { setReport(newState, thread); m_labels.put(thread, label); openSubView(newState, true); }
java
public void openReport(String newState, A_CmsReportThread thread, String label) { setReport(newState, thread); m_labels.put(thread, label); openSubView(newState, true); }
[ "public", "void", "openReport", "(", "String", "newState", ",", "A_CmsReportThread", "thread", ",", "String", "label", ")", "{", "setReport", "(", "newState", ",", "thread", ")", ";", "m_labels", ".", "put", "(", "thread", ",", "label", ")", ";", "openSubV...
Changes to a new sub-view and stores a report to be displayed by that subview.<p< @param newState the new state @param thread the report thread which should be displayed in the sub view @param label the label to display for the report
[ "Changes", "to", "a", "new", "sub", "-", "view", "and", "stores", "a", "report", "to", "be", "displayed", "by", "that", "subview", ".", "<p<" ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/modules/CmsModuleApp.java#L667-L672
158,263
alkacon/opencms-core
src/org/opencms/ui/favorites/CmsFavoriteEntry.java
CmsFavoriteEntry.readId
public static CmsUUID readId(JSONObject obj, String key) { String strValue = obj.optString(key); if (!CmsUUID.isValidUUID(strValue)) { return null; } return new CmsUUID(strValue); }
java
public static CmsUUID readId(JSONObject obj, String key) { String strValue = obj.optString(key); if (!CmsUUID.isValidUUID(strValue)) { return null; } return new CmsUUID(strValue); }
[ "public", "static", "CmsUUID", "readId", "(", "JSONObject", "obj", ",", "String", "key", ")", "{", "String", "strValue", "=", "obj", ".", "optString", "(", "key", ")", ";", "if", "(", "!", "CmsUUID", ".", "isValidUUID", "(", "strValue", ")", ")", "{", ...
Reads a UUID from a JSON object. Returns null if the JSON value for the given key is not present or not a valid UUID @param obj the JSON object @param key the JSON key @return the UUID
[ "Reads", "a", "UUID", "from", "a", "JSON", "object", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/favorites/CmsFavoriteEntry.java#L157-L164
158,264
alkacon/opencms-core
src/org/opencms/ui/favorites/CmsFavoriteEntry.java
CmsFavoriteEntry.setSiteRoot
public void setSiteRoot(String siteRoot) { if (siteRoot != null) { siteRoot = siteRoot.replaceFirst("/$", ""); } m_siteRoot = siteRoot; }
java
public void setSiteRoot(String siteRoot) { if (siteRoot != null) { siteRoot = siteRoot.replaceFirst("/$", ""); } m_siteRoot = siteRoot; }
[ "public", "void", "setSiteRoot", "(", "String", "siteRoot", ")", "{", "if", "(", "siteRoot", "!=", "null", ")", "{", "siteRoot", "=", "siteRoot", ".", "replaceFirst", "(", "\"/$\"", ",", "\"\"", ")", ";", "}", "m_siteRoot", "=", "siteRoot", ";", "}" ]
Sets the site root. @param siteRoot the site root
[ "Sets", "the", "site", "root", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/favorites/CmsFavoriteEntry.java#L241-L247
158,265
alkacon/opencms-core
src/org/opencms/ui/favorites/CmsFavoriteEntry.java
CmsFavoriteEntry.toJson
public JSONObject toJson() throws JSONException { JSONObject result = new JSONObject(); if (m_detailId != null) { result.put(JSON_DETAIL, "" + m_detailId); } if (m_siteRoot != null) { result.put(JSON_SITEROOT, m_siteRoot); } if (m_structureId != n...
java
public JSONObject toJson() throws JSONException { JSONObject result = new JSONObject(); if (m_detailId != null) { result.put(JSON_DETAIL, "" + m_detailId); } if (m_siteRoot != null) { result.put(JSON_SITEROOT, m_siteRoot); } if (m_structureId != n...
[ "public", "JSONObject", "toJson", "(", ")", "throws", "JSONException", "{", "JSONObject", "result", "=", "new", "JSONObject", "(", ")", ";", "if", "(", "m_detailId", "!=", "null", ")", "{", "result", ".", "put", "(", "JSON_DETAIL", ",", "\"\"", "+", "m_d...
Converts this object to JSON. @return the JSON representation @throws JSONException if JSON operations fail
[ "Converts", "this", "object", "to", "JSON", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/favorites/CmsFavoriteEntry.java#L275-L294
158,266
alkacon/opencms-core
src/org/opencms/ui/favorites/CmsFavoriteEntry.java
CmsFavoriteEntry.updateContextAndGetFavoriteUrl
public String updateContextAndGetFavoriteUrl(CmsObject cms) throws CmsException { CmsResourceFilter filter = CmsResourceFilter.IGNORE_EXPIRATION; CmsProject project = null; switch (getType()) { case explorerFolder: CmsResource folder = cms.readResource(getStructureId...
java
public String updateContextAndGetFavoriteUrl(CmsObject cms) throws CmsException { CmsResourceFilter filter = CmsResourceFilter.IGNORE_EXPIRATION; CmsProject project = null; switch (getType()) { case explorerFolder: CmsResource folder = cms.readResource(getStructureId...
[ "public", "String", "updateContextAndGetFavoriteUrl", "(", "CmsObject", "cms", ")", "throws", "CmsException", "{", "CmsResourceFilter", "filter", "=", "CmsResourceFilter", ".", "IGNORE_EXPIRATION", ";", "CmsProject", "project", "=", "null", ";", "switch", "(", "getTyp...
Prepares the CmsObject for jumping to this favorite location, and returns the appropriate URL. @param cms the CmsObject to initialize for jumping to the favorite @return the link for the favorite location @throws CmsException if something goes wrong
[ "Prepares", "the", "CmsObject", "for", "jumping", "to", "this", "favorite", "location", "and", "returns", "the", "appropriate", "URL", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/favorites/CmsFavoriteEntry.java#L304-L345
158,267
alkacon/opencms-core
src/org/opencms/ui/components/CmsToolBar.java
CmsToolBar.openFavoriteDialog
public static void openFavoriteDialog(CmsFileExplorer explorer) { try { CmsExplorerFavoriteContext context = new CmsExplorerFavoriteContext(A_CmsUI.getCmsObject(), explorer); CmsFavoriteDialog dialog = new CmsFavoriteDialog(context, new CmsFavoriteDAO(A_CmsUI.getCmsObject())); ...
java
public static void openFavoriteDialog(CmsFileExplorer explorer) { try { CmsExplorerFavoriteContext context = new CmsExplorerFavoriteContext(A_CmsUI.getCmsObject(), explorer); CmsFavoriteDialog dialog = new CmsFavoriteDialog(context, new CmsFavoriteDAO(A_CmsUI.getCmsObject())); ...
[ "public", "static", "void", "openFavoriteDialog", "(", "CmsFileExplorer", "explorer", ")", "{", "try", "{", "CmsExplorerFavoriteContext", "context", "=", "new", "CmsExplorerFavoriteContext", "(", "A_CmsUI", ".", "getCmsObject", "(", ")", ",", "explorer", ")", ";", ...
Opens the favorite dialog. @param explorer the explorer instance (null if not currently in explorer)
[ "Opens", "the", "favorite", "dialog", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/components/CmsToolBar.java#L294-L307
158,268
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditorTypes.java
CmsMessageBundleEditorTypes.getDescriptor
public static CmsResource getDescriptor(CmsObject cms, String basename) { CmsSolrQuery query = new CmsSolrQuery(); query.setResourceTypes(CmsMessageBundleEditorTypes.BundleType.DESCRIPTOR.toString()); query.setFilterQueries("filename:\"" + basename + CmsMessageBundleEditorTypes.Descriptor.POSTF...
java
public static CmsResource getDescriptor(CmsObject cms, String basename) { CmsSolrQuery query = new CmsSolrQuery(); query.setResourceTypes(CmsMessageBundleEditorTypes.BundleType.DESCRIPTOR.toString()); query.setFilterQueries("filename:\"" + basename + CmsMessageBundleEditorTypes.Descriptor.POSTF...
[ "public", "static", "CmsResource", "getDescriptor", "(", "CmsObject", "cms", ",", "String", "basename", ")", "{", "CmsSolrQuery", "query", "=", "new", "CmsSolrQuery", "(", ")", ";", "query", ".", "setResourceTypes", "(", "CmsMessageBundleEditorTypes", ".", "Bundle...
Returns the bundle descriptor for the bundle with the provided base name. @param cms {@link CmsObject} used for searching. @param basename the bundle base name, for which the descriptor is searched. @return the bundle descriptor, or <code>null</code> if it does not exist or searching fails.
[ "Returns", "the", "bundle", "descriptor", "for", "the", "bundle", "with", "the", "provided", "base", "name", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditorTypes.java#L976-L1007
158,269
alkacon/opencms-core
src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditorTypes.java
CmsMessageBundleEditorTypes.showWarning
static void showWarning(final String caption, final String description) { Notification warning = new Notification(caption, description, Type.WARNING_MESSAGE, true); warning.setDelayMsec(-1); warning.show(UI.getCurrent().getPage()); }
java
static void showWarning(final String caption, final String description) { Notification warning = new Notification(caption, description, Type.WARNING_MESSAGE, true); warning.setDelayMsec(-1); warning.show(UI.getCurrent().getPage()); }
[ "static", "void", "showWarning", "(", "final", "String", "caption", ",", "final", "String", "description", ")", "{", "Notification", "warning", "=", "new", "Notification", "(", "caption", ",", "description", ",", "Type", ".", "WARNING_MESSAGE", ",", "true", ")...
Displays a localized warning. @param caption the caption of the warning. @param description the description of the warning.
[ "Displays", "a", "localized", "warning", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/editors/messagebundle/CmsMessageBundleEditorTypes.java#L1014-L1020
158,270
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/input/datebox/CmsDateBox.java
CmsDateBox.setDateOnly
public void setDateOnly(boolean dateOnly) { if (m_dateOnly != dateOnly) { m_dateOnly = dateOnly; if (m_dateOnly) { m_time.removeFromParent(); m_am.removeFromParent(); m_pm.removeFromParent(); } else { m_timeFiel...
java
public void setDateOnly(boolean dateOnly) { if (m_dateOnly != dateOnly) { m_dateOnly = dateOnly; if (m_dateOnly) { m_time.removeFromParent(); m_am.removeFromParent(); m_pm.removeFromParent(); } else { m_timeFiel...
[ "public", "void", "setDateOnly", "(", "boolean", "dateOnly", ")", "{", "if", "(", "m_dateOnly", "!=", "dateOnly", ")", "{", "m_dateOnly", "=", "dateOnly", ";", "if", "(", "m_dateOnly", ")", "{", "m_time", ".", "removeFromParent", "(", ")", ";", "m_am", "...
Sets the value if the date only should be shown. @param dateOnly if the date only should be shown
[ "Sets", "the", "value", "if", "the", "date", "only", "should", "be", "shown", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/input/datebox/CmsDateBox.java#L558-L572
158,271
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelIndividualView.java
CmsPatternPanelIndividualView.addButtonClick
@UiHandler("m_addButton") void addButtonClick(ClickEvent e) { if (null != m_newDate.getValue()) { m_dateList.addDate(m_newDate.getValue()); m_newDate.setValue(null); if (handleChange()) { m_controller.setDates(m_dateList.getDates()); }...
java
@UiHandler("m_addButton") void addButtonClick(ClickEvent e) { if (null != m_newDate.getValue()) { m_dateList.addDate(m_newDate.getValue()); m_newDate.setValue(null); if (handleChange()) { m_controller.setDates(m_dateList.getDates()); }...
[ "@", "UiHandler", "(", "\"m_addButton\"", ")", "void", "addButtonClick", "(", "ClickEvent", "e", ")", "{", "if", "(", "null", "!=", "m_newDate", ".", "getValue", "(", ")", ")", "{", "m_dateList", ".", "addDate", "(", "m_newDate", ".", "getValue", "(", ")...
Handle click on "Add" button. @param e the click event.
[ "Handle", "click", "on", "Add", "button", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelIndividualView.java#L120-L130
158,272
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelIndividualView.java
CmsPatternPanelIndividualView.dateListValueChange
@UiHandler("m_dateList") void dateListValueChange(ValueChangeEvent<SortedSet<Date>> event) { if (handleChange()) { m_controller.setDates(event.getValue()); } }
java
@UiHandler("m_dateList") void dateListValueChange(ValueChangeEvent<SortedSet<Date>> event) { if (handleChange()) { m_controller.setDates(event.getValue()); } }
[ "@", "UiHandler", "(", "\"m_dateList\"", ")", "void", "dateListValueChange", "(", "ValueChangeEvent", "<", "SortedSet", "<", "Date", ">", ">", "event", ")", "{", "if", "(", "handleChange", "(", ")", ")", "{", "m_controller", ".", "setDates", "(", "event", ...
Handle value change event on the individual dates list. @param event the change event.
[ "Handle", "value", "change", "event", "on", "the", "individual", "dates", "list", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelIndividualView.java#L136-L142
158,273
alkacon/opencms-core
src/org/opencms/configuration/CmsParameterConfiguration.java
CmsParameterConfiguration.remove
@Override public String remove(Object key) { String result = m_configurationStrings.remove(key); m_configurationObjects.remove(key); return result; }
java
@Override public String remove(Object key) { String result = m_configurationStrings.remove(key); m_configurationObjects.remove(key); return result; }
[ "@", "Override", "public", "String", "remove", "(", "Object", "key", ")", "{", "String", "result", "=", "m_configurationStrings", ".", "remove", "(", "key", ")", ";", "m_configurationObjects", ".", "remove", "(", "key", ")", ";", "return", "result", ";", "...
Removes a parameter from this configuration. @param key the parameter to remove
[ "Removes", "a", "parameter", "from", "this", "configuration", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/configuration/CmsParameterConfiguration.java#L799-L805
158,274
alkacon/opencms-core
src/org/opencms/main/OpenCmsServlet.java
OpenCmsServlet.loadCustomErrorPage
private boolean loadCustomErrorPage( CmsObject cms, HttpServletRequest req, HttpServletResponse res, String rootPath) { try { // get the site of the error page resource CmsSite errorSite = OpenCms.getSiteManager().getSiteForRootPath(rootPath); ...
java
private boolean loadCustomErrorPage( CmsObject cms, HttpServletRequest req, HttpServletResponse res, String rootPath) { try { // get the site of the error page resource CmsSite errorSite = OpenCms.getSiteManager().getSiteForRootPath(rootPath); ...
[ "private", "boolean", "loadCustomErrorPage", "(", "CmsObject", "cms", ",", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ",", "String", "rootPath", ")", "{", "try", "{", "// get the site of the error page resource", "CmsSite", "errorSite", "=", "OpenCm...
Tries to load the custom error page at the given rootPath. @param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!) @param req the current request @param res the current response @param rootPath the VFS root path to the error page resource @return a flag, indicating if the error page...
[ "Tries", "to", "load", "the", "custom", "error", "page", "at", "the", "given", "rootPath", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/main/OpenCmsServlet.java#L364-L388
158,275
alkacon/opencms-core
src/org/opencms/main/OpenCmsServlet.java
OpenCmsServlet.tryCustomErrorPage
private boolean tryCustomErrorPage(CmsObject cms, HttpServletRequest req, HttpServletResponse res, int errorCode) { String siteRoot = OpenCms.getSiteManager().matchRequest(req).getSiteRoot(); CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(siteRoot); if (site != null) { /...
java
private boolean tryCustomErrorPage(CmsObject cms, HttpServletRequest req, HttpServletResponse res, int errorCode) { String siteRoot = OpenCms.getSiteManager().matchRequest(req).getSiteRoot(); CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(siteRoot); if (site != null) { /...
[ "private", "boolean", "tryCustomErrorPage", "(", "CmsObject", "cms", ",", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ",", "int", "errorCode", ")", "{", "String", "siteRoot", "=", "OpenCms", ".", "getSiteManager", "(", ")", ".", "matchRequest",...
Tries to load a site specific error page. If @param cms {@link CmsObject} used for reading the resource (site root and uri get adjusted!) @param req the current request @param res the current response @param errorCode the error code to display @return a flag, indicating if the custom error page could be loaded.
[ "Tries", "to", "load", "a", "site", "specific", "error", "page", ".", "If" ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/main/OpenCmsServlet.java#L398-L423
158,276
alkacon/opencms-core
src/org/opencms/ade/galleries/CmsGalleryService.java
CmsGalleryService.buildVfsEntryBeanForQuickSearch
private CmsVfsEntryBean buildVfsEntryBeanForQuickSearch( CmsResource resource, Multimap<CmsResource, CmsResource> childMap, Set<CmsResource> filterMatches, Set<String> parentPaths, boolean isRoot) throws CmsException { CmsObject cms = getCmsObject(); String t...
java
private CmsVfsEntryBean buildVfsEntryBeanForQuickSearch( CmsResource resource, Multimap<CmsResource, CmsResource> childMap, Set<CmsResource> filterMatches, Set<String> parentPaths, boolean isRoot) throws CmsException { CmsObject cms = getCmsObject(); String t...
[ "private", "CmsVfsEntryBean", "buildVfsEntryBeanForQuickSearch", "(", "CmsResource", "resource", ",", "Multimap", "<", "CmsResource", ",", "CmsResource", ">", "childMap", ",", "Set", "<", "CmsResource", ">", "filterMatches", ",", "Set", "<", "String", ">", "parentPa...
Recursively builds the VFS entry bean for the quick filtering function in the folder tab.<p< @param resource the resource @param childMap map from parent to child resources @param filterMatches the resources matching the filter @param parentPaths root paths of resources which are not leaves @param isRoot true if this ...
[ "Recursively", "builds", "the", "VFS", "entry", "bean", "for", "the", "quick", "filtering", "function", "in", "the", "folder", "tab", ".", "<p<" ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ade/galleries/CmsGalleryService.java#L1875-L1929
158,277
alkacon/opencms-core
src/org/opencms/loader/CmsJspLoader.java
CmsJspLoader.doPurge
protected void doPurge(Runnable afterPurgeAction) { if (LOG.isInfoEnabled()) { LOG.info( org.opencms.flex.Messages.get().getBundle().key( org.opencms.flex.Messages.LOG_FLEXCACHE_WILL_PURGE_JSP_REPOSITORY_0)); } File d; d = new File(getJsp...
java
protected void doPurge(Runnable afterPurgeAction) { if (LOG.isInfoEnabled()) { LOG.info( org.opencms.flex.Messages.get().getBundle().key( org.opencms.flex.Messages.LOG_FLEXCACHE_WILL_PURGE_JSP_REPOSITORY_0)); } File d; d = new File(getJsp...
[ "protected", "void", "doPurge", "(", "Runnable", "afterPurgeAction", ")", "{", "if", "(", "LOG", ".", "isInfoEnabled", "(", ")", ")", "{", "LOG", ".", "info", "(", "org", ".", "opencms", ".", "flex", ".", "Messages", ".", "get", "(", ")", ".", "getBu...
Purges the JSP repository.<p< @param afterPurgeAction the action to execute after purging
[ "Purges", "the", "JSP", "repository", ".", "<p<" ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/loader/CmsJspLoader.java#L1079-L1103
158,278
alkacon/opencms-core
src/org/opencms/rmi/CmsRemoteShellClient.java
CmsRemoteShellClient.wrongUsage
private void wrongUsage() { String usage = "Usage: java -cp $PATH_TO_OPENCMS_JAR org.opencms.rmi.CmsRemoteShellClient\n" + " -script=[path to script] (optional) \n" + " -registryPort=[port of RMI registry] (optional, default is " + CmsRemoteShellConstants.DEFAULT_PORT ...
java
private void wrongUsage() { String usage = "Usage: java -cp $PATH_TO_OPENCMS_JAR org.opencms.rmi.CmsRemoteShellClient\n" + " -script=[path to script] (optional) \n" + " -registryPort=[port of RMI registry] (optional, default is " + CmsRemoteShellConstants.DEFAULT_PORT ...
[ "private", "void", "wrongUsage", "(", ")", "{", "String", "usage", "=", "\"Usage: java -cp $PATH_TO_OPENCMS_JAR org.opencms.rmi.CmsRemoteShellClient\\n\"", "+", "\" -script=[path to script] (optional) \\n\"", "+", "\" -registryPort=[port of RMI registry] (optional, default is \"", ...
Displays text which shows the valid command line parameters, and then exits.
[ "Displays", "text", "which", "shows", "the", "valid", "command", "line", "parameters", "and", "then", "exits", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/rmi/CmsRemoteShellClient.java#L325-L335
158,279
alkacon/opencms-core
src/org/opencms/jsp/CmsJspTagSearch.java
CmsJspTagSearch.setAddContentInfo
public void setAddContentInfo(final Boolean doAddInfo) { if ((null != doAddInfo) && doAddInfo.booleanValue() && (null != m_addContentInfoForEntries)) { m_addContentInfoForEntries = Integer.valueOf(DEFAULT_CONTENTINFO_ROWS); } }
java
public void setAddContentInfo(final Boolean doAddInfo) { if ((null != doAddInfo) && doAddInfo.booleanValue() && (null != m_addContentInfoForEntries)) { m_addContentInfoForEntries = Integer.valueOf(DEFAULT_CONTENTINFO_ROWS); } }
[ "public", "void", "setAddContentInfo", "(", "final", "Boolean", "doAddInfo", ")", "{", "if", "(", "(", "null", "!=", "doAddInfo", ")", "&&", "doAddInfo", ".", "booleanValue", "(", ")", "&&", "(", "null", "!=", "m_addContentInfoForEntries", ")", ")", "{", "...
Setter for "addContentInfo", indicating if content information should be added. @param doAddInfo The value of the "addContentInfo" attribute of the tag
[ "Setter", "for", "addContentInfo", "indicating", "if", "content", "information", "should", "be", "added", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/CmsJspTagSearch.java#L261-L266
158,280
alkacon/opencms-core
src/org/opencms/jsp/CmsJspTagSearch.java
CmsJspTagSearch.setFileFormat
public void setFileFormat(String fileFormat) { if (fileFormat.toUpperCase().equals(FileFormat.JSON.toString())) { m_fileFormat = FileFormat.JSON; } }
java
public void setFileFormat(String fileFormat) { if (fileFormat.toUpperCase().equals(FileFormat.JSON.toString())) { m_fileFormat = FileFormat.JSON; } }
[ "public", "void", "setFileFormat", "(", "String", "fileFormat", ")", "{", "if", "(", "fileFormat", ".", "toUpperCase", "(", ")", ".", "equals", "(", "FileFormat", ".", "JSON", ".", "toString", "(", ")", ")", ")", "{", "m_fileFormat", "=", "FileFormat", "...
Setter for the file format. @param fileFormat File format the configuration file is in.
[ "Setter", "for", "the", "file", "format", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/CmsJspTagSearch.java#L297-L302
158,281
alkacon/opencms-core
src/org/opencms/jsp/CmsJspTagSearch.java
CmsJspTagSearch.addContentInfo
private void addContentInfo() { if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject() && (null == m_searchController.getCommon().getConfig().getSolrIndex()) && (null != m_addContentInfoForEntries)) { CmsSolrQuery query = new CmsSolrQuery(); m_searc...
java
private void addContentInfo() { if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject() && (null == m_searchController.getCommon().getConfig().getSolrIndex()) && (null != m_addContentInfoForEntries)) { CmsSolrQuery query = new CmsSolrQuery(); m_searc...
[ "private", "void", "addContentInfo", "(", ")", "{", "if", "(", "!", "m_cms", ".", "getRequestContext", "(", ")", ".", "getCurrentProject", "(", ")", ".", "isOnlineProject", "(", ")", "&&", "(", "null", "==", "m_searchController", ".", "getCommon", "(", ")"...
Adds the content info for the collected resources used in the "This page" publish dialog.
[ "Adds", "the", "content", "info", "for", "the", "collected", "resources", "used", "in", "the", "This", "page", "publish", "dialog", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/CmsJspTagSearch.java#L369-L392
158,282
alkacon/opencms-core
src/org/opencms/jsp/CmsJspTagSearch.java
CmsJspTagSearch.getSearchResults
private I_CmsSearchResultWrapper getSearchResults() { // The second parameter is just ignored - so it does not matter m_searchController.updateFromRequestParameters(pageContext.getRequest().getParameterMap(), false); I_CmsSearchControllerCommon common = m_searchController.getCommon(); /...
java
private I_CmsSearchResultWrapper getSearchResults() { // The second parameter is just ignored - so it does not matter m_searchController.updateFromRequestParameters(pageContext.getRequest().getParameterMap(), false); I_CmsSearchControllerCommon common = m_searchController.getCommon(); /...
[ "private", "I_CmsSearchResultWrapper", "getSearchResults", "(", ")", "{", "// The second parameter is just ignored - so it does not matter", "m_searchController", ".", "updateFromRequestParameters", "(", "pageContext", ".", "getRequest", "(", ")", ".", "getParameterMap", "(", "...
Here the search query is composed and executed. The result is wrapped in an easily usable form. It is exposed to the JSP via the tag's "var" attribute. @return The result object exposed via the tag's attribute "var".
[ "Here", "the", "search", "query", "is", "composed", "and", "executed", ".", "The", "result", "is", "wrapped", "in", "an", "easily", "usable", "form", ".", "It", "is", "exposed", "to", "the", "JSP", "via", "the", "tag", "s", "var", "attribute", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/CmsJspTagSearch.java#L399-L438
158,283
alkacon/opencms-core
src/org/opencms/jsp/util/CmsJspDateSeriesBean.java
CmsJspDateSeriesBean.toDate
public Date toDate(Object date) { Date d = null; if (null != date) { if (date instanceof Date) { d = (Date)date; } else if (date instanceof Long) { d = new Date(((Long)date).longValue()); } else { try { ...
java
public Date toDate(Object date) { Date d = null; if (null != date) { if (date instanceof Date) { d = (Date)date; } else if (date instanceof Long) { d = new Date(((Long)date).longValue()); } else { try { ...
[ "public", "Date", "toDate", "(", "Object", "date", ")", "{", "Date", "d", "=", "null", ";", "if", "(", "null", "!=", "date", ")", "{", "if", "(", "date", "instanceof", "Date", ")", "{", "d", "=", "(", "Date", ")", "date", ";", "}", "else", "if"...
Converts the provided object to a date, if possible. @param date the date. @return the date as {@link java.util.Date}
[ "Converts", "the", "provided", "object", "to", "a", "date", "if", "possible", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jsp/util/CmsJspDateSeriesBean.java#L422-L440
158,284
alkacon/opencms-core
src/org/opencms/jlan/CmsJlanThreadManager.java
CmsJlanThreadManager.stop
public synchronized void stop() { if (m_thread != null) { long timeBeforeShutdownWasCalled = System.currentTimeMillis(); JLANServer.shutdownServer(new String[] {}); while (m_thread.isAlive() && ((System.currentTimeMillis() - timeBeforeShutdownWasCalled)...
java
public synchronized void stop() { if (m_thread != null) { long timeBeforeShutdownWasCalled = System.currentTimeMillis(); JLANServer.shutdownServer(new String[] {}); while (m_thread.isAlive() && ((System.currentTimeMillis() - timeBeforeShutdownWasCalled)...
[ "public", "synchronized", "void", "stop", "(", ")", "{", "if", "(", "m_thread", "!=", "null", ")", "{", "long", "timeBeforeShutdownWasCalled", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "JLANServer", ".", "shutdownServer", "(", "new", "String", ...
Tries to stop the JLAN server and return after it is stopped, but will also return if the thread hasn't stopped after MAX_SHUTDOWN_WAIT_MILLIS.
[ "Tries", "to", "stop", "the", "JLAN", "server", "and", "return", "after", "it", "is", "stopped", "but", "will", "also", "return", "if", "the", "thread", "hasn", "t", "stopped", "after", "MAX_SHUTDOWN_WAIT_MILLIS", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/jlan/CmsJlanThreadManager.java#L112-L127
158,285
alkacon/opencms-core
src-setup/org/opencms/setup/CmsUpdateInfo.java
CmsUpdateInfo.needToSetCategoryFolder
public boolean needToSetCategoryFolder() { if (m_adeModuleVersion == null) { return true; } CmsModuleVersion categoryFolderUpdateVersion = new CmsModuleVersion("9.0.0"); return (m_adeModuleVersion.compareTo(categoryFolderUpdateVersion) == -1); }
java
public boolean needToSetCategoryFolder() { if (m_adeModuleVersion == null) { return true; } CmsModuleVersion categoryFolderUpdateVersion = new CmsModuleVersion("9.0.0"); return (m_adeModuleVersion.compareTo(categoryFolderUpdateVersion) == -1); }
[ "public", "boolean", "needToSetCategoryFolder", "(", ")", "{", "if", "(", "m_adeModuleVersion", "==", "null", ")", "{", "return", "true", ";", "}", "CmsModuleVersion", "categoryFolderUpdateVersion", "=", "new", "CmsModuleVersion", "(", "\"9.0.0\"", ")", ";", "retu...
Checks if the categoryfolder setting needs to be updated. @return true if the categoryfolder setting needs to be updated
[ "Checks", "if", "the", "categoryfolder", "setting", "needs", "to", "be", "updated", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-setup/org/opencms/setup/CmsUpdateInfo.java#L58-L65
158,286
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelWeeklyController.java
CmsPatternPanelWeeklyController.setWeekDays
public void setWeekDays(SortedSet<WeekDay> weekDays) { final SortedSet<WeekDay> newWeekDays = null == weekDays ? new TreeSet<WeekDay>() : weekDays; SortedSet<WeekDay> currentWeekDays = m_model.getWeekDays(); if (!currentWeekDays.equals(newWeekDays)) { conditionallyRemoveExceptionsOn...
java
public void setWeekDays(SortedSet<WeekDay> weekDays) { final SortedSet<WeekDay> newWeekDays = null == weekDays ? new TreeSet<WeekDay>() : weekDays; SortedSet<WeekDay> currentWeekDays = m_model.getWeekDays(); if (!currentWeekDays.equals(newWeekDays)) { conditionallyRemoveExceptionsOn...
[ "public", "void", "setWeekDays", "(", "SortedSet", "<", "WeekDay", ">", "weekDays", ")", "{", "final", "SortedSet", "<", "WeekDay", ">", "newWeekDays", "=", "null", "==", "weekDays", "?", "new", "TreeSet", "<", "WeekDay", ">", "(", ")", ":", "weekDays", ...
Set the weekdays at which the event should take place. @param weekDays the weekdays at which the event should take place.
[ "Set", "the", "weekdays", "at", "which", "the", "event", "should", "take", "place", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelWeeklyController.java#L66-L80
158,287
alkacon/opencms-core
src/org/opencms/ui/apps/user/CmsUserEditDialog.java
CmsUserEditDialog.switchTab
protected void switchTab() { Component tab = m_tab.getSelectedTab(); int pos = m_tab.getTabPosition(m_tab.getTab(tab)); if (m_isWebOU) { if (pos == 0) { pos = 1; } } m_tab.setSelectedTab(pos + 1); }
java
protected void switchTab() { Component tab = m_tab.getSelectedTab(); int pos = m_tab.getTabPosition(m_tab.getTab(tab)); if (m_isWebOU) { if (pos == 0) { pos = 1; } } m_tab.setSelectedTab(pos + 1); }
[ "protected", "void", "switchTab", "(", ")", "{", "Component", "tab", "=", "m_tab", ".", "getSelectedTab", "(", ")", ";", "int", "pos", "=", "m_tab", ".", "getTabPosition", "(", "m_tab", ".", "getTab", "(", "tab", ")", ")", ";", "if", "(", "m_isWebOU", ...
Switches to the next tab.
[ "Switches", "to", "the", "next", "tab", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/user/CmsUserEditDialog.java#L836-L846
158,288
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/CmsListItemWidget.java
CmsListItemWidget.onEditTitleTextBox
protected void onEditTitleTextBox(TextBox box) { if (m_titleEditHandler != null) { m_titleEditHandler.handleEdit(m_title, box); return; } String text = box.getText(); box.removeFromParent(); m_title.setText(text); m_title.setVisible(true); }
java
protected void onEditTitleTextBox(TextBox box) { if (m_titleEditHandler != null) { m_titleEditHandler.handleEdit(m_title, box); return; } String text = box.getText(); box.removeFromParent(); m_title.setText(text); m_title.setVisible(true); }
[ "protected", "void", "onEditTitleTextBox", "(", "TextBox", "box", ")", "{", "if", "(", "m_titleEditHandler", "!=", "null", ")", "{", "m_titleEditHandler", ".", "handleEdit", "(", "m_title", ",", "box", ")", ";", "return", ";", "}", "String", "text", "=", "...
Internal method which is called when the user has finished editing the title. @param box the text box which has been edited
[ "Internal", "method", "which", "is", "called", "when", "the", "user", "has", "finished", "editing", "the", "title", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/CmsListItemWidget.java#L1163-L1175
158,289
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelMonthlyController.java
CmsPatternPanelMonthlyController.setPatternScheme
public void setPatternScheme(final boolean isByWeekDay, final boolean fireChange) { if (isByWeekDay ^ (null != m_model.getWeekDay())) { removeExceptionsOnChange(new Command() { public void execute() { if (isByWeekDay) { m_model.setWeekOf...
java
public void setPatternScheme(final boolean isByWeekDay, final boolean fireChange) { if (isByWeekDay ^ (null != m_model.getWeekDay())) { removeExceptionsOnChange(new Command() { public void execute() { if (isByWeekDay) { m_model.setWeekOf...
[ "public", "void", "setPatternScheme", "(", "final", "boolean", "isByWeekDay", ",", "final", "boolean", "fireChange", ")", "{", "if", "(", "isByWeekDay", "^", "(", "null", "!=", "m_model", ".", "getWeekDay", "(", ")", ")", ")", "{", "removeExceptionsOnChange", ...
Set the pattern scheme to either "by weekday" or "by day of month". @param isByWeekDay flag, indicating if the pattern "by weekday" should be set. @param fireChange flag, indicating if a value change event should be fired.
[ "Set", "the", "pattern", "scheme", "to", "either", "by", "weekday", "or", "by", "day", "of", "month", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelMonthlyController.java#L65-L88
158,290
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelMonthlyController.java
CmsPatternPanelMonthlyController.setWeekDay
public void setWeekDay(String dayString) { final WeekDay day = WeekDay.valueOf(dayString); if (m_model.getWeekDay() != day) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setWeekDay(day); onValueChange(); ...
java
public void setWeekDay(String dayString) { final WeekDay day = WeekDay.valueOf(dayString); if (m_model.getWeekDay() != day) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setWeekDay(day); onValueChange(); ...
[ "public", "void", "setWeekDay", "(", "String", "dayString", ")", "{", "final", "WeekDay", "day", "=", "WeekDay", ".", "valueOf", "(", "dayString", ")", ";", "if", "(", "m_model", ".", "getWeekDay", "(", ")", "!=", "day", ")", "{", "removeExceptionsOnChange...
Set the week day the event should take place. @param dayString the day as string.
[ "Set", "the", "week", "day", "the", "event", "should", "take", "place", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelMonthlyController.java#L94-L108
158,291
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelMonthlyController.java
CmsPatternPanelMonthlyController.weeksChange
public void weeksChange(String week, Boolean value) { final WeekOfMonth changedWeek = WeekOfMonth.valueOf(week); boolean newValue = (null != value) && value.booleanValue(); boolean currentValue = m_model.getWeeksOfMonth().contains(changedWeek); if (newValue != currentValue) { ...
java
public void weeksChange(String week, Boolean value) { final WeekOfMonth changedWeek = WeekOfMonth.valueOf(week); boolean newValue = (null != value) && value.booleanValue(); boolean currentValue = m_model.getWeeksOfMonth().contains(changedWeek); if (newValue != currentValue) { ...
[ "public", "void", "weeksChange", "(", "String", "week", ",", "Boolean", "value", ")", "{", "final", "WeekOfMonth", "changedWeek", "=", "WeekOfMonth", ".", "valueOf", "(", "week", ")", ";", "boolean", "newValue", "=", "(", "null", "!=", "value", ")", "&&", ...
Handle a change in the weeks of month. @param week the changed weeks checkbox's internal value. @param value the new value of the changed checkbox.
[ "Handle", "a", "change", "in", "the", "weeks", "of", "month", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsPatternPanelMonthlyController.java#L115-L136
158,292
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/seo/CmsAliasList.java
CmsAliasList.validateAliases
public void validateAliases( final CmsUUID uuid, final Map<String, String> aliasPaths, final AsyncCallback<Map<String, String>> callback) { CmsRpcAction<Map<String, String>> action = new CmsRpcAction<Map<String, String>>() { /** * @see org.opencms.gwt.c...
java
public void validateAliases( final CmsUUID uuid, final Map<String, String> aliasPaths, final AsyncCallback<Map<String, String>> callback) { CmsRpcAction<Map<String, String>> action = new CmsRpcAction<Map<String, String>>() { /** * @see org.opencms.gwt.c...
[ "public", "void", "validateAliases", "(", "final", "CmsUUID", "uuid", ",", "final", "Map", "<", "String", ",", "String", ">", "aliasPaths", ",", "final", "AsyncCallback", "<", "Map", "<", "String", ",", "String", ">", ">", "callback", ")", "{", "CmsRpcActi...
Validates aliases. @param uuid The structure id for which the aliases should be valid @param aliasPaths a map from id strings to alias paths @param callback the callback which should be called with the validation results
[ "Validates", "aliases", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/seo/CmsAliasList.java#L423-L452
158,293
alkacon/opencms-core
src-gwt/org/opencms/acacia/client/widgets/serialdate/A_CmsPatternPanelController.java
A_CmsPatternPanelController.setDayOfMonth
void setDayOfMonth(String day) { final int i = CmsSerialDateUtil.toIntWithDefault(day, -1); if (m_model.getDayOfMonth() != i) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setDayOfMonth(i); onValueChange(...
java
void setDayOfMonth(String day) { final int i = CmsSerialDateUtil.toIntWithDefault(day, -1); if (m_model.getDayOfMonth() != i) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setDayOfMonth(i); onValueChange(...
[ "void", "setDayOfMonth", "(", "String", "day", ")", "{", "final", "int", "i", "=", "CmsSerialDateUtil", ".", "toIntWithDefault", "(", "day", ",", "-", "1", ")", ";", "if", "(", "m_model", ".", "getDayOfMonth", "(", ")", "!=", "i", ")", "{", "removeExce...
Sets the day of the month. @param day the day to set.
[ "Sets", "the", "day", "of", "the", "month", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/acacia/client/widgets/serialdate/A_CmsPatternPanelController.java#L99-L112
158,294
alkacon/opencms-core
src/org/opencms/ui/report/CmsStreamReportWidget.java
CmsStreamReportWidget.convertOutputToHtml
private String convertOutputToHtml(String content) { if (content.length() == 0) { return ""; } StringBuilder buffer = new StringBuilder(); for (String line : content.split("\n")) { buffer.append(CmsEncoder.escapeXml(line) + "<br>"); } return buffe...
java
private String convertOutputToHtml(String content) { if (content.length() == 0) { return ""; } StringBuilder buffer = new StringBuilder(); for (String line : content.split("\n")) { buffer.append(CmsEncoder.escapeXml(line) + "<br>"); } return buffe...
[ "private", "String", "convertOutputToHtml", "(", "String", "content", ")", "{", "if", "(", "content", ".", "length", "(", ")", "==", "0", ")", "{", "return", "\"\"", ";", "}", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "for", ...
Converts the text stream data to HTML form. @param content the content to convert @return the HTML version of the content
[ "Converts", "the", "text", "stream", "data", "to", "HTML", "form", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/report/CmsStreamReportWidget.java#L166-L176
158,295
alkacon/opencms-core
src/org/opencms/ui/report/CmsStreamReportWidget.java
CmsStreamReportWidget.writeToDelegate
private void writeToDelegate(byte[] data) { if (m_delegateStream != null) { try { m_delegateStream.write(data); } catch (IOException e) { throw new RuntimeException(e); } } }
java
private void writeToDelegate(byte[] data) { if (m_delegateStream != null) { try { m_delegateStream.write(data); } catch (IOException e) { throw new RuntimeException(e); } } }
[ "private", "void", "writeToDelegate", "(", "byte", "[", "]", "data", ")", "{", "if", "(", "m_delegateStream", "!=", "null", ")", "{", "try", "{", "m_delegateStream", ".", "write", "(", "data", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", ...
Writes data to delegate stream if it has been set. @param data the data to write
[ "Writes", "data", "to", "delegate", "stream", "if", "it", "has", "been", "set", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/report/CmsStreamReportWidget.java#L183-L192
158,296
alkacon/opencms-core
src/org/opencms/ui/apps/sessions/CmsUserInfoDialog.java
CmsUserInfoDialog.getStatusForItem
public static String getStatusForItem(Long lastActivity) { if (lastActivity.longValue() < CmsSessionsTable.INACTIVE_LIMIT) { return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROADCAST_COLS_STATUS_ACTIVE_0); } return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROAD...
java
public static String getStatusForItem(Long lastActivity) { if (lastActivity.longValue() < CmsSessionsTable.INACTIVE_LIMIT) { return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROADCAST_COLS_STATUS_ACTIVE_0); } return CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_BROAD...
[ "public", "static", "String", "getStatusForItem", "(", "Long", "lastActivity", ")", "{", "if", "(", "lastActivity", ".", "longValue", "(", ")", "<", "CmsSessionsTable", ".", "INACTIVE_LIMIT", ")", "{", "return", "CmsVaadinUtils", ".", "getMessageText", "(", "Mes...
Gets the status text from given session. @param lastActivity miliseconds since last activity @return status string
[ "Gets", "the", "status", "text", "from", "given", "session", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/sessions/CmsUserInfoDialog.java#L136-L142
158,297
alkacon/opencms-core
src/org/opencms/ui/apps/sessions/CmsUserInfoDialog.java
CmsUserInfoDialog.showUserInfo
public static void showUserInfo(CmsSessionInfo session) { final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide); CmsUserInfoDialog dialog = new CmsUserInfoDialog(session, new Runnable() { public void run() { window.close(); } }); ...
java
public static void showUserInfo(CmsSessionInfo session) { final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide); CmsUserInfoDialog dialog = new CmsUserInfoDialog(session, new Runnable() { public void run() { window.close(); } }); ...
[ "public", "static", "void", "showUserInfo", "(", "CmsSessionInfo", "session", ")", "{", "final", "Window", "window", "=", "CmsBasicDialog", ".", "prepareWindow", "(", "DialogWidth", ".", "wide", ")", ";", "CmsUserInfoDialog", "dialog", "=", "new", "CmsUserInfoDial...
Shows a dialog with user information for given session. @param session to show information for
[ "Shows", "a", "dialog", "with", "user", "information", "for", "given", "session", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/sessions/CmsUserInfoDialog.java#L163-L177
158,298
alkacon/opencms-core
src-gwt/org/opencms/gwt/client/ui/input/colorpicker/CmsSliderMap.java
CmsSliderMap.onBrowserEvent
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); switch (DOM.eventGetType(event)) { case Event.ONMOUSEUP: Event.releaseCapture(m_slider.getElement()); m_capturedMouse = false; break; c...
java
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); switch (DOM.eventGetType(event)) { case Event.ONMOUSEUP: Event.releaseCapture(m_slider.getElement()); m_capturedMouse = false; break; c...
[ "@", "Override", "public", "void", "onBrowserEvent", "(", "Event", "event", ")", "{", "super", ".", "onBrowserEvent", "(", "event", ")", ";", "switch", "(", "DOM", ".", "eventGetType", "(", "event", ")", ")", "{", "case", "Event", ".", "ONMOUSEUP", ":", ...
Fired whenever a browser event is received. @param event Event to process
[ "Fired", "whenever", "a", "browser", "event", "is", "received", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src-gwt/org/opencms/gwt/client/ui/input/colorpicker/CmsSliderMap.java#L108-L138
158,299
alkacon/opencms-core
src/org/opencms/ui/apps/user/CmsOuTree.java
CmsOuTree.addChildrenForGroupsNode
private void addChildrenForGroupsNode(I_CmsOuTreeType type, String ouItem) { try { // Cut of type-specific prefix from ouItem with substring() List<CmsGroup> groups = m_app.readGroupsForOu(m_cms, ouItem.substring(1), type, false); for (CmsGroup group : groups) { ...
java
private void addChildrenForGroupsNode(I_CmsOuTreeType type, String ouItem) { try { // Cut of type-specific prefix from ouItem with substring() List<CmsGroup> groups = m_app.readGroupsForOu(m_cms, ouItem.substring(1), type, false); for (CmsGroup group : groups) { ...
[ "private", "void", "addChildrenForGroupsNode", "(", "I_CmsOuTreeType", "type", ",", "String", "ouItem", ")", "{", "try", "{", "// Cut of type-specific prefix from ouItem with substring()", "List", "<", "CmsGroup", ">", "groups", "=", "m_app", ".", "readGroupsForOu", "("...
Add groups for given group parent item. @param type the tree type @param ouItem group parent item
[ "Add", "groups", "for", "given", "group", "parent", "item", "." ]
bc104acc75d2277df5864da939a1f2de5fdee504
https://github.com/alkacon/opencms-core/blob/bc104acc75d2277df5864da939a1f2de5fdee504/src/org/opencms/ui/apps/user/CmsOuTree.java#L257-L277