Class EntityModelImpl

    • Constructor Detail

      • EntityModelImpl

        public EntityModelImpl​(jakarta.servlet.http.HttpServletRequest req,
                               Map map)
    • Method Detail

      • deleteEntities

        public void deleteEntities​(String name,
                                   String protocol,
                                   String realm)
                            throws AMConsoleException
        Deletes the entity specified.
        Specified by:
        deleteEntities in interface EntityModel
        Parameters:
        name - Name of entity descriptor.
        protocol - Protocol to which entity belongs.
        realm - the realm in which the entity resides.
        Throws:
        AMConsoleException - if unable to delete entitiy.
      • getIDFFRoles

        public List getIDFFRoles​(String entity,
                                 String realm)
        Description copied from interface: EntityModel
        Returns List of IDFF roles.
        Specified by:
        getIDFFRoles in interface EntityModel
        Parameters:
        entity - Name of entity descriptor.
        realm - the realm in which the entity resides.
        Returns:
        list of IDFF roles.
      • getSAMLv2Roles

        public List getSAMLv2Roles​(String entity,
                                   String realm)
        Description copied from interface: EntityModel
        Returns List of SAMLv2 roles.
        Specified by:
        getSAMLv2Roles in interface EntityModel
        Parameters:
        entity - Name of entity descriptor.
        realm - the realm in which the entity resides.
        Returns:
        list of SAMLv2 roles.
      • isAffiliate

        public boolean isAffiliate​(String protocol,
                                   String realm,
                                   String name)
                            throws AMConsoleException
        Returns true if entity descriptor is an affiliate.
        Specified by:
        isAffiliate in interface EntityModel
        Parameters:
        protocol - the Protocol to which entity belongs.
        realm - the realm in which the entity resides.
        name - Name of entity descriptor.
        Returns:
        true if entity descriptor is an affiliate.
        Throws:
        AMConsoleException
      • returnEmptySetIfValueIsNull

        protected Set returnEmptySetIfValueIsNull​(boolean b)
      • returnEmptySetIfValueIsNull

        protected Set returnEmptySetIfValueIsNull​(String str)
      • returnEmptySetIfValueIsNull

        protected Set returnEmptySetIfValueIsNull​(Set set)
      • returnEmptySetIfValueIsNull

        protected Set returnEmptySetIfValueIsNull​(List l)
      • returnEmptyListIfValueIsNull

        protected List returnEmptyListIfValueIsNull​(String str)
      • returnEmptyListIfValueIsNull

        protected List returnEmptyListIfValueIsNull​(List list)
      • convertListToSet

        protected OrderedSet convertListToSet​(List list)
      • convertSetToList

        protected List convertSetToList​(Set set)
      • convertSetToListInMap

        protected Map convertSetToListInMap​(Map map)