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


Java PermissionCheckedValue類代碼示例

本文整理匯總了Java中org.alfresco.repo.security.permissions.PermissionCheckedValue的典型用法代碼示例。如果您正苦於以下問題:Java PermissionCheckedValue類的具體用法?Java PermissionCheckedValue怎麽用?Java PermissionCheckedValue使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PermissionCheckedValue類屬於org.alfresco.repo.security.permissions包,在下文中一共展示了PermissionCheckedValue類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: decide

import org.alfresco.repo.security.permissions.PermissionCheckedValue; //導入依賴的package包/類
@Override
public Object decide(
        Authentication authentication,
        Object object,
        ConfigAttributeDefinition config,
        Object returnedObject) throws AccessDeniedException
{
    // If this object has already been marked, then leave it
    if (returnedObject == null)
    {
        return null;
    }
    else if (returnedObject instanceof PermissionCheckedValue)
    {
        return returnedObject;
    }
    else if (object instanceof Collection<?>)
    {
        // Mark it
        return PermissionCheckedValueMixin.create(returnedObject);
    }
    else
    {
        return returnedObject;
    }
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:27,代碼來源:MarkingAfterInvocationProvider.java

示例2: decide

import org.alfresco.repo.security.permissions.PermissionCheckedValue; //導入依賴的package包/類
private PermissionCheckedValue decide(Authentication authentication, Object object, ConfigAttributeDefinition config, PermissionCheckedValue returnedObject) throws AccessDeniedException
{
    // This passes as it has already been filtered
    // TODO: Get the filter that was applied and double-check
    return returnedObject;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:7,代碼來源:ACLEntryAfterInvocationProvider.java

示例3: decide

import org.alfresco.repo.security.permissions.PermissionCheckedValue; //導入依賴的package包/類
private PermissionCheckedValue decide(Authentication authentication, Object object, ConfigAttributeDefinition config, PermissionCheckedValue returnedObject)
{
    // This passes as it has already been filtered
    // TODO: Get the filter that was applied and double-check
    return returnedObject;
}
 
開發者ID:Alfresco,項目名稱:records-management-old,代碼行數:7,代碼來源:RMAfterInvocationProvider.java


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