Class CNAuthProjectProperty

    • Field Detail

      • CONFIGURE_PROPERTY

        public static final Permission CONFIGURE_PROPERTY
    • Constructor Detail

      • CNAuthProjectProperty

        @DataBoundConstructor
        public CNAuthProjectProperty​(String project,
                                     boolean createRoles,
                                     String storedProjectId,
                                     boolean grantDefaultRoles)
        Constructor
        Parameters:
        project - name of project to tie the auth to
        createRoles - true to create special Jenkins roles
        grantDefaultRoles - true to grant default roles to project members
    • Method Detail

      • getProject

        public String getProject()
        Returns:
        the name of the CollabNet project.
      • getProjectId

        public String getProjectId()
        Returns:
        the id of the TeamForge project.
      • setProjectId

        public void setProjectId​(String projectId)
        Set the project id and reprocure the corresponding project name
        Parameters:
        projectId - project id
      • getCreateRoles

        public boolean getCreateRoles()
        Returns:
        true if creating the roles on the CollabNet server should be attempted.
      • getGrantDefaultRoles

        public boolean getGrantDefaultRoles()
        Returns:
        true if the default roles should be added.
      • getDefaultUserRoles

        public static Collection<String> getDefaultUserRoles()
        Returns:
        the default user roles. Lazily initialized.
      • getDefaultAdminRoles

        public static Collection<String> getDefaultAdminRoles()
        Returns:
        the default admin roles. Lazily initialized.