Interface OperatorServiceLocal

    • Field Detail

      • op

        static final QOperator op
        This should be used instead of QOperator.operator, because "operator" is not a valid JPQL vairable, and causes errors
    • Method Detail

      • accountAccess

        OperatorGroupAccountAccess accountAccess​(Account account)
        If the logged user is a restricted operator, returns his access over the given account (never null). If not a restricted operator, returns null.
      • canViewOperators

        boolean canViewOperators​(User user)
        Returns true if the logged user can view the operators of the given user.
      • getExcludedPropertiesToEntity

        Object[] getExcludedPropertiesToEntity()
        Same as the getExcludedPropertiesToEntity() method from the CRUDServiceImpl but for all dto's instances.
      • hasOperators

        boolean hasOperators​(User user)
        Returns whether the user even had operators
      • iterateOperatorsToNotify

        com.mysema.commons.lang.CloseableIterator<Operator> iterateOperatorsToNotify​(BasicUser destination,
                                                                                     UserNotificationType type,
                                                                                     boolean aliasesOnly)
        Returns either all or only alias operators from the given owner that chose to receive the given notification type. If the destination is an operator, he won't be included in the result.
      • iteratePossibleAuthorizers

        com.mysema.commons.lang.CloseableIterator<BasicUser> iteratePossibleAuthorizers​(Operator operator,
                                                                                        PaymentTransferType type)
        Returns all basic users that can authorize payments of the given type, excluding the given operator. The member is always returned, as well as any alias operators, plus all operators that have permission to authorize the given payment type.
      • list

        List<Operator> list​(User user)
        Lists all operators for the given user
      • listAliases

        List<Operator> listAliases​(User user)
        Lists the alias operators of the given user. Aliases are operators without a group
      • onRegistrationValidation

        void onRegistrationValidation​(Operator operator)
        Performs additional actions when an operator registration is validated
      • removeAll

        void removeAll​(User user,
                       boolean purge)
        Removes all operators from the given user