public class PolicyHandle extends 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(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
|
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(String name)
Set the policy handle name
|
int |
storePolicyHandle(byte[] buf,
int off)
Store the policy handle into the specified buffer
|
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(String name, byte[] buf, int off)
name
- Stringbuf
- byte[]off
- intpublic final boolean isValid()
public final byte[] getBytes()
public final String getName()
public final void setName(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()
Copyright © 2005–2018 Alfresco Software. All rights reserved.