Package org.cyclos.impl.users
Interface UserLocatorHandler
-
- All Known Implementing Classes:
UserLocatorHandlerImpl
public interface UserLocatorHandlerContains methods useful to locate users- See Also:
UserService.locate(UserLocatorVO)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUserLocatorHandler.BasicUserVOFillerMarksBasicUserVOs to be filled in a batch
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static StringasString(UserLocatorVO locator)Returns a String representation of a locatorLocateUserResultlocate(Network network, UserLocatorVO locator)Locates a user on the given network, using aRawEntityManagerHandler.LocateUserResultlocate(Network network, UserLocatorVO locator, Set<LocateUserOption> options)Locates a user on the given network, using aRawEntityManagerHandler, using custom options.LocateUserResultlocate(Network network, UserLocatorVO locator, Set<LocateUserOption> options, Collection<PrincipalType> principalTypes, PrincipalType defaultPrincipalType)Locates a user on the given network, using aRawEntityManagerHandler, using custom options.LocateUserResultlocate(UserLocatorVO locator)Locates a user on the current network, using aRawEntityManagerHandler.LocateUserResultlocate(UserLocatorVO locator, Set<LocateUserOption> options)Locates a user on the current network, using aRawEntityManagerHandler, using custom options.LocateUserResultlocate(UserLocatorVO locator, Set<LocateUserOption> options, Collection<PrincipalType> principalTypes, PrincipalType defaultPrincipalType)Locates a user on the given network, using aRawEntityManagerHandler, using custom options.UserLocatorHandler.BasicUserVOFillernewVoFiller()Creates aUserLocatorHandler.BasicUserVOFillerwhich can be used to fetch data forBasicUserVO's from VO's containing only the idBasicUsertoBasicUserOrCurrent(BasicUserVO vo)Converts the givenBasicUserVOto aBasicUser, returning the logged basic user if the parameter is null or empty.UsertoUserOrCurrent(BasicUserVO vo)Converts the givenBasicUserVOto aUser, returning the logged user if the parameter is null or empty.
-
-
-
Method Detail
-
asString
static String asString(UserLocatorVO locator)
Returns a String representation of a locator
-
locate
LocateUserResult locate(Network network, UserLocatorVO locator)
Locates a user on the given network, using aRawEntityManagerHandler. Doesn't enforces the returned user to be related to the current session. It is allowed either id or any of the profile fields marked in the product as show in keywords, plus the visible tokens.
-
locate
LocateUserResult locate(Network network, UserLocatorVO locator, Set<LocateUserOption> options)
Locates a user on the given network, using aRawEntityManagerHandler, using custom options. Doesn't enforces the returned user to be related to the current session. It is allowed either id or any of the profile fields marked in the product as show in keywords, plus the visible tokens.
-
locate
LocateUserResult locate(Network network, UserLocatorVO locator, Set<LocateUserOption> options, Collection<PrincipalType> principalTypes, PrincipalType defaultPrincipalType)
Locates a user on the given network, using aRawEntityManagerHandler, using custom options. Doesn't enforces the returned user to be related to the current session.
-
locate
LocateUserResult locate(UserLocatorVO locator)
Locates a user on the current network, using aRawEntityManagerHandler. Enforces the returned user to be related to the current session. It is allowed either id or any of the profile fields marked in the product as show in keywords, plus the visible tokens.
-
locate
LocateUserResult locate(UserLocatorVO locator, Set<LocateUserOption> options)
Locates a user on the current network, using aRawEntityManagerHandler, using custom options. Enforces the returned user to be related to the current session. It is allowed either id or any of the profile fields marked in the product as show in keywords, plus the visible tokens.
-
locate
LocateUserResult locate(UserLocatorVO locator, Set<LocateUserOption> options, Collection<PrincipalType> principalTypes, PrincipalType defaultPrincipalType)
Locates a user on the given network, using aRawEntityManagerHandler, using custom options. Enforces the returned user to be related to the current session.
-
newVoFiller
UserLocatorHandler.BasicUserVOFiller newVoFiller()
Creates aUserLocatorHandler.BasicUserVOFillerwhich can be used to fetch data forBasicUserVO's from VO's containing only the id
-
toBasicUserOrCurrent
BasicUser toBasicUserOrCurrent(BasicUserVO vo)
Converts the givenBasicUserVOto aBasicUser, returning the logged basic user if the parameter is null or empty.- Throws:
EntityNotFoundException- If no logged user and the parameter is null
-
toUserOrCurrent
User toUserOrCurrent(BasicUserVO vo)
Converts the givenBasicUserVOto aUser, returning the logged user if the parameter is null or empty.- Throws:
EntityNotFoundException- If no logged user and the parameter is null
-
-