當前位置: 首頁>>代碼示例>>Java>>正文


Java CMISNodeInfo.isRootFolder方法代碼示例

本文整理匯總了Java中org.alfresco.opencmis.dictionary.CMISNodeInfo.isRootFolder方法的典型用法代碼示例。如果您正苦於以下問題:Java CMISNodeInfo.isRootFolder方法的具體用法?Java CMISNodeInfo.isRootFolder怎麽用?Java CMISNodeInfo.isRootFolder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.alfresco.opencmis.dictionary.CMISNodeInfo的用法示例。


在下文中一共展示了CMISNodeInfo.isRootFolder方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: isAllowed

import org.alfresco.opencmis.dictionary.CMISNodeInfo; //導入方法依賴的package包/類
public boolean isAllowed(CMISNodeInfo nodeInfo)
{
    if (nodeInfo.isRootFolder())
    {
        return rootFolderValue;
    }

    return folderEvaluator.isAllowed(nodeInfo);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:10,代碼來源:RootFolderEvaluator.java

示例2: getValueInternal

import org.alfresco.opencmis.dictionary.CMISNodeInfo; //導入方法依賴的package包/類
public Serializable getValueInternal(CMISNodeInfo nodeInfo)
{
    if (nodeInfo.isRootFolder())
    {
        return null;
    }

    List<CMISNodeInfo> parents = nodeInfo.getParents();
    if (!parents.isEmpty())
    {
        return parents.get(0).getObjectId();
    }

    return null;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:16,代碼來源:ParentProperty.java

示例3: isAllowed

import org.alfresco.opencmis.dictionary.CMISNodeInfo; //導入方法依賴的package包/類
public boolean isAllowed(CMISNodeInfo nodeInfo)
{
    if (nodeInfo.isRootFolder())
    {
        return false;
    }

    List<CMISNodeInfo> parents = nodeInfo.getParents();
    if (!parents.isEmpty())
    {
        return evaluator.isAllowed(parents.get(0));
    }

    return false;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:16,代碼來源:ParentActionEvaluator.java

示例4: getFolderParent

import org.alfresco.opencmis.dictionary.CMISNodeInfo; //導入方法依賴的package包/類
@Override
public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension)
{
    checkRepositoryId(repositoryId);

    // get the node ref
    CMISNodeInfo info = getOrCreateFolderInfo(folderId, "Folder");

    // the root folder has no parent
    if (info.isRootFolder())
    {
        throw new CmisInvalidArgumentException("Root folder has no parent!");
    }

    // get the parent
    List<CMISNodeInfo> parentInfos = info.getParents();
    if (parentInfos.isEmpty())
    {
        throw new CmisRuntimeException("Folder has no parent and is not the root folder?!");
    }

    CMISNodeInfo parentInfo = addNodeInfo(parentInfos.get(0));

    ObjectData result = connector.createCMISObject(
            parentInfo, filter, false, IncludeRelationships.NONE,
            CMISConnector.RENDITION_NONE, false, false);
	boolean isObjectInfoRequired = getContext().isObjectInfoRequired();
    if (isObjectInfoRequired)
    {
        getObjectInfo(
                repositoryId,
                parentInfo.getObjectId(),
                IncludeRelationships.NONE);
    }

    return result;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:38,代碼來源:AlfrescoCmisServiceImpl.java


注:本文中的org.alfresco.opencmis.dictionary.CMISNodeInfo.isRootFolder方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。