Package org.cyclos.impl.users
Interface OperatorServiceLocal
-
- All Superinterfaces:
CRUDService<OperatorDTO,OperatorData,OperatorDataParams>,CRUDServiceLocal<Operator,OperatorDTO,OperatorData,OperatorDataParams>,CRUDWithConfirmationPasswordService<OperatorDTO,OperatorData,OperatorDataParams>,OperatorService,Service
- All Known Implementing Classes:
OperatorServiceImpl
public interface OperatorServiceLocal extends CRUDServiceLocal<Operator,OperatorDTO,OperatorData,OperatorDataParams>, OperatorService
Local interface forOperatorService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OperatorGroupAccountAccessaccountAccess(Account account)If the logged user is a restricted operator, returns his access over the given account (never null).booleancanViewOperators(User user)Returns true if the logged user can view the operators of the given user.Object[]getExcludedPropertiesToEntity()Same as thegetExcludedPropertiesToEntity()method from theCRUDServiceImplbut for all dto's instances.booleanhasOperators(User user)Returns whether the user even had operatorscom.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.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.List<Operator>list(User user)Lists all operators for the given userList<Operator>listAliases(User user)Lists the alias operators of the given user.voidonRegistrationValidation(Operator operator)Performs additional actions when an operator registration is validatedvoidremoveAll(User user, boolean purge)Removes all operators from the given user-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.CRUDWithConfirmationPasswordService
getConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPassword
-
Methods inherited from interface org.cyclos.services.users.OperatorService
getSearchData, getViewProfileData, register, search
-
-
-
-
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 thegetExcludedPropertiesToEntity()method from theCRUDServiceImplbut 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.
-
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
-
-