Class Delegation

  • All Implemented Interfaces:
    java.io.Serializable

    public class Delegation
    extends IdentifiableElement
    implements java.io.Serializable
    A delegation of a user to a user <p>Java class for Delegation complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="Delegation"&gt; &lt;complexContent&gt; &lt;extension base="{http://flower.com/docs/domain/common}IdentifiableElement"&gt; &lt;sequence&gt; &lt;element name="delegator" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;element name="delegate" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;element name="start" type="{http://www.w3.org/2001/XMLSchema}dateTime"/&gt; &lt;element name="end" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/&gt; &lt;element name="creator" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;element name="creationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/&gt; &lt;element name="terminator" type="{http://flower.com/docs/domain/common}Id" minOccurs="0"/&gt; &lt;element name="terminationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/&gt; &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Date creationDate
      The date at which the delegation has been created
      protected Id creator
      The user who creates the delegation (it can be different from delegator)
      protected Id delegate
      The identity who received the delegation
      protected Id delegator
      The identity who delegates
      protected java.lang.String description
      The delegation description allowing to indicates why the delegation has been created
      protected java.util.Date end
      The date at which ends the delegation
      protected java.util.Date start
      The date at which starts the delegation
      protected java.util.Date terminationDate  
      protected Id terminator
      The user who terminated the delegation (reduced the end date)
    • Constructor Summary

      Constructors 
      Constructor Description
      Delegation()
      Default no-arg constructor abc
      Delegation​(Id id, Id delegator, Id delegate, java.util.Date start, java.util.Date end, Id creator, java.util.Date creationDate, Id terminator, java.util.Date terminationDate, java.lang.String description)
      Fully-initialising value constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      java.util.Date getCreationDate()
      Gets the value of the creationDate property.
      Id getCreator()
      Gets the value of the creator property.
      Id getDelegate()
      Gets the value of the delegate property.
      Id getDelegator()
      Gets the value of the delegator property.
      java.lang.String getDescription()
      Gets the value of the description property.
      java.util.Date getEnd()
      Gets the value of the end property.
      java.util.Date getStart()
      Gets the value of the start property.
      java.util.Date getTerminationDate()
      Gets the value of the terminationDate property.
      Id getTerminator()
      Gets the value of the terminator property.
      int hashCode()  
      void setCreationDate​(java.util.Date value)
      Sets the value of the creationDate property.
      void setCreator​(Id value)
      Sets the value of the creator property.
      void setDelegate​(Id value)
      Sets the value of the delegate property.
      void setDelegator​(Id value)
      Sets the value of the delegator property.
      void setDescription​(java.lang.String value)
      Sets the value of the description property.
      void setEnd​(java.util.Date value)
      Sets the value of the end property.
      void setStart​(java.util.Date value)
      Sets the value of the start property.
      void setTerminationDate​(java.util.Date value)
      Sets the value of the terminationDate property.
      void setTerminator​(Id value)
      Sets the value of the terminator property.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • delegator

        protected Id delegator
        The identity who delegates
      • delegate

        protected Id delegate
        The identity who received the delegation
      • start

        protected java.util.Date start
        The date at which starts the delegation
      • end

        protected java.util.Date end
        The date at which ends the delegation
      • creator

        protected Id creator
        The user who creates the delegation (it can be different from delegator)
      • creationDate

        protected java.util.Date creationDate
        The date at which the delegation has been created
      • terminator

        protected Id terminator
        The user who terminated the delegation (reduced the end date)
      • terminationDate

        protected java.util.Date terminationDate
      • description

        protected java.lang.String description
        The delegation description allowing to indicates why the delegation has been created
    • Constructor Detail

      • Delegation

        public Delegation()
        Default no-arg constructor abc
      • Delegation

        public Delegation​(Id id,
                          Id delegator,
                          Id delegate,
                          java.util.Date start,
                          java.util.Date end,
                          Id creator,
                          java.util.Date creationDate,
                          Id terminator,
                          java.util.Date terminationDate,
                          java.lang.String description)
        Fully-initialising value constructor
    • Method Detail

      • getDelegator

        public Id getDelegator()
        Gets the value of the delegator property. <p> The identity who delegates
        Returns:
        possible object is Id
      • setDelegator

        public void setDelegator​(Id value)
        Sets the value of the delegator property.
        Parameters:
        value - allowed object is Id
        See Also:
        getDelegator()
      • getDelegate

        public Id getDelegate()
        Gets the value of the delegate property. <p> The identity who received the delegation
        Returns:
        possible object is Id
      • setDelegate

        public void setDelegate​(Id value)
        Sets the value of the delegate property.
        Parameters:
        value - allowed object is Id
        See Also:
        getDelegate()
      • getStart

        public java.util.Date getStart()
        Gets the value of the start property. <p> The date at which starts the delegation
        Returns:
        possible object is String
      • setStart

        public void setStart​(java.util.Date value)
        Sets the value of the start property.
        Parameters:
        value - allowed object is String
        See Also:
        getStart()
      • getEnd

        public java.util.Date getEnd()
        Gets the value of the end property. <p> The date at which ends the delegation
        Returns:
        possible object is String
      • setEnd

        public void setEnd​(java.util.Date value)
        Sets the value of the end property.
        Parameters:
        value - allowed object is String
        See Also:
        getEnd()
      • getCreator

        public Id getCreator()
        Gets the value of the creator property. <p> The user who creates the delegation (it can be different from delegator)
        Returns:
        possible object is Id
      • setCreator

        public void setCreator​(Id value)
        Sets the value of the creator property.
        Parameters:
        value - allowed object is Id
        See Also:
        getCreator()
      • getCreationDate

        public java.util.Date getCreationDate()
        Gets the value of the creationDate property. <p> The date at which the delegation has been created
        Returns:
        possible object is String
      • setCreationDate

        public void setCreationDate​(java.util.Date value)
        Sets the value of the creationDate property.
        Parameters:
        value - allowed object is String
        See Also:
        getCreationDate()
      • getTerminator

        public Id getTerminator()
        Gets the value of the terminator property. <p> The user who terminated the delegation (reduced the end date)
        Returns:
        possible object is Id
      • setTerminator

        public void setTerminator​(Id value)
        Sets the value of the terminator property.
        Parameters:
        value - allowed object is Id
        See Also:
        getTerminator()
      • getTerminationDate

        public java.util.Date getTerminationDate()
        Gets the value of the terminationDate property.
        Returns:
        possible object is String
      • setTerminationDate

        public void setTerminationDate​(java.util.Date value)
        Sets the value of the terminationDate property.
        Parameters:
        value - allowed object is String
      • getDescription

        public java.lang.String getDescription()
        Gets the value of the description property. <p> The delegation description allowing to indicates why the delegation has been created
        Returns:
        possible object is String
      • setDescription

        public void setDescription​(java.lang.String value)
        Sets the value of the description property.
        Parameters:
        value - allowed object is String
        See Also:
        getDescription()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object