Class StaffMember

java.lang.Object
de.calamanari.pk.composite.StaffMember
All Implemented Interfaces:
EnterpriseNode

public class StaffMember
extends java.lang.Object
implements EnterpriseNode
Staff member is the LEAF implementing the component interface
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    StaffMember​(java.lang.String firstName, java.lang.String lastName, java.lang.String jobTitle)
    Creates new member using this given arguments
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDescription()
    Returns some descriptive text
    AbstractEnterpriseUnit getEnterpriseUnit()
    Returns the enterprise unit this person works for.
    java.lang.String getFirstName()
    Returns the first name
    java.lang.String getJobTitle()
    Returns the job title of this staff member
    java.lang.String getLastName()
    Returns the person's last name.
    java.lang.String getName()
    Name of organizational unit or member
    EnterpriseNode getParentNode()
    Returns the parent of this node or null for the root element.
    void setEnterpriseUnit​(AbstractEnterpriseUnit enterpriseUnit)
    Sets the enterprise unit this person works for
    void setFirstName​(java.lang.String firstName)
    sets the person's first name
    void setJobTitle​(java.lang.String jobTitle)
    Sets this staff member's job title
    void setLastName​(java.lang.String lastName)
    Sets the person's last name

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StaffMember

      public StaffMember​(java.lang.String firstName, java.lang.String lastName, java.lang.String jobTitle)
      Creates new member using this given arguments
      Parameters:
      firstName - first name
      lastName - name
      jobTitle - the job of the person
  • Method Details

    • getFirstName

      public java.lang.String getFirstName()
      Returns the first name
      Returns:
      first name
    • setFirstName

      public void setFirstName​(java.lang.String firstName)
      sets the person's first name
      Parameters:
      firstName - person's first name
    • getLastName

      public java.lang.String getLastName()
      Returns the person's last name.
      Returns:
      last name
    • setLastName

      public void setLastName​(java.lang.String lastName)
      Sets the person's last name
      Parameters:
      lastName - person's last name
    • setEnterpriseUnit

      public void setEnterpriseUnit​(AbstractEnterpriseUnit enterpriseUnit)
      Sets the enterprise unit this person works for
      Parameters:
      enterpriseUnit - unit the member works for
    • getJobTitle

      public java.lang.String getJobTitle()
      Returns the job title of this staff member
      Returns:
      job title
    • setJobTitle

      public void setJobTitle​(java.lang.String jobTitle)
      Sets this staff member's job title
      Parameters:
      jobTitle - person's job
    • getEnterpriseUnit

      Returns the enterprise unit this person works for.
      Returns:
      enterprise unit
    • getName

      public java.lang.String getName()
      Description copied from interface: EnterpriseNode
      Name of organizational unit or member
      Specified by:
      getName in interface EnterpriseNode
      Returns:
      display name
    • getParentNode

      Description copied from interface: EnterpriseNode
      Returns the parent of this node or null for the root element.
      Specified by:
      getParentNode in interface EnterpriseNode
      Returns:
      parent node or null
    • getDescription

      public java.lang.String getDescription()
      Description copied from interface: EnterpriseNode
      Returns some descriptive text
      Specified by:
      getDescription in interface EnterpriseNode
      Returns:
      description