Interface IUserPortalContentDao

    • Method Detail

      • assertUserPortalContent

        void assertUserPortalContent​(IEntityContext ec,
                                     UserPortalContent config)
        Checks if the project portal config can be persisted (create/update). If the state of the project portal config does not allow persisting than a DatabaseAccessException will be thrown.
        Parameters:
        ec - entity context for accessing the database.
        config - to check.
        Throws:
        de.xima.cmn.dao.exceptions.DatabaseAccessException - if the user identity can't be persisted.
      • getActiveContentByPortal

        UserPortalContent getActiveContentByPortal​(IEntityContext ec,
                                                   UUID userPortalUuid,
                                                   UUID userPortalContentUuid)
        Gets the active user portal content for the given portal and content UUID, if any.
        Parameters:
        ec - entity context for accessing the database.
        userPortalUuid - the user portal UUID to search for.
        userPortalContentUuid - the user portal content uuid to search for.
        Returns:
        the active user portal content for the given portal and content UUID, or null if none exists.
      • getByPortal

        UserPortalContent getByPortal​(IEntityContext ec,
                                      UUID userPortalUuid,
                                      UUID userPortalContentUuid)
        Gets the user portal content for the given portal and content UUID, if any. This method does not check if the content is active.
        Parameters:
        ec - entity context for accessing the database.
        userPortalUuid - the user portal UUID to search for.
        userPortalContentUuid - the user portal content uuid to search for.
        Returns:
        the user portal content for the given portal and content UUID, or null if none exists.