public interface PrincipalTypeServiceLocal extends PrincipalTypeService, CRUDServiceLocal<PrincipalType,PrincipalTypeDTO,PrincipalTypeData,PrincipalTypeNature>
PrincipalTypeService| Modifier and Type | Method and Description |
|---|---|
PrincipalType |
find(java.lang.String internalName,
Network network)
Finds a principal by internal name in the specified network
|
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 |
getTrustedDevice()
Returns the trustedDevice principal type
|
BuiltInPrincipalType |
getUsername()
Returns the username principal type
|
java.util.List<AccessClientPrincipalType> |
listAccessClients()
Returns a list with all access clients
|
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<TokenPermissionsVO> |
listUserTokenPermissions(BasicUser user)
Returns the permissions over tokens for the given user.
|
java.util.List<TokenPermissionsVO> |
listUserTokenPermissions(UserGroup group,
boolean asMember)
Returns the permissions over tokens on a user registration.
|
java.util.List<AccessClientPrincipalType> |
listVisibleAccessClients(User user)
Returns the access client types the logged user can see over the given 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
|
list, listUserTokenPermissionsfind, findAll, getEntityClass, newEntity, remove, removeAll, saveSkippingEntityLog, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, savePrincipalType find(java.lang.String internalName, Network network)
BuiltInPrincipalType 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 getTrustedDevice()
BuiltInPrincipalType getUsername()
java.util.List<AccessClientPrincipalType> listAccessClients()
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<TokenPermissionsVO> listUserTokenPermissions(BasicUser user)
java.util.List<TokenPermissionsVO> listUserTokenPermissions(UserGroup group, boolean asMember)
java.util.List<AccessClientPrincipalType> listVisibleAccessClients(User user)
PrincipalType load(java.lang.String internalName)
void sort(java.util.List<PrincipalType> principalTypes)