head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


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

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

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

1.2
date	2001.05.04.21.46.39;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.02.06.25.16;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Rearranged attribute constants and added generic host attribute-editing interface to AdminUtils.
@
text
@INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'requestable', 
        'Allow users to request this role?',
        'Y'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='boolean';
	
INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'denotesOwnership',
        'Should someone with this role be considered an "owner"?',
        'N'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='boolean';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'grantOnProjectCreation', 
        'Grant this role to someone who creates a new project?',
        'N'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME="boolean";

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID, 
        'Role',
        'blockRecursionIntoPrivateProjects',
        'Prevent users with this role in a project from having the same role in its private subprojects?',
        'N'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='boolean';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID,
        'Host',
        'maxUploadSize',
        'Maxiumum File Upload Size (MB)',
        '25'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='integer';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID,
        'Host',
        'fractionalUserCacheSize',
        'Size of User Cache (As fraction of number of users)',
        '.3'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='float';

INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
 SELECT ATTRIBUTE_TYPE_ID,
        'Host',
        'fractionalProjectCacheSize',
        'Size of Project Cache (As fraction of number of projects)',
        '.3'
 FROM HELM_ATTRIBUTE_TYPE WHERE NAME='float';
@


1.4
log
@Added code to handle the default fractional size of TableTrackingBufferCaches as host attributes.
@
text
@d1 1
a1 2
INSERT INTO HELM_ATTRIBUTE (TYPE_ID, ENTITY_TYPE, NAME, DESCRIPTION,
                            DEFAULT_VALUE)
d41 2
a42 2
        'Maxiumum File Upload Size',
        '26214400'
d50 1
a50 1
        'Fraction of users to cache',
d59 1
a59 1
        'Fraction of projects to cache',
@


1.3
log
@A Heartbreaking Patch of Staggering Genius: adds capacity (but no interface) for deeply nested projects, categories, and project groups. As a side effect, gets rid of the hacky special 'all public projects in domain' group. There are probably bugs in this, and some of those bugs are probably security holes, so watch out.
@
text
@d45 18
@


1.2
log
@* Correctly employed ENTITY_TYPE field for role attribute population.

* Added host attribute population (currently only for maximum file
upload size).
@
text
@d30 9
@


1.1
log
@Role-specific table refactored to be more general purpose.
@
text
@d1 2
a2 1
INSERT INTO HELM_ATTRIBUTE (TYPE_ID, NAME, DESCRIPTION, DEFAULT_VALUE)
d4 1
d10 2
a11 1
INSERT INTO HELM_ATTRIBUTE (TYPE_ID, NAME, DESCRIPTION, DEFAULT_VALUE)
d13 1
d19 2
a20 1
INSERT INTO HELM_ATTRIBUTE (TYPE_ID, NAME, DESCRIPTION, DEFAULT_VALUE)
d22 1
d27 9
@

