Class TransformerPermissionImpl

    • Constructor Detail

      • TransformerPermissionImpl

        protected TransformerPermissionImpl​(long dsDataPointer)

        Constructor is protected to prevent a TransformerPermission being instantiated except by the DSFactory class.

        A TransformerPermission created with this constructor will be responsible for freeing the memory for the underlying C ds_data struct.

        This is equivalent to calling TransformerPermission(dsDataPointer, false).

        Parameters:
        dsDataPointer - The pointer to the C ds_data struct that holds the state information for the update.
      • TransformerPermissionImpl

        protected TransformerPermissionImpl​(long dsDataPointer,
                                            boolean freeDsDataPointer)

        Constructor is protected to prevent a TransformerPermission being instantiated except by the DSFactory class.

        Parameters:
        dsDataPointer - The pointer to the C ds_data struct that holds the state information for the update.
        freeDsDataPointer - true if the TransformerPermission is responsible for freeing up the memory for the C ds_data struct, or false if the Transformer core is responsible.
    • Method Detail

      • addKeyField

        public void addKeyField​(java.lang.String key)
        Description copied from interface: DSPermission

        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 to DSPermission.addPermissionSeperator()
        Specified by:
        addKeyField in interface DSPermission
        Parameters:
        key - The permission key
      • addPermissionData

        public void addPermissionData​(java.lang.String fieldName,
                                      java.lang.String value)
        Description copied from interface: DSPermission

        Adds the String value for the specified field name.

        Specified by:
        addPermissionData in interface DSPermission
        Parameters:
        fieldName - The field name.
        value - The value to be stored in the field.
      • addPermissionData

        public void addPermissionData​(java.lang.String fieldName,
                                      char value)
        Description copied from interface: DSPermission

        Adds the String representation of the character value for the specified field name.

        Specified by:
        addPermissionData in interface DSPermission
        Parameters:
        fieldName - The field name.
        value - The value to be stored in the field.
      • addPermissionData

        public void addPermissionData​(java.lang.String fieldName,
                                      char[] value)
        Description copied from interface: DSPermission

        Adds the String representation of the character array for the specified field name.

        Specified by:
        addPermissionData in interface DSPermission
        Parameters:
        fieldName - The field name.
        value - The value to be stored in the field.
      • addPermissionData

        public void addPermissionData​(java.lang.String fieldName,
                                      double value)
        Description copied from interface: DSPermission

        Adds the String representation of the double value for the specified field name.

        Specified by:
        addPermissionData in interface DSPermission
        Parameters:
        fieldName - The field name.
        value - The value to be stored in the field.
      • addPermissionData

        public void addPermissionData​(java.lang.String fieldName,
                                      float value)
        Description copied from interface: DSPermission

        Adds the String representation of the float value for the specified field name.

        Specified by:
        addPermissionData in interface DSPermission
        Parameters:
        fieldName - The field name.
        value - The value to be stored in the field.
      • addPermissionData

        public void addPermissionData​(java.lang.String fieldName,
                                      int value)
        Description copied from interface: DSPermission

        Adds the String representation of the integer value for the specified field name.

        Specified by:
        addPermissionData in interface DSPermission
        Parameters:
        fieldName - The field name.
        value - The value to be stored in the field.
      • addPermissionData

        public void addPermissionData​(java.lang.String fieldName,
                                      long value)
        Description copied from interface: DSPermission

        Adds the String representation of the long value for the specified field name.

        Specified by:
        addPermissionData in interface DSPermission
        Parameters:
        fieldName - The field name.
        value - The value to be stored in the field.
      • addPermissionSeparator

        public void addPermissionSeparator()
        Description copied from interface: DSPermission

        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.
        Specified by:
        addPermissionSeparator in interface DSPermission
      • addPermissionSeperator

        public void addPermissionSeperator()
        Description copied from interface: DSPermission

        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.
        Specified by:
        addPermissionSeperator in interface DSPermission