Class ProjectServiceImpl

    • Constructor Detail

      • ProjectServiceImpl

        public ProjectServiceImpl()
    • Method Detail

      • create

        public Project create​(Project project)
        Description copied from interface: ProjectService
        Creates a new Project
        Specified by:
        create in interface ProjectService
        Parameters:
        project - the project to create
        Returns:
        the new Project including it's id
      • create

        public Project create​(String domainId,
                              String name,
                              String description,
                              boolean enabled)
        Description copied from interface: ProjectService
        Creates a new Project
        Specified by:
        create in interface ProjectService
        Parameters:
        domainId - the domain id
        name - the name of the new project
        description - the description of the new project
        enabled - the enabled status of the new project
        Returns:
        the newly created project
      • get

        public Project get​(String projectId)
        Description copied from interface: ProjectService
        get detailed information on a project
        Specified by:
        get in interface ProjectService
        Parameters:
        projectId - the project id
        Returns:
        the project
      • getByName

        public List<? extends Project> getByName​(String projectName)
        Description copied from interface: ProjectService
        get detailed information about projects machting specified name across all domains
        Specified by:
        getByName in interface ProjectService
        Parameters:
        projectName - the project name
        Returns:
        the list of projects matching the name across all domains
      • getByName

        public Project getByName​(String projectName,
                                 String domainId)
        Description copied from interface: ProjectService
        get detailed information about a project specified by project name and domain id
        Specified by:
        getByName in interface ProjectService
        Parameters:
        projectName - the project name
        domainId - the domain id
        Returns:
        the project or null if not found
      • update

        public Project update​(Project project)
        Description copied from interface: ProjectService
        updates an existing project
        Specified by:
        update in interface ProjectService
        Parameters:
        project - the project set to update
        Returns:
        the updated project
      • list

        public List<? extends Project> list()
        Description copied from interface: ProjectService
        list all projects the current token has access to
        Specified by:
        list in interface ProjectService
        Returns:
        list of projects