public class GrantFileAccessTask extends RemoteStateTask
Check if the specified file can be accessed using the requested sharing mode, access mode. Return a file sharing exception if the access cannot be granted.
TaskDebug, TaskLockState, TaskNoUpdate, TaskTiming
Constructor and Description |
---|
GrantFileAccessTask()
Default constructor
|
GrantFileAccessTask(java.lang.String mapName,
java.lang.String key,
GrantAccessParams params,
boolean debug,
boolean timingDebug)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected FileAccessToken |
runRemoteTaskAgainstState(com.hazelcast.core.IMap stateCache,
ClusterFileState fState)
Run a remote task against a file state
|
call, getHazelcastInstance, getKey, getMapName, getTaskName, hasDebug, hasOption, hasTimingDebug, setHazelcastInstance
public GrantFileAccessTask()
public GrantFileAccessTask(java.lang.String mapName, java.lang.String key, GrantAccessParams params, boolean debug, boolean timingDebug)
mapName
- Stringkey
- StringopenParams
- GrantAccessParamsdebug
- booleantimingDebug
- booleanprotected FileAccessToken runRemoteTaskAgainstState(com.hazelcast.core.IMap stateCache, ClusterFileState fState) throws java.lang.Exception
runRemoteTaskAgainstState
in class RemoteStateTask
stateCache
- IMapfState
- HazelCastFileStatejava.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.