Interface ChangeOwner

  • All Known Subinterfaces:
    JobDefinition, JobGroup

    public interface ChangeOwner
    Objects that implement this interface have an owner associated with them. For personalized objects the owner can't be changed, but for scheduling objects it is allowed. The user must have the global ChangeOwner privilege. An object that allows to change the owner must provide the original creator in the CreatedBy field.
    • Field Detail

      • CREATED_BY_SUBJECT_FIELD

        static final String CREATED_BY_SUBJECT_FIELD
        The high-level field name for the CreatedBy field
        See Also:
        Constant Field Values
    • Method Detail

      • getCreatedBySubject

        Subject getCreatedBySubject()
        Returns:
        the User that originally created the entity.
      • setOwner

        void setOwner​(Subject newOwner)
        Set the new owner. If newOwner is null, the owner will be set to the user of of the session during the persist.
        Parameters:
        newOwner -