public interface PrincipalTypeServiceLocal extends PrincipalTypeService, CRUDServiceLocal<PrincipalType,PrincipalTypeDTO,PrincipalTypeData,PrincipalTypeNature>
PrincipalTypeService| Modifier and Type | Method and Description |
|---|---|
BuiltInPrincipalType |
getAccountNumber()
Returns the account number principal type
|
CustomFieldPrincipalType |
getCustomField(UserCustomField field)
Returns the principal type for the given custom field
|
BuiltInPrincipalType |
getEmail()
Returns the e-mail principal type
|
BuiltInPrincipalType |
getMobilePhone()
Returns the mobilePhone principal type
|
byte[] |
getPiccMasterKey(NFCTokenPrincipalType nfcTokenPrincipalType)
Returns the encryption key set for the given
NFCTokenPrincipalType. |
BuiltInPrincipalType |
getUsername()
Returns the username principal type
|
java.util.List<AccessClientPrincipalType> |
listAccessClients()
Returns a list with all access clients
|
java.util.List<TokenPrincipalType> |
listActivatableTokenPrincipalTypes(User user,
boolean asUserManager)
Returns a list with the Token principal types of type
TokenType.NFC_TAG available for activation (i.e. |
java.util.List<PrincipalType> |
listAll()
Returns all principal types
|
java.util.List<PrincipalType> |
listByNatures(PrincipalTypeNature... natures)
List the principal types filtering by principal type natures
|
java.util.List<TokenPrincipalType> |
listByType(TokenType type)
List the token principal types filtering by token type
|
java.util.List<PrincipalType> |
listForConfiguration(ConfigurationAccessor configuration,
org.cyclos.impl.access.PrincipalTypeContext context)
Returns the principal types which can be used on channel configurations under the given context
|
java.util.List<PrincipalType> |
listForLogin(ChannelConfiguration channelConfiguration)
Returns the principal types which can be used for login in the given channel configuration
|
java.util.List<TokenPrincipalType> |
listInitializableTokenPrincipalTypes()
Returns the list of token principal types allowed to initialize for a manager user.
|
java.util.List<AccessClientPrincipalType> |
listVisibleAccessClients(User user)
Returns the access client types the logged user can see over the given user
|
java.util.List<TokenPrincipalType> |
listVisibleTokenPrincipalTypes(User user,
boolean forUserManagement)
Returns the list of token principal types visible to the given user
If the user is null it returns the ones visible to the logged user.
|
PrincipalType |
load(java.lang.String internalName)
Loads a principal type by internal name
|
void |
sort(java.util.List<PrincipalType> principalTypes)
Sorts the given list of principal types according to the search order
|
listfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveBuiltInPrincipalType getAccountNumber()
CustomFieldPrincipalType getCustomField(UserCustomField field)
BuiltInPrincipalType getEmail()
BuiltInPrincipalType getMobilePhone()
byte[] getPiccMasterKey(NFCTokenPrincipalType nfcTokenPrincipalType)
NFCTokenPrincipalType.
This plain key will be sent at NFCToken's initialization.BuiltInPrincipalType getUsername()
java.util.List<AccessClientPrincipalType> listAccessClients()
java.util.List<TokenPrincipalType> listActivatableTokenPrincipalTypes(User user, boolean asUserManager)
TokenType.NFC_TAG available for activation (i.e.
personalization) for the specified user.user - If null then returns all available for personalization for the logged user. Otherwise the result is
restricted only for those enabled for the user.asUserManager - if true then the list of token principal types allowed to personalize are returned (See
UserManagementProduct.getUserTokenTypes()). Otherwise the available principal types for activation (as
user) are returned (See MemberProduct.getActivateUserTokenTypes()).java.util.List<PrincipalType> listAll()
java.util.List<PrincipalType> listByNatures(PrincipalTypeNature... natures)
java.util.List<TokenPrincipalType> listByType(TokenType type)
java.util.List<PrincipalType> listForConfiguration(ConfigurationAccessor configuration, org.cyclos.impl.access.PrincipalTypeContext context)
java.util.List<PrincipalType> listForLogin(ChannelConfiguration channelConfiguration)
java.util.List<TokenPrincipalType> listInitializableTokenPrincipalTypes()
UserManagementProduct.getUserTokenTypes().java.util.List<AccessClientPrincipalType> listVisibleAccessClients(User user)
java.util.List<TokenPrincipalType> listVisibleTokenPrincipalTypes(User user, boolean forUserManagement)
PrincipalType load(java.lang.String internalName)
void sort(java.util.List<PrincipalType> principalTypes)