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