head	1.8;
access;
symbols
	TIGRIS_1_1_0RC2:1.7
	TIGRIS_1_1_0RC1:1.7
	TIGRIS_1_1:1.7.0.4
	TIGRIS_1_0_8:1.7
	TIGRIS_1_0_8RC3:1.7
	TIGRIS_1_0_8RC2:1.7
	TIGRIS_1_0_8RC1:1.7
	TIGRIS_1_0_7:1.7
	TIGRIS_1_0_7RC3:1.7
	TIGRIS_1_0_7RC2:1.7
	TIGRIS_1_0_7RC1:1.7
	TIGRIS_1_0_6:1.7
	TIGRIS_1_0_6RC5:1.7
	TIGRIS_1_0_6RC4:1.7
	TIGRIS_1_0_6RC3:1.7
	TIGRIS_1_0_6RC2:1.7
	TIGRIS_1_0_6RC1:1.7
	TIGRIS_1_0_5:1.7
	TIGRIS_1_0_5RC6:1.7
	TIGRIS_1_0_5RC5:1.7
	TIGRIS_1_0_5RC4:1.7
	TIGRIS_1_0_5RC3:1.7
	TIGRIS_1_0_5RC2:1.7
	TIGRIS_1_0_5RC1:1.7
	TIGRIS_1_0_4:1.7
	TIGRIS_1_0_3:1.7
	TIGRIS_1_0_2:1.7
	TIGRIS_1_0_1:1.7
	TIGRIS_1_0:1.7.0.6
	TIGRIS_1_0_0:1.7
	TIGRIS_1_0_0_RC1:1.7.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.3
	TIGRIS_0_9_2_3:1.3
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.3
	TIGRIS_0_9_2_1:1.3
	TIGRIS_0_9_2:1.3.0.2
	TIGRIS_0_9_0:1.2.0.2;
locks; strict;
comment	@# @;


1.8
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.7;

1.7
date	2001.03.24.10.33.45;	author jrobbins;	state Exp;
branches;
next	1.6;

1.6
date	2001.03.22.20.40.38;	author caitlyn;	state Exp;
branches;
next	1.5;

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

1.4
date	2001.02.21.01.08.32;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2001.01.06.03.27.04;	author jody;	state Exp;
branches
	1.3.4.1;
next	1.2;

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

1.1
date	2000.12.07.02.21.33;	author leonardr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.02.21.00.37.00;	author dlr;	state Exp;
branches;
next	;

1.3.4.1
date	2001.02.01.18.01.27;	author leonardr;	state Exp;
branches;
next	1.3.4.2;

1.3.4.2
date	2001.02.12.18.08.40;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Removed WM templates in favor of Velocity templates.
@
text
@#set $userACL = $currentUser.getACL()
#set $projects = $userACL.getProjectsWithAnyRole()
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2">  
  <TR>  
    <TD class="Header">Permissions for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a>:</TD>
  </TR>  
</TABLE> 

##The table of host permissions
<TABLE BORDER="0" CELLSPACING="0" cellpadding="2">
  <TR>
    <TD colspan="2" class="SmallHeader">Host Permissions:</TD>
  </TR>
  <TR>
    <TD colspan="2" class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
  </TR>
#foreach $action in $host.getHostActions()
{
  <TR>
    <TD class="PlainText" width="150">$action.getName()</TD>
    <TD class="PlainText" width="250">
  #set $first=true
  #set $resources = $userACL.getResourcesForActionInProject($action, $currentDomain.getHostProject(), true)
  #foreach $resource in $resources
  {
   #if(!$first)
   {
    <br>
   } #else {
    #set $first=false
   } 
   $resource
  }
  &nbsp;</TD>
  </TR>
  <TR>
   <TD COLSPAN="3">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
     <TR>
      <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
     </TR>
    </TABLE>
   </TD>
  </TR>

}
</TABLE>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">   
  <TR>   
    <TD><p><hr size="1" noshade><p></TD>  
  </TR>   
</TABLE>

##The table of domain permissions
<TABLE BORDER="0" CELLSPACING="0" cellpadding="2"> 
  <TR>
    <TD colspan=2 class="SmallHeader">Domain Permissions:</TD>
  </TR>
  <TR valign="top"> 
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">All Projects</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">All Public Projects</TD>
  </TR> 
#foreach $action in $host.getDomainActions()
{
  <TR valign="top"> 
  <TD class="PlainText">$action.getName()</TD>
  <TD></TD>
  <TD class="PlainText">
  #set $first=true
  #set $resources=$userACL.getResourcesForActionInProject($action, $currentDomain.getSpecialProject(), true)

  #foreach $resource in $resources
  {
   #if(!$first)
   {
    <br>
   } #else {
    #set $first=false
   } 
   <span nowrap>$resource</span>
  }
  &nbsp;</TD>

 <TD></TD>
 <TD class="PlainText">
  #set $first=true
  #set $resources=$userACL.getResourcesForActionInProject($action, $currentDomain.getSpecialPublicProject(), true)

  #foreach $resource in $resources
  {
   #if(!$first)
   {
    <br>
   } #else {
    #set $first=false
   } 
   <span nowrap>$resource</span>
   }
  &nbsp;</TD>
  </TR>
  <TR>
   <TD COLSPAN="5">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
     <TR>
      <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
     </TR>
    </TABLE>
   </TD>
  </TR>
}
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">    
  <TR>    
    <TD><p><hr size="1" noshade><p></TD>   
  </TR>    
</TABLE> 
 
##The table of project permissions 
<TABLE BORDER="0" CELLSPACING="0" cellpadding="2" width="100%">  
  <TR>
    <TD colspan=2 class="SmallHeader">Project Permissions:</TD>
  </TR>
</TABLE>
<TABLE BORDER="1" CELLSPACING="0" cellpadding="2" width="100%">  
  <TR valign="top"> 
<TD class="PlainTextBold">&nbsp;</TD>
#foreach $project in $projects  
{ 
    <TD class="PlainText" bgcolor="#efefef" nowrap><b>$project.getName()</b></TD>
}
</TR>

#foreach $action in $host.getProjectActions()
{
 <TR valign="top">
 <TD class="PlainText"  bgcolor="#efefef" nowrap>$action.getName()</TD>
 #foreach $project in $projects
 {
  <TD class="PlainText" nowrap>
  #set $first=true
  #set $resources=$userACL.getResourcesForActionInProject($action, $project, true)
  #foreach $resource in $resources
  {
   #if(!$first)
   {
    <br>
   } #else {
    #set $first=false
   } 
   $resource
  }
  &nbsp;</TD>
  }
 </TR>
}
</TABLE>

@


1.7
log
@made tables look like other tables, added link back to UserEdit
organized line breaks in big project permissions table, looks _so_ much better now
@
text
@@


1.6
log
@cleaned up formatting, took out black and grey table cells. made width 100%



PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d5 1
a5 1
    <TD class="ProjectNameHeader">Permissions for $currentUser.getRealName():</TD>
d12 4
a15 1
    <TD colspan=2 class="PlainTextBold">Host permissions</TD>
d33 1
a33 1
}
d36 10
d50 1
a50 1
    <TD><p><hr><p></TD>  
d56 3
d60 5
a64 3
    <TD class="PlainTextBold"><b>Domain permissions</b></TD> 
    <TD class="PlainTextBold"><b>Projects in domain</b></TD> 
    <TD class="PlainTextBold"><b>Public projects in domain</b></TD> 
d70 1
d83 2
a84 2
   $resource   
}
d87 1
d100 2
a101 2
   $resource   
}
d103 10
a112 2
 
 </TR>
d118 1
a118 1
    <TD><p><hr><p></TD>   
d124 5
d130 1
a130 1
<TD class="PlainTextBold">Project permissions</TD>
d133 1
a133 1
    <TD class="PlainText"><b>$project.getName()</b></TD>
d140 1
a140 1
 <TD class="PlainText">$action.getName()</TD>
d143 1
a143 1
  <TD class=PlainText>
@


1.5
log
@Show two sets of domain permissions; for all projects and for public projects.
@
text
@d3 1
a3 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">  
a5 1
    <TD><p><hr><p></TD> 
d10 1
a10 1
<TABLE BORDER="1" CELLSPACING="1">
d12 1
a12 1
    <TD bgcolor="black" colspan=2 class="StatHeader">Host permissions</TD>
d17 2
a18 2
    <TD BGCOLOR="silver" class="PlainText">$action.getName()</TD>
    <TD class="PlainText"><p align="center">
d42 5
a46 5
<TABLE BORDER="1" CELLSPACING="1"> 
  <TR> 
    <TD bgcolor="black" class="StatHeader">Domain permissions</TD> 
    <TD bgcolor="black" class="StatHeader">Projects in domain</TD> 
    <TD bgcolor="black" class="StatHeader">Public projects in domain</TD> 
d50 3
a52 3
 <TR>
  <TD BGCOLOR="silver" class="PlainText">$action.getName()</TD>
 <TD class="PlainText"><p align="center">
d68 1
a68 1
 <TD class="PlainText"><p align="center">
d87 1
d95 3
a97 3
<TABLE BORDER="1" CELLSPACING="1">  
  <TR>  
    <TD bgcolor="black" class="StatHeader">Project permissions</TD>
d100 1
a100 1
    <TD BGCOLOR="silver" class="PlainText"><b>$project.getName()</g></p></TD>
d106 2
a107 1
 <TR><TD BGCOLOR="silver" class="PlainText">$action.getName()</TD>
d110 1
a110 1
  <TD class=PlainText><p align="center">
@


1.4
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d45 3
a47 1
    <TD bgcolor="black" colspan=2 class="StatHeader">Domain permissions</TD> 
d51 2
a52 1
 <TR><TD BGCOLOR="silver" class="PlainText">$action.getName()</TD>
d68 17
@


1.3
log
@styly/structurey applied.
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d5 1
a5 1
    <TD class="ProjectNameHeader">Permissions for $currentUser.getName():</TD>
d15 1
a15 1
#foreach $action in $currentDomain.getHostActions()
d21 1
a21 1
  #set $resources = $userACL.getResourcesForActionInProject($action.getName(), $currentDomain.getHostProject().getID(), true)
d47 1
a47 1
#foreach $action in $currentDomain.getDomainActions()
d52 1
a52 1
  #set $resources=$userACL.getResourcesForActionInProject($action.getName(), $currentDomain.getSpecialProject().getID(), true)
d77 1
a77 1
    <TD bgcolor="black" colspan=2 class="StatHeader">Project permissions</TD>
d84 1
a84 1
#foreach $action in $currentDomain.getProjectActions()
d91 1
a91 1
  #set $resources=$userACL.getResourcesForActionInProject($action.getName(), $project.getID(), true)
@


1.3.4.1
log
@Ported PermissionDump servlet.
@
text
@d15 1
a15 1
#foreach $action in $host.getHostActions()
d21 1
a21 1
  #set $resources = $userACL.getResourcesForActionInProject($action, $currentDomain.getHostProject(), true)
d47 1
a47 1
#foreach $action in $host.getDomainActions()
d52 1
a52 1
  #set $resources=$userACL.getResourcesForActionInProject($action, $currentDomain.getSpecialProject(), true)
d77 1
a77 1
    <TD bgcolor="black" class="StatHeader">Project permissions</TD>
d84 1
a84 1
#foreach $action in $host.getProjectActions()
d91 1
a91 1
  #set $resources=$userACL.getResourcesForActionInProject($action, $project, true)
@


1.3.4.2
log
@Changed calls to getName to calls to getRealName (Users only)
@
text
@d5 1
a5 1
    <TD class="ProjectNameHeader">Permissions for $currentUser.getRealName():</TD>
@


1.2
log
@Made PermissionDump more modular.
@
text
@d3 7
a9 2
<font size=+2>Permissions for $currentUser.getName():</font>
<p><hr><p>
d11 4
a14 2
<table border=1>
 <tr><td bgcolor="black" colspan=2><font color=white>Host permissions</font></td></tr>
d17 3
a19 2
 <tr><td BGCOLOR="silver">$action.getName()</td>
 <td><p align="center">
d32 2
a33 1
  &nbsp;</td></tr>
d35 7
a41 2
</table>
<p><hr><p>
d43 4
a46 2
<table border=1>
<tr><td bgcolor="black" colspan=2><font color="white">Domain permissions</font></td></tr>
d49 2
a50 2
 <tr><td BGCOLOR="silver">$action.getName()</td>
 <td><p align="center">
d64 2
a65 2
  &nbsp;</td>
 </tr>
d67 14
a80 8
</table>
<p><hr><p>
##The table of project permissions
<table border=1>
<tr><td bgcolor="black"><font color="white">Project permissions</font></td>
#foreach $project in $projects
{
<td BGCOLOR="silver"><p align="center"><b>$project.getName()</g></p></td>
d82 1
a82 1
</tr>
d86 1
a86 1
 <tr><td BGCOLOR="silver">$action.getName()</td>
d89 1
a89 1
  <td><p align="center">
d102 1
a102 1
  &nbsp;</td>
d104 1
a104 1
 </tr>
d106 1
a106 1
</table>
@


1.1
log
@New (and extremely bulky) PermissionDump servlet.
@
text
@d4 33
d38 18
a55 3
<table>

<tr><td></td>
d62 1
a62 1
#foreach $action in $currentDomain.getActions()
d69 2
a70 1
  #foreach $resource in $userACL.getResourcesForActionInProject($action.getName(), $project.getID(), true)
d80 2
a81 2
  </td>
 }
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d3 1
a3 6
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">  
  <TR>  
    <TD class="ProjectNameHeader">Permissions for $currentUser.getRealName():</TD>
    <TD><p><hr><p></TD> 
  </TR>  
</TABLE> 
d5 1
a5 31
##The table of host permissions
<TABLE BORDER="1" CELLSPACING="1">
  <TR>
    <TD bgcolor="black" colspan=2 class="StatHeader">Host permissions</TD>
  </TR>
#foreach $action in $host.getHostActions()
{
  <TR>
    <TD BGCOLOR="silver" class="PlainText">$action.getName()</TD>
    <TD class="PlainText"><p align="center">
  #set $first=true
  #set $resources = $userACL.getResourcesForActionInProject($action, $currentDomain.getHostProject(), true)
  #foreach $resource in $resources
  {
   #if(!$first)
   {
    <br>
   } #else {
    #set $first=false
   } 
   $resource
}
  &nbsp;</TD>
  </TR>
}
</TABLE>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">   
  <TR>   
    <TD><p><hr><p></TD>  
  </TR>   
</TABLE>
d7 2
a8 6
##The table of domain permissions
<TABLE BORDER="1" CELLSPACING="1"> 
  <TR> 
    <TD bgcolor="black" colspan=2 class="StatHeader">Domain permissions</TD> 
  </TR> 
#foreach $action in $host.getDomainActions()
d10 1
a10 14
 <TR><TD BGCOLOR="silver" class="PlainText">$action.getName()</TD>
 <TD class="PlainText"><p align="center">
  #set $first=true
  #set $resources=$userACL.getResourcesForActionInProject($action, $currentDomain.getSpecialProject(), true)

  #foreach $resource in $resources
  {
   #if(!$first)
   {
    <br>
   } #else {
    #set $first=false
   } 
   $resource   
d12 1
a12 19
  &nbsp;</TD>
 </TR>
}
</TABLE>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">    
  <TR>    
    <TD><p><hr><p></TD>   
  </TR>    
</TABLE> 
 
##The table of project permissions 
<TABLE BORDER="1" CELLSPACING="1">  
  <TR>  
    <TD bgcolor="black" class="StatHeader">Project permissions</TD>
#foreach $project in $projects  
{ 
    <TD BGCOLOR="silver" class="PlainText"><b>$project.getName()</g></p></TD>
}
</TR>
d14 1
a14 1
#foreach $action in $host.getProjectActions()
d16 1
a16 1
 <TR><TD BGCOLOR="silver" class="PlainText">$action.getName()</TD>
d19 1
a19 1
  <TD class=PlainText><p align="center">
d21 1
a21 2
  #set $resources=$userACL.getResourcesForActionInProject($action, $project, true)
  #foreach $resource in $resources
d31 3
a33 3
  &nbsp;</TD>
  }
 </TR>
d35 1
a35 1
</TABLE>
@


