Class ClientAuthorizationBean

    • Constructor Detail

      • ClientAuthorizationBean

        public ClientAuthorizationBean()
    • Method Detail

      • updateModel

        public void updateModel()
      • 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

        public boolean isShowBackendAccessWithoutFilterWarning​(IEntityClientAuthorization authorization)
      • isShowTestUserRedirectClientButton

        public boolean isShowTestUserRedirectClientButton()
      • isShowTestUserInputClientButton

        public boolean isShowTestUserInputClientButton()
      • getNoBackendAccessMessage

        public String getNoBackendAccessMessage()
      • isChooseType

        public boolean isChooseType()
      • setChooseType

        public void setChooseType​(boolean chooseType)
      • isShowResetLoginsBtn

        public boolean isShowResetLoginsBtn()
      • isLoginLocked

        public boolean isLoginLocked()
      • getAuthenticatorOptions

        public List<javax.faces.model.SelectItem> getAuthenticatorOptions()
      • isUserDiscoveryEnabled

        public boolean isUserDiscoveryEnabled()
      • resetLoginAttemptsForSelected

        public void resetLoginAttemptsForSelected()
      • createNewAuthorization

        public void createNewAuthorization()
        Since the exact implementation of a new IEntityClientAuthorization 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 new DirectClientAuthorization 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 new IndirectClientAuthorization to this model here
      • deleteAuthorization

        public void deleteAuthorization​(IEntityClientAuthorization authorization)
        Method to call model.deleteEntity, since else there is a ELResolverException (maybe because of interface parameter)
        Parameters:
        authorization - to be deleted
      • getInitials

        public String getInitials​(IEntityClientAuthorization authorization)
        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 selected IEntityClientAuthorization
        Returns:
        a String consisting of one to two letters or ? if display name is empty
      • getUserGroupsList

        public List<BenutzerGruppe> getUserGroupsList()
        Method to return list of all BenutzerGruppe of the current client.
        Returns:
        null if none found or client is system
      • getFilterType

        public String getFilterType​(IEntityClientAuthorization auth)
        Finds the selected filter type of the given authorizer. Attempts to read the type from the IndirectClientAuthorization.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

        public String getFilterType()
        Finds the selected filter type of the current authorizer. Attempts to read the type from the IndirectClientAuthorization.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

        public void setFilterType​(String type)
      • getFilterTypeOptions

        public List<EAuthorizationFilterType> getFilterTypeOptions()
        Finds all valid filter type options for the currently selected authorizer.
        Returns:
        All valid filter types allowed for the given authorizer.
      • getFilterTypeOptions

        public List<EAuthorizationFilterType> getFilterTypeOptions​(IEntityClientAuthorization auth)
        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.
      • setClientDescriptor

        public void setClientDescriptor​(IClientDescriptor clientDescriptor)
      • save

        public void save()
      • setMarkedAndSelected

        public void setMarkedAndSelected​(IEntityClientAuthorization entity)
        Method to help with clicks on avatar + gravatar
        Parameters:
        entity - the selected/marked entity
      • 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()
      • getDisplayName

        public String getDisplayName​(Object value)
      • getFoundUserProfile

        public UserProfile getFoundUserProfile()
      • isHasFilterExtensions

        public boolean isHasFilterExtensions()
      • getAttributeDisplayName

        public String getAttributeDisplayName​(Object attribute)
      • getAttributeDescription

        public String getAttributeDescription​(Object attribute)