本文整理匯總了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);
}
示例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;
}
示例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;
}
示例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;
}