portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/containers security.container.groovy
Date Thu, 11 Mar 2004 03:30:14 GMT
dlestrat    2004/03/10 19:30:14

  Modified:    components/security/src/java/org/apache/jetspeed/security/containers
                        security.container.groovy
  Log:
  
  
  Revision  Changes    Path
  1.2       +2 -7      jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/containers/security.container.groovy
  
  Index: security.container.groovy
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/containers/security.container.groovy,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- security.container.groovy	10 Mar 2004 06:08:05 -0000	1.1
  +++ security.container.groovy	11 Mar 2004 03:30:14 -0000	1.2
  @@ -29,9 +29,6 @@
    * and use it as the container for the Security.
    */
   
  -// Prior to this, you will need to have an Implementation
  -// of org.apache.jetspeed.components.persistence.store.PersistenceStoreContainer
  -// registered.
   if(parent != null)
   {
   	container = new DefaultPicoContainer(parent)
  @@ -40,8 +37,7 @@
   	parent.registerComponentImplementation(RoleManager, RoleManagerImpl, new Parameter[] {new
ComponentParameter(PersistenceStoreContainer), new ConstantParameter("jetspeed")} )
   	parent.registerComponentImplementation(PermissionManager, PermissionManagerImpl, new Parameter[]
{new ComponentParameter(PersistenceStoreContainer), new ConstantParameter("jetspeed")} )
   	parent.registerComponentImplementation(RdbmsPolicy, RdbmsPolicy)
  -	ComponentAdapter ca = new ConstructorComponentAdapter(SecurityProvider, SecurityProviderImpl,
new Parameter[] {new ConstantParameter("login.conf"), new ComponentParameter(RdbmsPolicy),
new ComponentParameter(UserManager)})
  -	parent.registerComponent(ca)
  +	parent.registerComponentImplementation(SecurityProvider, SecurityProviderImpl, new Parameter[]
{new ConstantParameter("login.conf"), new ComponentParameter(RdbmsPolicy), new ComponentParameter(UserManager)})
   }
   else
   {
  @@ -50,8 +46,7 @@
   	container.registerComponentImplementation(GroupManager, GroupManagerImpl, new Parameter[]
{new ComponentParameter(PersistenceStoreContainer), new ConstantParameter("jetspeed")} )
   	container.registerComponentImplementation(RoleManager, RoleManagerImpl, new Parameter[]
{new ComponentParameter(PersistenceStoreContainer), new ConstantParameter("jetspeed")} )
   	container.registerComponentImplementation(PermissionManager, PermissionManagerImpl, new
Parameter[] {new ComponentParameter(PersistenceStoreContainer), new ConstantParameter("jetspeed")}
)
  -	ComponentAdapter ca = new ConstructorComponentAdapter(SecurityProvider, SecurityProviderImpl,
new Parameter[] {new ConstantParameter("login.conf"), new ComponentParameter(RdbmsPolicy),
new ComponentParameter(UserManager)})
  -	container.registerComponent(ca)
  +	container.registerComponentImplementation(SecurityProvider, SecurityProviderImpl, new
Parameter[] {new ConstantParameter("login.conf"), new ComponentParameter(RdbmsPolicy), new
ComponentParameter(UserManager)})
   }	
   	
   // This will be an empty container if "parent" was not null
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message