Package de.xima.fc.gui.bean.user
Class ClientAuthorizationBean
java.lang.Object
de.xima.fc.gui.common.bean.ABooleanExpressionBean
de.xima.fc.gui.bean.user.ClientAuthorizationBean
- All Implemented Interfaces:
Serializable
@Named
@ViewScoped
public class ClientAuthorizationBean
extends ABooleanExpressionBean
implements Serializable
Bean for handling of
IEntityClientAuthorization
in the authorizations.xhtml
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Field Summary
Fields inherited from class de.xima.fc.gui.common.bean.ABooleanExpressionBean
localeBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the user clicks on the add button to add a new condition.void
Method evoked after createNewAuthorization got called and a implementation is chosen, to add a newDirectClientAuthorization
to this model here and fulfilling its specific conditions i.e.void
Method evoked after createNewAuthorization got called and a implementation is chosen, to add a newIndirectClientAuthorization
to this model hereboolean
canBeDeleted
(IEntityClientAuthorization authorization) boolean
canBeEdited
(IEntityClientAuthorization authorization) boolean
canPermissionDetailsBeEdited
(IEntityClientAuthorization authorization) boolean
canRoleBeEdited
(Rolle role, IEntityClientAuthorization authorization) void
Since the exact implementation of a newIEntityClientAuthorization
has to be chosen first, this function replaces the casual model.addNew() call from clientAuthorizationListToolbar.xhtmlvoid
deleteAuthorization
(IEntityClientAuthorization authorization) Method to call model.deleteEntity, since else there is a ELResolverException (maybe because of interface parameter)findAttributes
(String query) findValueOptions
(String query) getAttribute
(Object obj) getAttributeDescription
(Object attribute) getAttributeDisplayName
(Object attribute) getAttributeIcon
(ProfileAttributeDescriptor attribute) getAttributeIconTitle
(ProfileAttributeDescriptor attribute) List<javax.faces.model.SelectItem>
getAvailableInboxNames
(IEntityClientAuthorization authorization) Class<?>
getClass
(IEntityClientAuthorization authorization) Method needed for clientAuthorizationList.xhtml groupBygetDisplayEmailAddress
(IEntityClientAuthorization authorization) getDisplayName
(Object value) Finds the selected filter type of the current authorizer.Finds the selected filter type of the given authorizer.Finds all valid filter type options for the currently selected authorizer.Finds all valid filter type options for the given authorizer.IFileEntity<?,
?> getImageFile
(IEntityClientAuthorization authorization) getInitials
(IEntityClientAuthorization authorization) Method to extract first one or two letters of the display name, if its direct its fore- and surename letters are usedgetModel()
Method to return list of allRolle
of a selectedIEntityClientAuthorization
Method to return list of allBenutzerGruppe
of the current client.getUserIdentities
(IEntityClientAuthorization authorization) getValueDescription
(IProfileAttributeDescriptor attribute, Object value) getValueDisplayName
(IProfileAttributeDescriptor attribute, Object value) getValueIcon
(ProfileAttributeDescriptor attribute, String value) getValueIconTitle
(ProfileAttributeDescriptor attribute, String value) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
onAttributeSelect
(org.primefaces.event.SelectEvent<ProfileAttributeDescriptor> event) void
removeCondition
(int index) Called when the user clicks on the remove button on a condition.void
void
save()
void
saveAndSendInvitation
(DirectClientAuthorization authorization) void
void
sendInvitation
(DirectClientAuthorization authorization) void
setAuthorization
(IEntityClientAuthorization authorization) void
setChooseType
(boolean chooseType) void
setClientDescriptor
(IClientDescriptor clientDescriptor) void
setFilterType
(String type) void
Method to help with clicks on avatar + gravatarvoid
Methods inherited from class de.xima.fc.gui.common.bean.ABooleanExpressionBean
completeCustomExpression, findNewVariableName, getOrderedCombinationTypes, getOrderedMatchConditions, lintCustomExpression
-
Constructor Details
-
ClientAuthorizationBean
public ClientAuthorizationBean()
-
-
Method Details
-
getModel
-
updateModel
public void updateModel() -
canBeDeleted
-
canBeEdited
-
canPermissionDetailsBeEdited
-
canRoleBeEdited
-
isCanMarkedBeDeleted
public boolean isCanMarkedBeDeleted() -
isShowSaveAndSendButton
public boolean isShowSaveAndSendButton() -
isShowResendInvitationButton
public boolean isShowResendInvitationButton() -
isShowRoleSelection
public boolean isShowRoleSelection() -
isShowNoBackendAccessWarning
public boolean isShowNoBackendAccessWarning() -
isShowBackendAccessWithoutFilterWarning
public boolean isShowBackendAccessWithoutFilterWarning() -
isShowBackendAccessWithoutFilterWarning
-
isShowTestUserRedirectClientButton
public boolean isShowTestUserRedirectClientButton() -
isShowTestUserInputClientButton
public boolean isShowTestUserInputClientButton() -
getNoBackendAccessMessage
-
getDisplayEmailAddress
-
getAllVerifiedMails
-
isChooseType
public boolean isChooseType() -
setChooseType
public void setChooseType(boolean chooseType) -
isShowResetLoginsBtn
public boolean isShowResetLoginsBtn() -
isLoginLocked
public boolean isLoginLocked() -
getAuthenticatorOptions
-
getLdapGroups
-
isUserDiscoveryEnabled
public boolean isUserDiscoveryEnabled() -
resetLoginAttemptsForSelected
public void resetLoginAttemptsForSelected() -
createNewAuthorization
public void createNewAuthorization()Since the exact implementation of a newIEntityClientAuthorization
has to be chosen first, this function replaces the casual model.addNew() call from clientAuthorizationListToolbar.xhtml -
addNewDirect
public void addNewDirect()Method evoked after createNewAuthorization got called and a implementation is chosen, to add a newDirectClientAuthorization
to this model here and fulfilling its specific conditions i.e.UserProfile
+UserEmail
-
addNewIndirect
public void addNewIndirect()Method evoked after createNewAuthorization got called and a implementation is chosen, to add a newIndirectClientAuthorization
to this model here -
deleteAuthorization
Method to call model.deleteEntity, since else there is a ELResolverException (maybe because of interface parameter)- Parameters:
authorization
- to be deleted
-
getInitials
Method to extract first one or two letters of the display name, if its direct its fore- and surename letters are used- Parameters:
authorization
- the currently selectedIEntityClientAuthorization
- Returns:
- a String consisting of one to two letters or ? if display name is empty
-
getImageFile
-
getAvailableInboxNames
-
getClass
Method needed for clientAuthorizationList.xhtml groupBy- Parameters:
authorization
- currently handled entity inside p:dataTable- Returns:
- either
IndirectClientAuthorization
orDirectClientAuthorization
-
getUserIdentities
-
getRolesList
Method to return list of allRolle
of a selectedIEntityClientAuthorization
- Returns:
- null if none found or client is system
-
getUserGroupsList
Method to return list of allBenutzerGruppe
of the current client.- Returns:
- null if none found or client is system
-
getFilterType
Finds the selected filter type of the given authorizer. Attempts to read the type from theIndirectClientAuthorization.getCustomPropertiesModel()
. Checks whether that type is a valid filter type, and, if not, returns one of the valid filter types, if any.- Parameters:
auth
- Authorizer to process.- Returns:
- The selected filter type, or any valid filter type if the selected filter type is not valid.
-
getFilterType
Finds the selected filter type of the current authorizer. Attempts to read the type from theIndirectClientAuthorization.getCustomPropertiesModel()
. Checks whether that type is a valid filter type, and, if not, returns one of the valid filter types, if any.- Returns:
- The selected filter type, or any valid filter type if the selected filter type is not valid.
-
setFilterType
-
getFilterTypeOptions
Finds all valid filter type options for the currently selected authorizer.- Returns:
- All valid filter types allowed for the given authorizer.
-
getFilterTypeOptions
Finds all valid filter type options for the given authorizer.- Parameters:
auth
- Authorizer to process.- Returns:
- All valid filter types allowed for the given authorizer.
-
getClientDescriptor
-
setClientDescriptor
-
save
public void save() -
setMarkedAndSelected
Method to help with clicks on avatar + gravatar- Parameters:
entity
- the selected/marked entity
-
setAuthorization
-
saveAndSendInvitation
-
sendInvitation
-
addCondition
public void addCondition()Called when the user clicks on the add button to add a new condition. -
removeCondition
public void removeCondition(int index) Called when the user clicks on the remove button on a condition.- Parameters:
index
- Index of the condition to remove.
-
searchLdapGroups
public void searchLdapGroups() -
findUsers
-
getDisplayName
-
getFoundUserProfile
-
isHasFilterExtensions
public boolean isHasFilterExtensions() -
findAttributes
-
onAttributeSelect
-
findValueOptions
-
getAttributeIcon
-
getAttributeIconTitle
-
getAttributeDisplayName
-
getAttributeDescription
-
getOrderedMatchConditions
-
getRowKey
-
getValueDisplayName
-
getValueDescription
-
getValueIcon
-
getValueIconTitle
-
getAttribute
-
getValue
-
getAllVariables
- Specified by:
getAllVariables
in classABooleanExpressionBean
-