public class PolicyHandle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
POLICY_HANDLE_SIZE |
Constructor and Description |
---|
PolicyHandle()
Default constructor
|
PolicyHandle(byte[] buf,
int off)
Class constructor
|
PolicyHandle(java.lang.String name,
byte[] buf,
int off)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearHandle()
Clear the handle
|
byte[] |
getBytes()
Return the policy handle bytes
|
java.lang.String |
getName()
Return the policy handle name
|
boolean |
isValid()
Determine if the policy handle is valid
|
int |
loadPolicyHandle(byte[] buf,
int off)
Load the policy handle from the specified buffer
|
void |
setName(java.lang.String name)
Set the policy handle name
|
int |
storePolicyHandle(byte[] buf,
int off)
Store the policy handle into the specified buffer
|
java.lang.String |
toString()
Return the policy handle as a string
|
public static final int POLICY_HANDLE_SIZE
public PolicyHandle()
public PolicyHandle(byte[] buf, int off)
buf
- byte[]off
- intpublic PolicyHandle(java.lang.String name, byte[] buf, int off)
name
- Stringbuf
- byte[]off
- intpublic final boolean isValid()
public final byte[] getBytes()
public final java.lang.String getName()
public final void setName(java.lang.String name)
name
- Stringpublic final int storePolicyHandle(byte[] buf, int off)
buf
- byte[]off
- intpublic final int loadPolicyHandle(byte[] buf, int off)
buf
- byte[]off
- intprotected final void clearHandle()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.