public interface DSPermission extends DSData
Extends DSData
to provide helper methods for sending Permissions.
Modifier and Type | Field and Description |
---|---|
static int |
DS_FIELDS_SEPARATOR
Field number that is used by DataSource to separate multiple
updates within the same packet.
|
CONTAINER_TYPE, F_AUTH_UPDATE, F_AUTHGLOBAL, F_CHANGEDFIELDS, F_CLEAR_PERMISSIONS, F_CLEAR_TYPE2, F_CLEAR_TYPE3, F_CREATEOBJECT, F_CREATEPARENT, F_DELETE_PERMISSION, F_FILTER_TYPE2, F_FILTER_TYPE3, F_IMAGE, F_NONACTIVE, GENERIC_TYPE, NEWS_TYPE, PAGE_TYPE, PERMISSION_TYPE, RECORD_TYPE, STORY_TYPE, TYPE2_RECORD_TYPE, TYPE3_RECORD_TYPE, UNKNOWN_TYPE
Modifier and Type | Method and Description |
---|---|
void |
addKeyField(String key)
Adds the String key as the Keyfield for this packet.
|
void |
addPermissionData(String fieldName,
char value)
Adds the String representation of the character value for the
specified field name.
|
void |
addPermissionData(String fieldName,
char[] value)
Adds the String representation of the character array for the
specified field name.
|
void |
addPermissionData(String fieldName,
double value)
Adds the String representation of the double value for the
specified field name.
|
void |
addPermissionData(String fieldName,
float value)
Adds the String representation of the float value for the
specified field name.
|
void |
addPermissionData(String fieldName,
int value)
Adds the String representation of the integer value for the
specified field name.
|
void |
addPermissionData(String fieldName,
long value)
Adds the String representation of the long value for the
specified field name.
|
void |
addPermissionData(String fieldName,
String value)
Adds the String value for the specified field name.
|
void |
addPermissionSeparator()
Adds a separator allowing the cojoining of multiple permission
updates into a single packet.
|
void |
addPermissionSeperator()
Deprecated.
|
addBinaryData, addBinaryData, addBinaryData, addBinaryData, addBinaryData, addBinaryData, addBinaryData, addBinaryData, addData, addData, addData, addData, addData, addData, addData, addData, clearFields, count, elements, getFieldByFieldNumber, getFieldByFieldNumber, getFlags, getKeys, getSubject, getType, getValues, iterator, removeField, setFlags, setSubject, setType, updateData, updateData
send, sendDirect, sendToPeer
toBytes
static final int DS_FIELDS_SEPARATOR
Field number that is used by DataSource to separate multiple updates within the same packet.
void addKeyField(String key)
Adds the String key as the Keyfield for this packet.
This should only be called as the first call to a DSPermission or after a call toaddPermissionSeperator()
key
- The permission keyvoid addPermissionData(String fieldName, String value)
Adds the String value for the specified field name.
fieldName
- The field name.value
- The value to be stored in the field.void addPermissionData(String fieldName, char value)
Adds the String representation of the character value for the specified field name.
fieldName
- The field name.value
- The value to be stored in the field.void addPermissionData(String fieldName, char[] value)
Adds the String representation of the character array for the specified field name.
fieldName
- The field name.value
- The value to be stored in the field.void addPermissionData(String fieldName, double value)
Adds the String representation of the double value for the specified field name.
fieldName
- The field name.value
- The value to be stored in the field.void addPermissionData(String fieldName, float value)
Adds the String representation of the float value for the specified field name.
fieldName
- The field name.value
- The value to be stored in the field.void addPermissionData(String fieldName, int value)
Adds the String representation of the integer value for the specified field name.
fieldName
- The field name.value
- The value to be stored in the field.void addPermissionData(String fieldName, long value)
Adds the String representation of the long value for the specified field name.
fieldName
- The field name.value
- The value to be stored in the field.void addPermissionSeparator()
Adds a separator allowing the cojoining of multiple permission updates into a single packet.
After this method is invoked, the user should invoke the addKeyField method.void addPermissionSeperator()
Adds a seperator allowing the cojoining of multiple permission updates into a single packet.
After this method is invoked, the user should invoke the addKeyField method.Please send bug reports and comments to Caplin support