Interface DSPermission
- All Superinterfaces:
DSData
,DSPacket
,DSSerializable
,Iterable<DSField>
- All Known Subinterfaces:
TransformerPermission
- All Known Implementing Classes:
TransformerPermissionImpl
Extends DSData
to provide helper methods for sending Permissions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Field number that is used by DataSource to separate multiple updates within the same packet.Fields inherited from interface com.caplin.datasrc.interfaces.DSData
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Adds a separator allowing the cojoining of multiple permission updates into a single packet.void
Adds a seperator allowing the cojoining of multiple permission updates into a single packet.Methods inherited from interface com.caplin.datasrc.interfaces.DSData
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
Methods inherited from interface com.caplin.datasrc.interfaces.DSPacket
send, sendDirect, sendToPeer
Methods inherited from interface com.caplin.datasrc.interfaces.DSSerializable
toBytes
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DS_FIELDS_SEPARATOR
static final int DS_FIELDS_SEPARATORField number that is used by DataSource to separate multiple updates within the same packet.
- See Also:
-
-
Method Details
-
addKeyField
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()
- Parameters:
key
- The permission key
-
addPermissionData
Adds the String value for the specified field name.
- Parameters:
fieldName
- The field name.value
- The value to be stored in the field.
-
addPermissionData
Adds the String representation of the character value for the specified field name.
- Parameters:
fieldName
- The field name.value
- The value to be stored in the field.
-
addPermissionData
Adds the String representation of the character array for the specified field name.
- Parameters:
fieldName
- The field name.value
- The value to be stored in the field.
-
addPermissionData
Adds the String representation of the double value for the specified field name.
- Parameters:
fieldName
- The field name.value
- The value to be stored in the field.
-
addPermissionData
Adds the String representation of the float value for the specified field name.
- Parameters:
fieldName
- The field name.value
- The value to be stored in the field.
-
addPermissionData
Adds the String representation of the integer value for the specified field name.
- Parameters:
fieldName
- The field name.value
- The value to be stored in the field.
-
addPermissionData
Adds the String representation of the long value for the specified field name.
- Parameters:
fieldName
- The field name.value
- The value to be stored in the field.
-
addPermissionSeparator
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. -
addPermissionSeperator
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.
-