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(BasicUser user)
Returns a list of
TokenPrincipalType of type TokenType.NFC_TAG available for activation (i.e. |
java.util.List<TokenPrincipalType> |
listActivatableTokenPrincipalTypes(UserGroup group,
boolean asMember)
Returns a list of
TokenPrincipalType 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,
Channel channel,
org.cyclos.impl.access.PrincipalTypeContext context)
Returns the principal types which can be used on channel configurations under the given channel and 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(BasicUser 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(BasicUser user)
TokenPrincipalType of type TokenType.NFC_TAG available for activation (i.e.
personalization) and enabled for the specified user according to the logged 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.UserManagementProduct.getUserTokenTypes().
Otherwise, if the logged user is related to the user or the given user is an operator and the logged is the owner
then it retrieve the types returnes by MemberProduct.getActivateUserTokenTypes().java.util.List<TokenPrincipalType> listActivatableTokenPrincipalTypes(UserGroup group, boolean asMember)
TokenPrincipalType of type TokenType.NFC_TAG available for activation (i.e.
personalization) and enabled for the specified user group according to the logged user.asMember - Flag used to get the list of token types to chkeck. Only used if the logged user is a broker.listActivatableTokenPrincipalTypes(BasicUser)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, Channel channel, 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(BasicUser user, boolean forUserManagement)
PrincipalType load(java.lang.String internalName)
void sort(java.util.List<PrincipalType> principalTypes)