Class Method

Object
Method
All Implemented Interfaces:
Serializable, Ownage

@Entity public class Method extends Object implements Serializable, Ownage
Author:
maartenl
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getSrc

      public String getSrc()
      Get the javascript source to execute.
      Returns:
    • setSrc

      public void setSrc(String src)
    • getCreation

      public LocalDateTime getCreation()
    • setCreation

      public void setCreation(LocalDateTime creation)
    • getEventCollection

      public Collection<Event> getEventCollection()
    • setEventCollection

      public void setEventCollection(Collection<Event> eventCollection)
    • getCommandCollection

      public Collection<UserCommand> getCommandCollection()
    • setCommandCollection

      public void setCommandCollection(Collection<UserCommand> commandCollection)
    • getOwner

      public Admin getOwner()
      Description copied from interface: Ownage
      Retrieves the owner, the administrator, of this object. In case this is null, anyone can edit the object.
      Specified by:
      getOwner in interface Ownage
      Returns:
    • setOwner

      public void setOwner(Admin owner)
      Description copied from interface: Ownage
      Sets the owner, the administrator, of this object.
      Specified by:
      setOwner in interface Ownage
      Parameters:
      owner - the owner/administrator of the object. In case this is null, which is allowed, any administrator can edit this object. This is what happens when an object is "disowned".
    • hashCode

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

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMmCommandsCollection

      public Collection<UserCommand> getMmCommandsCollection()
    • setMmCommandsCollection

      public void setMmCommandsCollection(Collection<UserCommand> mmCommandsCollection)