Interface IUnitAttributeService


public interface IUnitAttributeService
IUnitAttributeService
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canCreateSubUnit(int nIdUnit)
    Check if the given id unit can creabe sub units
    void
    doCreateUnit(Unit unit, javax.servlet.http.HttpServletRequest request)
    Do create the additional attributes of the given unit
    void
    doModifyUnit(Unit unit, javax.servlet.http.HttpServletRequest request)
    Do modify the additional attributes of the given unit
    void
    doRemoveUnit(int nIdUnit, javax.servlet.http.HttpServletRequest request)
    Do remove the additional attributes
    void
    moveSubTree(Unit unitToMove, Unit newUnitParent)
    Update attributes to change the parent of a unit.
    void
    populate(Unit unit)
    Populate an unit additionnal attributes with the data of the database
    void
    populate(Unit unit, javax.servlet.http.HttpServletRequest request)
    Populate an unit additionnal attributes with the data of the request
  • Method Details

    • doCreateUnit

      void doCreateUnit(Unit unit, javax.servlet.http.HttpServletRequest request)
      Do create the additional attributes of the given unit
      Parameters:
      unit - the unit
      request - the HTTP request
    • doModifyUnit

      void doModifyUnit(Unit unit, javax.servlet.http.HttpServletRequest request)
      Do modify the additional attributes of the given unit
      Parameters:
      unit - the unit
      request - the HTTP request
    • doRemoveUnit

      void doRemoveUnit(int nIdUnit, javax.servlet.http.HttpServletRequest request)
      Do remove the additional attributes
      Parameters:
      nIdUnit - the id unit
      request - the HTTP request
    • populate

      void populate(Unit unit)
      Populate an unit additionnal attributes with the data of the database
      Parameters:
      unit - the unit to populate
    • populate

      void populate(Unit unit, javax.servlet.http.HttpServletRequest request) throws UnitErrorException
      Populate an unit additionnal attributes with the data of the request
      Parameters:
      unit - the unit to populate
      request - the HTTP request
      Throws:
      UnitErrorException - exception if there is an error (ex: mandatory field)
    • canCreateSubUnit

      boolean canCreateSubUnit(int nIdUnit)
      Check if the given id unit can creabe sub units
      Parameters:
      nIdUnit - the id unit
      Returns:
      true if the unit can create sub unit
    • moveSubTree

      void moveSubTree(Unit unitToMove, Unit newUnitParent)
      Update attributes to change the parent of a unit.
      Parameters:
      unitToMove - The unit to change the parent of.
      newUnitParent - The new parent of the unit