Class UserPortalDao

    • Constructor Detail

      • UserPortalDao

        public UserPortalDao()
    • Method Detail

      • getAllByClient

        public List<UserPortal> getAllByClient​(IEntityContext ec,
                                               Mandant client)
        Description copied from interface: IUserPortalDao
        Returns all user portal entities available for the given client.
        Specified by:
        getAllByClient in interface IUserPortalDao
        Parameters:
        ec - entity context for database transactions.
        client - to get the user portals for.
        Returns:
        all user portal entities available for the given client.
      • getForMasterServer

        public PagedResult<UserPortal> getForMasterServer​(IEntityContext ec,
                                                          int page,
                                                          int pageSize)
        Description copied from interface: IUserPortalDao
        Returns all user portal entities available on the master server.
        Specified by:
        getForMasterServer in interface IUserPortalDao
        Parameters:
        ec - entity context for database transactions.
        page - to get.
        pageSize - size of the page to get. Defines the size of the returned sub list.
        Returns:
        all user portal entities available on the master server.
      • getByUuid

        public UserPortal getByUuid​(IEntityContext ec,
                                    UUID uuid)
        Description copied from interface: IUserPortalDao
        Returns the user portal entity with the given UUID.
        Specified by:
        getByUuid in interface IUserPortalDao
        Parameters:
        ec - Entity context for database transactions.
        uuid - UUID of the user portal to get.
        Returns:
        The user portal entity with the given UUID, or null if no such entity exists.
      • getForFrontendServer

        public PagedResult<UserPortal> getForFrontendServer​(IEntityContext ec,
                                                            FrontendServer frontendServer,
                                                            int page,
                                                            int pageSize)
        Description copied from interface: IUserPortalDao
        Returns all user portal entities available on the given frontend server.
        Specified by:
        getForFrontendServer in interface IUserPortalDao
        Parameters:
        ec - entity context for database transactions.
        frontendServer - to get the user portals for.
        page - to get.
        pageSize - size of the page to get. Defines the size of the returned sub list.
        Returns:
        all user portal entities available on the given frontend server.
      • assertUserPortal

        public void assertUserPortal​(IEntityContext ec,
                                     UserPortal portal)
        Description copied from interface: IUserPortalDao
        Checks if the user portal can be persisted (create/update). If the state of the user portal does not allow persisting than a DatabaseAccessException will be thrown.
        Specified by:
        assertUserPortal in interface IUserPortalDao
        Parameters:
        ec - Entity context for accessing the database.
        portal - A portal to check.