head	1.20;
access;
symbols
	TIGRIS_1_1_0RC2:1.16
	TIGRIS_1_1_0RC1:1.16
	TIGRIS_1_1:1.16.0.4
	TIGRIS_1_0_8:1.16
	TIGRIS_1_0_8RC3:1.16
	TIGRIS_1_0_8RC2:1.16
	TIGRIS_1_0_8RC1:1.16
	TIGRIS_1_0_7:1.16
	TIGRIS_1_0_7RC3:1.16
	TIGRIS_1_0_7RC2:1.16
	TIGRIS_1_0_7RC1:1.16
	TIGRIS_1_0_6:1.16
	TIGRIS_1_0_6RC5:1.16
	TIGRIS_1_0_6RC4:1.16
	TIGRIS_1_0_6RC3:1.16
	TIGRIS_1_0_6RC2:1.16
	TIGRIS_1_0_6RC1:1.16
	TIGRIS_1_0_5:1.16
	TIGRIS_1_0_5RC6:1.16
	TIGRIS_1_0_5RC5:1.16
	TIGRIS_1_0_5RC4:1.16
	TIGRIS_1_0_5RC3:1.16
	TIGRIS_1_0_5RC2:1.16
	TIGRIS_1_0_5RC1:1.16
	TIGRIS_1_0_4:1.16
	TIGRIS_1_0_3:1.16
	TIGRIS_1_0_2:1.16
	TIGRIS_1_0_1:1.16
	TIGRIS_1_0:1.16.0.6
	TIGRIS_1_0_0:1.16
	TIGRIS_1_0_0_RC1:1.16.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.11
	TIGRIS_0_9_2_3:1.11
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.11
	TIGRIS_0_9_2_1:1.11
	TIGRIS_0_9_2:1.11.0.2
	TIGRIS_0_9_0:1.10.0.4
	TIGRIS_0_8_4:1.10.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.20
date	2001.07.02.18.56.43;	author leonardr;	state Exp;
branches;
next	1.19;

1.19
date	2001.05.01.21.47.22;	author leonardr;	state Exp;
branches;
next	1.18;

1.18
date	2001.04.09.17.45.08;	author leonardr;	state Exp;
branches;
next	1.17;

1.17
date	2001.04.09.17.32.03;	author leonardr;	state Exp;
branches;
next	1.16;

1.16
date	2001.03.15.01.38.40;	author leonardr;	state Exp;
branches;
next	1.15;

1.15
date	2001.03.02.23.31.20;	author leonardr;	state Exp;
branches;
next	1.14;

1.14
date	2001.02.22.01.03.06;	author elicia;	state Exp;
branches;
next	1.13;

1.13
date	2001.02.21.01.08.28;	author dlr;	state Exp;
branches;
next	1.12;

1.12
date	2001.02.08.20.37.35;	author leonardr;	state Exp;
branches;
next	1.11;

1.11
date	2001.01.18.18.06.43;	author jrobbins;	state Exp;
branches
	1.11.4.1;
next	1.10;

1.10
date	2000.11.22.22.08.23;	author leonardr;	state Exp;
branches;
next	1.9;

1.9
date	2000.11.22.22.05.16;	author leonardr;	state Exp;
branches;
next	1.8;

1.8
date	2000.11.22.22.01.19;	author leonardr;	state Exp;
branches;
next	1.7;

1.7
date	2000.11.22.02.05.29;	author edk;	state Exp;
branches;
next	1.6;

1.6
date	2000.11.17.20.40.50;	author leonardr;	state Exp;
branches;
next	1.5;

1.5
date	2000.11.16.16.59.39;	author leonardr;	state Exp;
branches;
next	1.4;

1.4
date	2000.11.15.21.26.03;	author leonardr;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.14.23.07.37;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.13.18.30.56;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.17.54;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.17.54;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.30;	author dlr;	state Exp;
branches;
next	;

1.11.4.1
date	2001.01.31.17.47.04;	author leonardr;	state Exp;
branches;
next	1.11.4.2;

1.11.4.2
date	2001.02.16.21.18.18;	author leonardr;	state Exp;
branches;
next	1.11.4.3;

1.11.4.3
date	2001.02.20.04.44.47;	author dlr;	state Exp;
branches;
next	1.11.4.4;

1.11.4.4
date	2001.02.20.12.27.13;	author edk;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Implemented project-scoped roles.
@
text
@
drop table if exists xxxx_POPULATE_ROLE;
create table xxxx_POPULATE_ROLE
(
    PROJECT_TYPE VARCHAR(10) NOT NULL,
    ROLE_NAME VARCHAR (99) NOT NULL,
    ROLE_TYPE VARCHAR (7) NOT NULL,
    ROLE_DESCRIPTION MEDIUMTEXT
);

INSERT INTO xxxx_POPULATE_ROLE 
 (PROJECT_TYPE, ROLE_NAME, ROLE_TYPE, ROLE_DESCRIPTION)
values
           ("domain", "Registered User", "Domain", 
            "Registered user on the site")
         , ("domain", "Anonymous Guest", "Domain", 
            "Vistors who have not logged in")
         , ("domain", "Click-through Viewer", "Domain", 
            "Has seen click-through page")
         , ("domain", "Content Viewer", "Project", 
            "View project web pages only.")
         , ("domain", "Observer", "Project", 
            "Read-only access to project code; can also submit issues")
         , ("domain", "Content Developer", "Project", 
            "Read/Write access to project web content")
         , ("domain", "Developer", "Project", 
            "Read/Write access to all of project")
         , ("domain", "Project Owner", "Project", 
            "Can reconfigure project and control membership")
         , ("domain", "Domain Admin", "Domain", 
            "Can reconfigure all projects and users on the site")
         , ("host", "Host Admin", "Host", 
            "Can configure any project or user in any domain")
;

insert into HELM_ROLE (PROJECT_ID, NAME, TYPE, DESCRIPTION)
 select PROJECT_ID, ROLE_NAME, ROLE_TYPE, ROLE_DESCRIPTION 
  from HELM_PROJECT, xxxx_POPULATE_ROLE
  where HELM_PROJECT.TYPE=xxxx_POPULATE_ROLE.PROJECT_TYPE;

drop table xxxx_POPULATE_ROLE;@


1.19
log
@Big architecture and schema change: booleans in the HELM_ROLE table have been replaced by entries in the HELM_ROLE_ATTRIBUTE_VALUE table. Also, a new attribute has been added which controls which roles a user gets upon creation of a project.
@
text
@d2 21
a22 7
INSERT INTO HELM_ROLE (NAME, TYPE, DESCRIPTION)
       values 
           ("Registered User", "Domain", "Registered user on the site")
         , ("Anonymous Guest", "Domain", "Vistors who have not logged in")
         , ("Click-through Viewer", "Domain", "Has seen click-through page")
         , ("Content Viewer", "Project", "View project web pages only.")
         , ("Observer", "Project", 
d24 1
a24 1
         , ("Content Developer", "Project", 
d26 1
a26 1
         , ("Developer", "Project", 
d28 1
a28 1
         , ("Project Owner", "Project", 
d30 1
a30 1
         , ("Domain Admin", "Domain", 
d32 1
a32 1
         , ("Host Admin", "Host", 
d35 7
@


1.18
log
@Corrected grammar.
@
text
@d2 1
a2 1
INSERT INTO HELM_ROLE (NAME, TYPE, DESCRIPTION, DENOTES_OWNER, REQUESTABLE)
d4 16
a19 16
              ("Registered User", "Domain", "Registered user on the site", 
	       'N', 'N')
            , ("Anonymous Guest", "Domain", "Vistors who have not logged in", 
	       'N', 'N')
            , ("Click-through Viewer", "Domain", "Has seen click-through page",
	       'N', 'N')
            , ("Content Viewer", "Project", "View project web pages only.",
	       'N', 'N')
            , ("Observer", "Project", "Read-only access to project code; can also submit issues",
	       'N', 'Y')
            , ("Content Developer", "Project", "Read/Write access to project web content", 
	       'N', 'Y')
            , ("Developer", "Project", "Read/Write access to all of project", 'Y', 'Y')
            , ("Project Owner", "Project", "Can reconfigure project and control membership", 'Y', 'Y')
            , ("Domain Admin", "Domain", "Can reconfigure all projects and users on the site", 'Y', 'N')
            , ("Host Admin", "Host", "Can configure any project or user in any domain", 'Y', 'N')
@


1.17
log
@Corrected typo.
@
text
@d18 1
a18 1
            , ("Domain Admin", "Domain", "Can reconfigure all projects and users in the site", 'Y', 'N')
@


1.16
log
@Corrected which roles are ownership roles.
@
text
@d18 1
a18 1
            , ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site", 'Y', 'N')
@


1.15
log
@Content viewer role is not requstable.
@
text
@d13 1
a13 1
	       'Y', 'Y')
d15 1
a15 1
	       'Y', 'Y')
d18 2
a19 2
            , ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site", 'N', 'N')
            , ("Host Admin", "Host", "Can configure any project or user in any domain", 'N', 'N')
@


1.14
log
@most of the values for the requestable field were incorrect
@
text
@d11 1
a11 1
	       'N', 'Y')
@


1.13
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d11 1
a11 1
	       'N', 'N')
d13 1
a13 1
	       'Y', 'N')
d15 2
a16 2
	       'Y', 'N')
            , ("Developer", "Project", "Read/Write access to all of project", 'Y', 'N')
d18 2
a19 2
            , ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site", 'N', 'Y')
            , ("Host Admin", "Host", "Can configure any project or user in any domain", 'N', 'Y')
@


1.12
log
@Added a new field to the Role table: ownership. This designates whether someone who has the role in the project/domain/host is the sort of person who gets emails when something happens that affects the project/domain/host.
@
text
@d2 1
a2 1
INSERT INTO Role (name, type, description, requestable, ownership)
@


1.11
log
@refined guest login support
@
text
@d2 1
a2 1
INSERT INTO Role (name, type, description, requestable)
d4 16
a19 10
              ("Registered User", "Domain", "Registered user on the site", 'N')
            , ("Anonymous Guest", "Domain", "Vistors who have not logged in", 'N')
            , ("Click-through Viewer", "Domain", "Has seen click-through page", 'N')
            , ("Content Viewer", "Project", "View project web pages only.", 'N')
            , ("Observer", "Project", "Read-only access to project code; can also submit issues", 'Y')
            , ("Content Developer", "Project", "Read/Write access to project web content", 'Y')
            , ("Developer", "Project", "Read/Write access to all of project", 'Y')
            , ("Project Owner", "Project", "Can reconfigure project and control membership", 'Y')
            , ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site", 'N')
            , ("Host Admin", "Host", "Can configure any project or user in any domain", 'N')
@


1.11.4.1
log
@correctly capitalized autoIncrement
@
text
@d2 1
a2 1
INSERT INTO HELM_ROLE (NAME, TYPE, DESCRIPTION, REQUESTABLE)
@


1.11.4.2
log
@Populate ownership roles correctly.
@
text
@d2 12
a13 11
INSERT INTO HELM_ROLE (NAME, TYPE, DESCRIPTION, DENOTES_OWNER, REQUESTABLE) values 
  ("Registered User", "Domain", "Registered user on the site", 'N', 'N')
, ("Anonymous Guest", "Domain", "Vistors who have not logged in", 'N', 'N')
, ("Click-through Viewer", "Domain", "Has seen click-through page", 'N', 'N')
, ("Content Viewer", "Project", "View project web pages only.", 'N', 'N')
, ("Observer", "Project", "Read-only access to project code; can also submit issues", 'N', 'Y')
, ("Content Developer", "Project", "Read/Write access to project web content", 'N', 'Y')
, ("Developer", "Project", "Read/Write access to all of project", 'N', 'Y')
, ("Project Owner", "Project", "Can reconfigure project and control membership", 'Y', 'Y')
, ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site", 'Y', 'N')
, ("Host Admin", "Host", "Can configure any project or user in any domain", 'Y', 'N')
@


1.11.4.3
log
@Merging in changes from the HEAD.
@
text
@d3 10
a12 17
       values 
              ("Registered User", "Domain", "Registered user on the site", 
	       'N', 'N')
            , ("Anonymous Guest", "Domain", "Vistors who have not logged in", 
	       'N', 'N')
            , ("Click-through Viewer", "Domain", "Has seen click-through page",
	       'N', 'N')
            , ("Content Viewer", "Project", "View project web pages only.",
	       'N', 'N')
            , ("Observer", "Project", "Read-only access to project code; can also submit issues",
	       'Y', 'N')
            , ("Content Developer", "Project", "Read/Write access to project web content", 
	       'Y', 'N')
            , ("Developer", "Project", "Read/Write access to all of project", 'Y', 'N')
            , ("Project Owner", "Project", "Can reconfigure project and control membership", 'Y', 'Y')
            , ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site", 'N', 'Y')
            , ("Host Admin", "Host", "Can configure any project or user in any domain", 'N', 'Y')
@


1.11.4.4
log
@fix a syntax error ("values values")
@
text
@d2 1
a2 1
INSERT INTO HELM_ROLE (NAME, TYPE, DESCRIPTION, DENOTES_OWNER, REQUESTABLE)
@


1.10
log
@Clarified description a little.
@
text
@d5 1
@


1.9
log
@Changed description of Observer to take into account its issue tracking permission.
@
text
@d7 1
a7 1
            , ("Observer", "Project", "Read-only access to project; can also submit issues", 'Y')
@


1.8
log
@Create roles in rough totem pole order.
@
text
@d7 1
a7 1
            , ("Observer", "Project", "Read-only access to project", 'Y')
@


1.7
log
@* remove potential developer role so that people can't make role requests
  for private projects unless they have invitations.
* added a timestamp field and an index to INVITATION
@
text
@d8 1
a9 1
            , ("Content Developer", "Project", "Read/Write access to project web content", 'Y')
@


1.6
log
@Added requestable field to Role. Created a new role with role request permission, and granted it to everybody across all projects (even proprietary ones)
@
text
@a6 1
            , ("Potential Developer", "Project", "Can request role in project.", 'N')
@


1.5
log
@Give everyone Content Viewer role in the www project so they can view domain web pages.
@
text
@d2 1
a2 1
INSERT INTO Role (name, type, description)
d4 10
a13 9
              ("Registered User", "Domain", "Registered user on the site")
            , ("Click-through Viewer", "Domain", "Has seen click-through page")
            , ("Content Viewer", "Project", "View project web pages only.")
            , ("Observer", "Project", "Read-only access to projects")
            , ("Developer", "Project", "Read/Write access to all of project")
            , ("Content Developer", "Project", "Read/Write access to project web content")
            , ("Project Owner", "Project", "Can reconfigure project and control membership")
            , ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site")
            , ("Host Admin", "Host", "Can configure any project or user in any domain")
@


1.4
log
@Got rid of unused roles.
@
text
@d6 1
@


1.3
log
@Added hack to support viewing click-through pages when lacking a role.
@
text
@a8 2
#            , ("Module Owner", "Project", "Can reconfigure parts of the project")
#            , ("Group Owner", "Can control who is in the user group that they own")
@


1.2
log
@Got rid of Code Developer role
@
text
@d5 1
@


1.1
log
@Initial revision
@
text
@a7 1
            , ("Code Developer", "Project", "Read/Write access to all of project source")
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d2 1
a2 1
INSERT INTO HELM_ROLE (NAME, TYPE, DESCRIPTION, DENOTES_OWNER, REQUESTABLE)
d4 10
a13 16
              ("Registered User", "Domain", "Registered user on the site", 
	       'N', 'N')
            , ("Anonymous Guest", "Domain", "Vistors who have not logged in", 
	       'N', 'N')
            , ("Click-through Viewer", "Domain", "Has seen click-through page",
	       'N', 'N')
            , ("Content Viewer", "Project", "View project web pages only.",
	       'N', 'N')
            , ("Observer", "Project", "Read-only access to project code; can also submit issues",
	       'Y', 'N')
            , ("Content Developer", "Project", "Read/Write access to project web content", 
	       'Y', 'N')
            , ("Developer", "Project", "Read/Write access to all of project", 'Y', 'N')
            , ("Project Owner", "Project", "Can reconfigure project and control membership", 'Y', 'Y')
            , ("Domain Admin", "Domain", "Can reconfigure all projects and uses in the site", 'N', 'Y')
            , ("Host Admin", "Host", "Can configure any project or user in any domain", 'N', 'Y')
@

