Package ch.tocco.nice2.userbase.impl
Class ArgumentFactories.PrincipalNameFactory
java.lang.Object
ch.tocco.nice2.userbase.impl.ArgumentFactories.PrincipalNameFactory
- All Implemented Interfaces:
ArgumentFactory<String>
- Enclosing class:
ArgumentFactories
public static class ArgumentFactories.PrincipalNameFactory
extends Object
implements ArgumentFactory<String>
Returns the username of the current principal.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.spi.query.ArgumentFactory
ArgumentFactory.ParameternameAware
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getArgument
(String parameterName) Return the final argument.
-
Constructor Details
-
PrincipalNameFactory
public PrincipalNameFactory()
-
-
Method Details
-
getArgument
Description copied from interface:ArgumentFactory
Return the final argument.- Specified by:
getArgument
in interfaceArgumentFactory<String>
- Parameters:
parameterName
- the parameter name used triggering thisArgumentFactory
- Returns:
- the value to be set for the requested parameter
-