Interface Record

    • Method Detail

      • getRequiredFields

        Set<String> getRequiredFields()
        Returns:
        a Set containing the keys of required fields The returned Set MUST be a copy of the internal representation. Any modification to the returned Set MUST not affect the object
      • getComputedFields

        Set<String> getComputedFields()
        Returns:
        a Set containing the keys of computed fields The returned Set MUST be a copy of the internal representation. Any modification to the returned Set MUST not affect the object
      • setId

        void setId​(String id)
            throws InvalidValueException
        The ID SHOULD be automatically created by the implementation Class. Set the ID only if you really know what you are going to do. Set the unique id for this Record
        Parameters:
        id - Unique ID
        Throws:
        InvalidValueException
      • getCreationTime

        Calendar getCreationTime()
        Return the instant when this Record was created.
        Returns:
        the creation time for this Record
      • setCreationTime

        void setCreationTime​(Calendar creationTime)
                      throws InvalidValueException
        The CreationTime is automatically created by the implementation Class. Set the CreationTime only if you really know what you are going to do. Set the instant when this Record was created.
        Parameters:
        creationTime - Creation Time
        Throws:
        InvalidValueException
      • getResourceProperties

        Map<String,​Serializable> getResourceProperties()
        Return all resource-specific properties. The returned Map is a copy of the internal representation. Any modification to the returned Map MUST not affect the object
        Returns:
        a Map containing the properties
      • getResourceProperty

        Serializable getResourceProperty​(String key)
        Return the value of the given resource property.
        Parameters:
        key - the key of the requested property
        Returns:
        the value of the given resource property
      • setResourceProperty

        void setResourceProperty​(String key,
                                 Serializable value)
                          throws InvalidValueException
        Set the value of the given resource property. If the key has the value of one of the predefined property, the value is validated.
        Parameters:
        key - the key of the requested property
        value - the value of the given resource property
        Throws:
        InvalidValueException
      • removeResourceProperty

        void removeResourceProperty​(String key)
        Remove a property from Record. This API is intended for intern use only.
        Parameters:
        key - the key of the requested property to remove