Java Code Examples for org.apache.chemistry.opencmis.commons.PropertyIds#OBJECT_TYPE_ID

The following examples show how to use org.apache.chemistry.opencmis.commons.PropertyIds#OBJECT_TYPE_ID . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CMISConnector.java    From alfresco-repository with GNU Lesser General Public License v3.0 5 votes vote down vote up
public String getObjectTypeIdProperty(Properties properties)
{
    String objectTypeId = getIdProperty(properties, PropertyIds.OBJECT_TYPE_ID);
    if ((objectTypeId == null) || (objectTypeId.trim().length() == 0))
    {
        throw new CmisInvalidArgumentException("Property " + PropertyIds.OBJECT_TYPE_ID + " must be set!");
    }

    return objectTypeId;
}
 
Example 2
Source File: ObjectTypeIdLuceneBuilder.java    From alfresco-data-model with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public <Q, S, E extends Throwable> Q buildLuceneGreaterThanOrEquals(LuceneQueryParserAdaptor<Q, S, E> lqpa, Serializable value, PredicateMode mode,
        LuceneFunction luceneFunction) throws E
{
    throw new CmisInvalidArgumentException("Property " + PropertyIds.OBJECT_TYPE_ID
            + " can not be used in a 'greater than or equals' comparison");
}
 
Example 3
Source File: ObjectTypeIdLuceneBuilder.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public <Q, S, E extends Throwable> Q buildLuceneGreaterThan(LuceneQueryParserAdaptor<Q, S, E> lqpa, Serializable value, PredicateMode mode,
        LuceneFunction luceneFunction) throws E
{
    throw new CmisInvalidArgumentException("Property " + PropertyIds.OBJECT_TYPE_ID + " can not be used in a 'greater than' comparison");
}
 
Example 4
Source File: ObjectTypeIdLuceneBuilder.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public <Q, S, E extends Throwable> Q buildLuceneLessThan(LuceneQueryParserAdaptor<Q, S, E> lqpa, Serializable value, PredicateMode mode,
        LuceneFunction luceneFunction) throws E
{
    throw new CmisInvalidArgumentException("Property " + PropertyIds.OBJECT_TYPE_ID + " can not be used in a 'less than' comparison");
}
 
Example 5
Source File: ObjectTypeIdLuceneBuilder.java    From alfresco-data-model with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public <Q, S, E extends Throwable> Q buildLuceneLessThanOrEquals(LuceneQueryParserAdaptor<Q, S, E> lqpa, Serializable value, PredicateMode mode,
        LuceneFunction luceneFunction) throws E
{
    throw new CmisInvalidArgumentException("Property " + PropertyIds.OBJECT_TYPE_ID + " can not be used in a 'less than or equals' comparison");
}
 
Example 6
Source File: ObjectTypeIdProperty.java    From alfresco-repository with GNU Lesser General Public License v3.0 2 votes vote down vote up
/**
 * Construct
 *
 * @param serviceRegistry ServiceRegistry
 * @param connector CMISConnector
 * @param dictionaryService CMISDictionaryService
 */
public ObjectTypeIdProperty(ServiceRegistry serviceRegistry, CMISConnector connector,
        CMISDictionaryService dictionaryService)
{
    super(serviceRegistry, connector, PropertyIds.OBJECT_TYPE_ID);
}