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 TypeMethodDescriptionvoidCalled when the user clicks on the add button to add a new condition.voidMethod evoked after createNewAuthorization got called and a implementation is chosen, to add a newDirectClientAuthorizationto this model here and fulfilling its specific conditions i.e.voidMethod evoked after createNewAuthorization got called and a implementation is chosen, to add a newIndirectClientAuthorizationto this model herebooleancanBeDeleted(IEntityClientAuthorization authorization) booleancanBeEdited(IEntityClientAuthorization authorization) booleancanPermissionDetailsBeEdited(IEntityClientAuthorization authorization) booleancanRoleBeEdited(Rolle role, IEntityClientAuthorization authorization) voidSince the exact implementation of a newIEntityClientAuthorizationhas to be chosen first, this function replaces the casual model.addNew() call from clientAuthorizationListToolbar.xhtmlvoiddeleteAuthorization(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 allRolleof a selectedIEntityClientAuthorizationMethod to return list of allBenutzerGruppeof 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) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidonAttributeSelect(org.primefaces.event.SelectEvent<ProfileAttributeDescriptor> event) voidremoveCondition(int index) Called when the user clicks on the remove button on a condition.voidvoidsave()voidsaveAndSendInvitation(DirectClientAuthorization authorization) voidvoidsendInvitation(DirectClientAuthorization authorization) voidsetAuthorization(IEntityClientAuthorization authorization) voidsetChooseType(boolean chooseType) voidsetClientDescriptor(IClientDescriptor clientDescriptor) voidsetFilterType(String type) voidMethod to help with clicks on avatar + gravatarvoidMethods 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 newIEntityClientAuthorizationhas 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 newDirectClientAuthorizationto 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 newIndirectClientAuthorizationto 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
IndirectClientAuthorizationorDirectClientAuthorization
-
getUserIdentities
-
getRolesList
Method to return list of allRolleof a selectedIEntityClientAuthorization- Returns:
- null if none found or client is system
-
getUserGroupsList
Method to return list of allBenutzerGruppeof 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:
getAllVariablesin classABooleanExpressionBean
-