Interface PartitionableObject

    • Field Detail

      • VERSION_PARTITIONABLEOBJECT

        static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_PARTITIONABLEOBJECT
    • Method Detail

      • getEditablePartitions

        Set<Long> getEditablePartitions()
        Return the UniqueIds of all partitions to which the current user can write entities of the current type.
        Returns:
        All editable partitions.
      • createObjectTag

        ObjectTag createObjectTag​(ObjectTagDefinition objectTagDefinition)
        Create a new ObjectTag for this PartitionableObject based on given ObjectTagDefinition.
        Parameters:
        objectTagDefinition - The ObjectTagDefinition the ObjectTag is based on.
        Returns:
        Return the newly created ObjectTag
      • getObjectTagByObjectTagDefinition

        ObjectTag getObjectTagByObjectTagDefinition​(ObjectTagDefinition objectTagDefinition)
        Get the ObjectTag for given ObjectTagDefinition that is associated with this PartitionableObject. Will return the ObjectTag when present, null otherwise.
        Parameters:
        objectTagDefinition - The ObjectTagDefinition.
        Returns:
        The ObjectTag associated to the PartitionableObject if found, null otherwise.
      • setPartition

        void setPartition​(Partition newPartition)
        Set the value for Partition. This value is mandatory.
        Parameters:
        newPartition - is the object to set Partition to. The objects in this partition. If this is null, then the object cannot be persisted.