public class GrantAccessParams
extends java.lang.Object
implements java.io.Serializable
Contains a subset of the parameters from a FileOpenParams object that are sent to a grant file access remote task on the cluster.
Constructor and Description |
---|
GrantAccessParams()
Default constructor
|
GrantAccessParams(ClusterNode clNode,
FileOpenParams openParams,
int fileSts)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAccessMode()
Return the access mode flags
|
int |
getFileStatus()
Return the file status
|
int |
getOpenAction()
Return the open action
|
int |
getOpLockType()
Return the oplock type requested (batch or exclusive)
|
java.lang.String |
getOwnerName()
Return the owner name
|
int |
getProcessId()
Return the process id
|
int |
getSecurityLevel()
Return the security impersonation level.
|
int |
getSharedAccess()
Return the shared access mode, zero equals allow any shared access
|
protected boolean |
hasCreateOption(int flag)
Check if the specified create option is enabled, specified in the WinNT class.
|
boolean |
hasOpLockRequest()
Check if an oplock has been requested
|
boolean |
hasSecurityLevel()
Determine if security impersonation is enabled
|
boolean |
isAttributesOnlyAccess()
Determine if the file open is to access the file attributes/metadata only
|
boolean |
isDirectory()
Check if the file being creasted/opened must be a directory
|
boolean |
isReadOnlyAccess()
Determine if the file is to be opened read-only
|
boolean |
isReadWriteAccess()
Determine if the file is to be opened read/write
|
boolean |
isWriteOnlyAccess()
Determine if the file is to be opened write-only
|
java.lang.String |
toString()
Return the access parameters as a string
|
public GrantAccessParams()
public GrantAccessParams(ClusterNode clNode, FileOpenParams openParams, int fileSts)
clNode
- ClusterNodeopenParams
- FileOpenParamsfileSts
- intpublic final java.lang.String getOwnerName()
public final int getFileStatus()
public final int getProcessId()
public final int getSharedAccess()
public final int getOpenAction()
public final boolean hasSecurityLevel()
public final int getSecurityLevel()
public final boolean isReadOnlyAccess()
public final boolean isWriteOnlyAccess()
public final boolean isReadWriteAccess()
public final boolean isAttributesOnlyAccess()
public final int getAccessMode()
public final boolean hasOpLockRequest()
public final int getOpLockType()
public final boolean isDirectory()
protected final boolean hasCreateOption(int flag)
flag
- intpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.