Interface IProjektHandler

    • Method Detail

      • isEditingAllowed

        @Deprecated
        Boolean isEditingAllowed​(UserContext uc,
                                 Projekt projekt,
                                 Benutzer ben)
        Deprecated.
        Parameters:
        uc - Current user context.
        projekt - Project for which to check if the user may edit it.
        ben - User to check.
        Returns:
        Whether the user groups of the user allow editing the given form (project). Note that there may be other restrictions from the user's role etc that apply.
        Since:
        8.0.0
      • addProjektRessource

        Projekt addProjektRessource​(UserContext uc,
                                    long projektId,
                                    long ressourceId)
      • getInitializedById

        Projekt getInitializedById​(UserContext uc,
                                   Long projectId)
        Reads the project by the given ID and initializes it.
        Parameters:
        uc - UserContext to use for DB transaction
        projectId - ID of the project
        Returns:
        the initialized project
      • getByUUID

        Projekt getByUUID​(UserContext uc,
                          Mandant client,
                          String uuid)
        Gets a project by its UUID. The project must owned by the given client.
        Parameters:
        uc - User context of the user who wishes to get the project.
        client - The client who owns the project.
        uuid - UUID of the project.
        Returns:
        The project or null if it does not exist.
      • getByUUID

        Projekt getByUUID​(UserContext uc,
                          Mandant client,
                          UUID uuid)
        Gets a project by its UUID. The project must owned by the given client.
        Parameters:
        uc - User context of the user who wishes to get the project.
        client - The client who owns the project.
        uuid - UUID of the project.
        Returns:
        The project or null if it does not exist.
      • getByUUID

        Projekt getByUUID​(UserContext uc,
                          UUID clientUuid,
                          UUID uuid)
        Gets a project by its UUID. The project must owned by the given client.
        Parameters:
        uc - User context of the user who wishes to get the project.
        clientUuid - UUID of the client.
        uuid - UUID of the project.
        Returns:
        The project or null if it does not exist.
        Since:
        8.3.0
      • getAllByUserPortal

        PagedResult<Projekt> getAllByUserPortal​(UserContext uc,
                                                UserPortal portal,
                                                int page,
                                                int pageSize)
        Returns all projects enabled for the given user portal. Sorted by the name of a project.
        Parameters:
        uc - user context for database transactions.
        portal - to get the projects for.
        page - to get.
        pageSize - size of the page to get.
        Returns:
        all projects enabled for the given user portal.
        Since:
        8.2.0