当前位置: 首页>>代码示例>>Java>>正文


Java PropertyIds.OBJECT_ID属性代码示例

本文整理汇总了Java中org.apache.chemistry.opencmis.commons.PropertyIds.OBJECT_ID属性的典型用法代码示例。如果您正苦于以下问题:Java PropertyIds.OBJECT_ID属性的具体用法?Java PropertyIds.OBJECT_ID怎么用?Java PropertyIds.OBJECT_ID使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.chemistry.opencmis.commons.PropertyIds的用法示例。


在下文中一共展示了PropertyIds.OBJECT_ID属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildLuceneGreaterThanOrEquals

@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_ID
            + " can not be used in a 'greater than or equals' comparison");
}
 
开发者ID:Alfresco,项目名称:alfresco-data-model,代码行数:7,代码来源:ObjectIdLuceneBuilder.java

示例2: createChangeEvents

@SuppressWarnings("unchecked")
private List<ObjectData> createChangeEvents(long time, Map<String, Serializable> values)
{
    List<ObjectData> result = new ArrayList<ObjectData>();

    if ((values == null) || (values.size() == 0))
    {
        return result;
    }

    GregorianCalendar changeTime = new GregorianCalendar();
    changeTime.setTimeInMillis(time);

    String appPath = "/" + CMIS_CHANGELOG_AUDIT_APPLICATION + "/";

    for (Entry<String, Serializable> entry : values.entrySet())
    {
        if ((entry.getKey() == null) || (!(entry.getValue() instanceof Map)))
        {
            continue;
        }

        String path = entry.getKey();
        if (!path.startsWith(appPath))
        {
            continue;
        }

        ChangeType changeType = null;
        String changePath = path.substring(appPath.length()).toLowerCase();
        for (ChangeType c : ChangeType.values())
        {
            if (changePath.startsWith(c.value().toLowerCase()))
            {
                changeType = c;
                break;
            }
        }

        if (changeType == null)
        {
            continue;
        }

        Map<String, Serializable> valueMap = (Map<String, Serializable>) entry.getValue();
        String objectId = (String) valueMap.get(CMISChangeLogDataExtractor.KEY_OBJECT_ID);

        // build object
        ObjectDataImpl object = new ObjectDataImpl();
        result.add(object);

        PropertiesImpl properties = new PropertiesImpl();
        object.setProperties(properties);
        PropertyIdImpl objectIdProperty = new PropertyIdImpl(PropertyIds.OBJECT_ID, objectId);
        properties.addProperty(objectIdProperty);

        ChangeEventInfoDataImpl changeEvent = new ChangeEventInfoDataImpl();
        object.setChangeEventInfo(changeEvent);
        changeEvent.setChangeType(changeType);
        changeEvent.setChangeTime(changeTime);
    }

    return result;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:64,代码来源:CMISConnector.java

示例3: buildLuceneGreaterThan

@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_ID + " can not be used in a 'greater than' comparison");
}
 
开发者ID:Alfresco,项目名称:alfresco-data-model,代码行数:6,代码来源:ObjectIdLuceneBuilder.java

示例4: buildLuceneLessThan

@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_ID + " can not be used in a 'less than' comparison");
}
 
开发者ID:Alfresco,项目名称:alfresco-data-model,代码行数:6,代码来源:ObjectIdLuceneBuilder.java

示例5: buildLuceneLessThanOrEquals

@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_ID + " can not be used in a 'less than or equals' comparison");
}
 
开发者ID:Alfresco,项目名称:alfresco-data-model,代码行数:6,代码来源:ObjectIdLuceneBuilder.java

示例6: ObjectIdProperty

/**
 * Construct
 * 
 * @param serviceRegistry ServiceRegistry
 * @param connector CMISConnector
 */
public ObjectIdProperty(ServiceRegistry serviceRegistry, CMISConnector connector)
{
    super(serviceRegistry, connector, PropertyIds.OBJECT_ID);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:10,代码来源:ObjectIdProperty.java


注:本文中的org.apache.chemistry.opencmis.commons.PropertyIds.OBJECT_ID属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。