Interface DelegationService

  • All Superinterfaces:
    CRUDService<com.flower.docs.domain.delegation.Delegation>

    public interface DelegationService
    extends CRUDService<com.flower.docs.domain.delegation.Delegation>
    Manage delegation
    Author:
    Gaopeng ZHOU
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<com.flower.docs.domain.delegation.Delegation> getByDelegate​(com.flower.docs.domain.common.Id delegate, boolean includeTerminated)  
      java.util.List<com.flower.docs.domain.delegation.Delegation> getByDelegator​(com.flower.docs.domain.common.Id delegator, boolean includeTerminated)
      Gets delegations by delegator
      com.flower.docs.domain.search.SearchResponse search​(com.flower.docs.domain.search.SearchRequest request)  
    • Method Detail

      • getByDelegator

        java.util.List<com.flower.docs.domain.delegation.Delegation> getByDelegator​(com.flower.docs.domain.common.Id delegator,
                                                                                    boolean includeTerminated)
                                                                             throws com.flower.docs.domain.exception.FunctionalException,
                                                                                    com.flower.docs.domain.exception.TechnicalException
        Gets delegations by delegator
        Parameters:
        delegator - The person who grants the delegation
        Returns:
        The historical delegations that granted by the delegator
        Throws:
        com.flower.docs.domain.exception.FunctionalException - If a functional error occurs
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurs
        See Also:
        Delegation.getDelegator()
      • getByDelegate

        java.util.List<com.flower.docs.domain.delegation.Delegation> getByDelegate​(com.flower.docs.domain.common.Id delegate,
                                                                                   boolean includeTerminated)
                                                                            throws com.flower.docs.domain.exception.FunctionalException,
                                                                                   com.flower.docs.domain.exception.TechnicalException
        Parameters:
        delegate - The person who obtains the delegation
        date - The given moment
        Returns:
        The delegations that obtained by the delegate at the given moment
        Throws:
        com.flower.docs.domain.exception.FunctionalException - If a functional error occurs
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurs
      • search

        com.flower.docs.domain.search.SearchResponse search​(com.flower.docs.domain.search.SearchRequest request)
                                                     throws com.flower.docs.domain.exception.FunctionalException,
                                                            com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.FunctionalException
        com.flower.docs.domain.exception.TechnicalException