Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.localization.resource;
import java.util.Locale;
import com.enonic.cms.core.localization.LocalizationResourceBundle;
import com.enonic.cms.core.structure.SiteEntity;
/**
* Created by rmy - Date: Apr 22, 2009
*/
publ... | 100 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.localization.resource;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.enonic.cms.core.localization.LocaleParsingException;
/**
* Created by rmy - Date: Apr 24, 200... | 426 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.localization.resource;
import java.io.IOException;
import java.util.Locale;
import java.util.Properties;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
impor... | 1,019 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.localization;
/**
* Created by rmy - Date: Apr 24, 2009
*/
public class LocalizationResourceException
extends RuntimeException
{
public LocalizationResourceException( String message, Throwable t )
{
... | 102 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.localization;
import java.io.UnsupportedEncodingException;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Properties;
import java.... | 447 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.lang.StringUtil... | 899 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
public interface NotFoundErrorType
{
// Nothing
}
| 42 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import java.io.Serializable;
import org.joda.time.DateTime;
public class CachedObject
implements Serializable
{
private Object object;
private DateTime FAR_PAST = new DateTime( 0 );
private DateTi... | 280 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* Aug 6, 2010
*/
public class SiteBasePathAndSitePath
{
private SiteBasePath siteBasePath;
... | 222 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
public enum PreferenceScopeType
{
GLOBAL( "GLOBAL", 0 ),
SITE( "SITE", 1 ),
// scopeKey: siteKey
PAGE( ... | 362 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.Collection;
import com.enonic.cms.framework.xml.XMLBuilder;
import com.enonic.cms.framework.xml.XMLDocument;
public final class PreferenceXmlCreator
{
public static XMLDocument create... | 312 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.ArrayList;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: rmh
* Date: Feb 25, 2010
* Time: 11:35:45 AM
*/
public class PreferenceUniqueMatchResolver
{
List<Prefere... | 304 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.enonic.cms.core.security.user.UserEntity;
import com.enonic.cms.core.security.user.UserKey;
public class Prefere... | 376 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.io.Serializable;
import java.util.StringTokenizer;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.HashCodeBuilder;
import com.enonic.cms.core.InvalidKeyExce... | 1,590 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.StringTokenizer;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.HashCodeBuilder;
import com.enonic.cms.core.InvalidKeyException;
public class Prefere... | 518 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.ArrayList;
import java.util.List;
import com.enonic.cms.core.SiteKey;
import com.enonic.cms.core.portal.PortalInstanceKey;
public class PreferenceScopeResolver
{
public static List<... | 665 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import com.enonic.cms.core.security.user.UserEntity;
public class PreferenceAccessResolver
{
public boolean hasReadAccess( UserEntity user )
{
// anon is not allowed to have preferences... | 140 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import com.enonic.cms.core.SiteKey;
import com.enonic.cms.core.portal.PortalInstanceKey;
public class PreferenceScopeKeyResolver
{
public static PreferenceScopeKey resolve( PreferenceScopeType scopeT... | 324 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
public class PreferenceAccessException
extends RuntimeException
{
public PreferenceAccessException( String message )
{
super( message );
}
}
| 59 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.List;
/**
* This service object allows manipulation of user specific values. There are two key objects to work with: <code>PreferenceEntity</code>
* and <code>PreferenceKey</code>. The... | 339 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import ... | 507 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import java.io.Serializable;
import org.apache.commons.lang.builder.HashCodeBuilder;
public class PreferenceEntity
implements Serializable
{
private PreferenceKey key;
private String value;
... | 266 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.preference;
import org.apache.commons.lang.builder.HashCodeBuilder;
public class PreferenceScope
{
private PreferenceScopeType type;
private PreferenceScopeKey key;
public PreferenceScope( PreferenceSc... | 342 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.locale;
import java.util.ArrayList;
import java.util.Locale;
import org.springframework.stereotype.Service;
@Service("localeService")
public class LocaleServiceImpl
implements LocaleService
{
private final Ar... | 167 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.locale;
import java.util.Locale;
public interface LocaleService
{
Locale[] getLocales();
}
| 50 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.locale;
import java.util.Locale;
import org.jdom.Document;
import org.jdom.Element;
import com.google.common.base.Preconditions;
public class LocaleXmlCreator
{
public Document createLocalesDocument( final Loca... | 817 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
/**
* Jul 9, 2009
*/
public enum LogType
{
LOGIN( 0 ),
LOGIN_USERSTORE( 1 ),
LOGIN_FAILED( 2 ),
LOGOUT( 3 ),
ENTITY_CREATED( 4 ),
ENTITY_UPDATED( 5 ),
ENTITY_REMOVED( 6 ),
ENTITY_... | 195 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
public class ContentLogEntrySpecification
extends LogEntrySpecification
{
private boolean allowDeletedContent = false;
public void setAllowDeletedContent( boolean value )
{
this.allowDe... | 96 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.Collection;
import java.util.List;
import com.enonic.cms.core.ResultSet;
public interface LogEntryResultSet
extends ResultSet
{
LogEntryKey getKey( int index );
List<LogEntryKey> ge... | 102 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.List;
import java.util.Map;
/**
* This interface defines the content entity fetcher.
*/
public interface LogEntryEntityFetcher
{
Map<LogEntryKey, LogEntryEntity> fetch( List<LogEntryKey> k... | 83 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.commons.lang.builder.HashCodeBuilder;
import com.enonic.cms.core.InvalidKeyException... | 509 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.enonic.cms.store.dao.LogEntryDao;
public final class LogEntryEntityFetcherImpl
implements LogEntryEntityFetcher
{
... | 238 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import org.jdom.Document;
import com.enonic.cms.core.security.user.UserKey;
import com.enonic.cms.core.structure.SiteEntity;
/**
* Jul 9, 2009
*/
public class StoreNewLogEntryCommand
{
private LogType type... | 484 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.enonic.cms.core.AbstractResultSet;
public final class LogEntryResultSetNonLazy
extends AbstractResultSet
implem... | 514 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.jdom.Document;
import org.jdom.Element;
import org.springframework.beans.factory.annota... | 1,115 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.jdom.Document;
import com.enonic.cms.framework.util.LazyInitializedJDOMDocument;
import com... | 765 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.Date;
import org.jdom.Document;
import org.jdom.Element;
import com.enonic.cms.framework.xml.XMLDocument;
import com.enonic.cms.framework.xml.XMLDocumentFactory;
import com.enonic.cms.core.CmsD... | 868 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
/**
* Jul 9, 2009
*/
public enum Table
{
CONTENT( 0 ),
MENUITEM( 1 ),
SECTION( 3 ),
RESOURCE( 4 );
private Integer key;
Table( Integer key )
{
this.key = key;
}
pub... | 159 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.Date;
import com.enonic.cms.core.security.user.UserEntity;
/**
* This class represents the specification of a getContentByCategory search.
*/
public class LogEntrySpecification
{
private ... | 298 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
public interface LogService
{
LogEntryResultSet getLogEntries( LogEntrySpecification spec, String orderBy, int count, int index );
LogEntryKey storeNew( LogEntryEntity logEntry );
LogEntryKey storeNe... | 87 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.log;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import com.enonic.cms.core.AbstractResultSet;
public final class LogEntryResultSetLazyFetcher
extends Abs... | 488 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import java.util.Date;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
public class CmsDateAndTimeFormats
{
public static final String STORE_DATE_FORMAT_PATTERN = "yyy... | 446 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import javax.servlet.http.HttpServletRequest;
import com.enonic.cms.core.vhost.VirtualHostHelper;
public class DeploymentPathResolver
{
public static String getAdminDeploymentPath( HttpServletRequest request )
... | 286 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* If admin setup at /admin:
* /admin/site/<site-key>
* <p/>
* If admin setup at admin.mydomain.com... | 397 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.facet.Facet;
import org.elasticsearch.search.facet.Facets;
import org.elasticsearch.search.facet.statistical.StatisticalFacet;
public class FacetExtractor
{
public static StatisticalFacet get... | 255 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.util.Map;
import java.util.logging.Logger;
import org.apache.commons.lang.StringUtils;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.springframework.stereotype.Component;
import com.google.comm... | 462 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
/**
* Created by IntelliJ IDEA.
* User: rmh
* Date: 11/2/11
* Time: 1:07 PM
*/
public enum IndexType
{
Content,
Binaries;
@Override
public String toString()
{
return super.toString().toLowerCase();
}
}
| 75 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import java.util.ArrayList;
import java.util.List;
/**
* This class implements the index value result set.
*/
public final class IndexValueResultSetImpl
implements IndexValueResultSet
{
/**
... | 317 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
/**
* This class implements the index value query.
*/
public final class AggregatedQuery
extends AbstractQuery
{
/**
* Path of index value.
*/
private final String field;
/**
... | 127 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import org.apache.commons.lang.StringUtils;
public class QueryFieldAndValue
extends AbstractQueryFieldAndValue
{
private final QueryValue queryValue;
public QueryFieldAndValue( final String path, final Object value )
{
super( path );
this.quer... | 321 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import org.apache.commons.lang.StringUtils;
import com.enonic.cms.core.content.category.CategoryAccessType;
import com.enonic.cms.core.content.index.queryexpression.FieldExpr;
import com.enonic.cms.core.search.IndexFieldnameNormalizer;
import com.enonic.cms.core.search.builde... | 425 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
/**
* This class implements the index value query.
*/
public final class IndexValueQuery
extends AbstractQuery
{
/**
* Path of index value.
*/
private final String field;
priv... | 242 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import org.elasticsearch.index.query.FilterBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.builder.SearchSou... | 1,668 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import com.enonic.cms.co... | 2,130 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
/**
* This class implements the aggregated result.
*/
public final class AggregatedResultImpl
implements AggregatedResult
{
/**
* Count.
*/
private final double count;
/**
... | 341 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
class QueryTranslatorException
extends RuntimeException
{
public QueryTranslatorException( final String s )
{
super( s ); //To change body of overridden methods use File | Settings | File Templates.
}
}
| 55 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import com.enonic.cms.core.content.index.queryexpression.ArrayExpr;
import com.enonic.cms.core.content.index.queryexpression.Expression;
import com.enonic.cms.core.content.index.queryexpression.FunctionExpr;
import com.enonic.cms.core.content.index.queryexpression.ValueExpr;
... | 284 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import org.elasticsearch.index.query.FilterBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.elasticsearch.search.facet.statistical.StatisticalFacetBuilder;
import com.enonic.cms.core.search.qu... | 295 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import java.util.Set;
import com.google.common.collect.Sets;
public class QueryFieldAndMultipleValues
extends AbstractQueryFieldAndValue
{
private final Set<QueryValue> queryValues = Sets.newHashSet();
private Boolean isEmpty;
public QueryFieldAndMultipleVa... | 529 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import org.apache.commons.lang.StringUtils;
import com.enonic.cms.core.search.IndexType;
import com.enonic.cms.core.search.builder.IndexFieldNameConstants;
public class QueryFieldFactory
extends IndexFieldNameConstants
{
public static QueryField resolveQueryField( fi... | 246 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
/**
* This interface defines the index value result set.
*/
public interface IndexValueResultSet
{
/**
* Return the count.
*/
public int getCount();
/**
* Return from index.
... | 121 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import com.enonic.cms.core.search.builder.IndexFieldNameConstants;
public abstract class AbstractQueryFieldAndValue
extends IndexFieldNameConstants
{
private final QueryField queryField;
protected abstract boolean isQueryValueNumeric();
protected abstract bo... | 402 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import org.elasticsearch.index.query.FilterBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.elasticsearch.search.sort.FieldSortBuilder;
import org.elasticsearch.search.sort.SortOrder;
import c... | 355 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.joda.time.DateMidnight;
import org.joda.time.DateTime;
import org.joda.t... | 1,063 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
/**
*/
public interface AggregatedResult
{
/**
* Return the count.
*/
public int getCount();
/**
* Return min value.
*/
public double getMinValue();
/**
* R... | 124 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import org.apache.commons.lang.StringUtils;
import org.joda.time.DateTimeZone;
import org.joda.time.MutableDateTime;
import org.joda.time.ReadableDateTime;
import com.enonic.cms.core.search.ElasticSearchFormatter;
public class QueryValue
{
private final Number numericVa... | 530 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query.factory;
import org.elasticsearch.index.query.QueryBuilder;
import org.joda.time.DateTime;
import com.enonic.cms.core.search.query.QueryField;
import com.enonic.cms.core.search.query.QueryValue;
import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
public cla... | 796 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query.factory;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import org.elasticsearch.index.query.AndFilterBuilder;
import org.elasticsearch.index.query.B... | 2,449 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query.factory;
import java.util.ArrayList;
import java.util.List;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.elasticsearch.search.sort.FieldSortBuilder;
import org.elasticsearch.search.sort.ScoreSortBuilder;
import org.elasticsearch.search.sort.SortBuild... | 512 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query.factory;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import com.enonic.cms.core.search.query.QueryFieldAndValue;
public class LikeQueryBuilderFactory
extends BaseQueryBuilderFactory
{
public QueryBuilder buil... | 152 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query.factory;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import com.enonic.cms.core.search.query.QueryField;
import com.enonic.cms.core.search.query.QueryFieldAndValue... | 163 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query.factory;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import com.enonic.cms.core.search.builder.IndexFieldNameConstants;
import com.enonic.cms.core.search.query.QueryValue;
public class FullTextQueryBuilderFactory
... | 115 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query.factory;
import org.elasticsearch.index.query.FilterBuilders;
import org.elasticsearch.index.query.MissingFilterBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import com.enonic.cms.core.search.IndexType;
import c... | 355 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query.factory;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import com.enonic.cms.core.search.builder.IndexFieldNameConstants;
import com.enonic.cms.core.search.query.QueryFieldAndValue;
abstract class BaseQueryBuilderFactor... | 110 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import com.enonic.cms.core.content.ContentKey;
/**
* This interface defines the index value result.
*/
public interface IndexValueResult
{
/**
* Return the value.
*/
public String get... | 94 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import org.joda.time.ReadableDateTime;
import com.enonic.cms.core.content.Conte... | 1,564 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
/**
* A class for simple text that needs to have ASCII control characters filtered out.
*/
public class SimpleText
{
// All ASCII controll characters and some other selected special characters.
... | 441 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import java.util.Collection;
import com.enonic.cms.core.content.ContentKey;
import com.enonic.cms.core.content.category.CategoryKey;
import com.enonic.cms.core.content.contenttype.ContentTypeKey;
import ... | 448 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import java.util.Collection;
import com.enonic.cms.core.content.category.CategoryKey;
import com.enonic.cms.core.content.contenttype.ContentTypeKey;
import com.enonic.cms.core.security.group.GroupKey;
/... | 470 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.query;
import com.enonic.cms.core.content.ContentKey;
/**
* This class implements the index value result.
*/
public final class IndexValueResultImpl
implements IndexValueResult
{
/**
* Content ke... | 195 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
/**
* Created by IntelliJ IDEA.
* User: rmh
* Date: 12/6/11
* Time: 11:51 AM
*/
public class IndexQueryException
extends RuntimeException
{
public IndexQueryException( final String s, final Throwable throwable )
{
super( s, throwable );
}
}
| 79 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.query;
import java.util.Collections;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import com.google.common.collect.Sets;
import com.enonic.cms.core.search.IndexType;
import com.enonic.cms.core.search.builder.IndexFieldNameConstants;
public class QueryField
... | 526 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.io.IOException;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.springframework.stereotype.Component;
import com.google.common.ba... | 386 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.util.Collection;
import java.util.Map;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.get.GetField;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import com.enonic... | 388 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import org.elasticsearch.common.settings.Settings;
public interface IndexSettingBuilder
{
public Settings buildIndexSettings();
}
| 30 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import com.enonic.cms.core.content.ContentKey;
class IndexTransactionJournalEntry
{
public enum JournalOperation
{
UPDATE, DELETE
}
private final JournalOperation operation;
private final ContentKey contentKey;
private boolean skipAttachments = tr... | 403 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.SortedMap;
import java.util.logging.Logger;
import org.springframework.transaction.support.TransactionSynchronization;
import org.springf... | 1,495 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.joda.time.ReadableDateTime;
import com.enonic.cms.core.CmsDateAndTimeFormats;
public class ElasticSearchFormatter
{
public final static SimpleDateFormat elasticsearchSimpleDateFormat =
new SimpleDat... | 186 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.util.Collection;
import java.util.Set;
import com.enonic.cms.core.content.ContentKey;
public interface IndexTransactionService
{
void startTransaction();
void commit();
boolean isActive();
void registerUpdate( final Collection<ContentKey> contentKey... | 97 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.elasticsearch.index.get.GetField;
import org.joda.time.DateTime;
import com.enonic.cms.core.content.ContentKey;
import com.enonic.cms.core.content.cate... | 889 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.util.Collection;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.support.TransactionSynchroniz... | 762 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import org.apache.commons.io.IOUtils;
import org.elasticsearch.ElasticSearchException;
import org.springframework.stereotype.Component;
/**
* Created by IntelliJ IDEA.
* User: rmh
* Date: 11/22... | 277 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.HashCodeBuilder;
import com.enonic.cms.core.content.ContentKey;
import com.enonic.cms.core.content.category.CategoryKey;
public class ContentIndexedFields
implements Serializable
{
... | 1,141 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import org.elasticsearch.action.search.SearchRespo... | 3,231 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Logger;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest;
import org.elasticsearch... | 2,741 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search;
/**
* Created by IntelliJ IDEA.
* User: rmh
* Date: 12/13/11
* Time: 3:31 PM
*/
public class ContentIndexException
extends RuntimeException
{
public ContentIndexException( final String message )
{
super( message );
}
public ContentIndexException( f... | 97 |
github-java-corpus | 2,012 | /*
* Copyright 2000-2011 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.core.search.builder;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.enonic.cms.core.content.access.ContentAccessEntity;
import com.e... | 1,643 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.builder;
import java.util.Date;
import java.util.Set;
import com.google.common.collect.Sets;
public class ContentIndexDataElement
extends IndexFieldNameConstants
{
private String fieldBaseName;
private final Set<Date> dateTimeValues = Sets.newHashSet();
private fi... | 292 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.builder;
/**
* Created by IntelliJ IDEA.
* User: rmh
* Date: 11/23/11
* Time: 12:07 PM
*/
public class IndexFieldNameConstants
{
public static final String NUMBER_FIELD_POSTFIX = "number";
public static final String DATE_FIELD_POSTFIX = "date";
public static final ... | 809 |
github-java-corpus | 2,012 | package com.enonic.cms.core.search.builder;
public class ContentIndexNumberValueResolver
{
public static Double resolveNumberValue( Object value )
{
try
{
return Double.parseDouble( value.toString() );
}
catch ( NumberFormatException e )
{
return ... | 65 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.