Author: sohil.shah(a)jboss.com
Date: 2009-07-30 18:10:50 -0400 (Thu, 30 Jul 2009)
New Revision: 13646
Added:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/META-INF/
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/META-INF/authz-config.xml
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/CreatePortal.java
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/OwnerType.java
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/enforcement/
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/provisioning/
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/provisioning/ExoPolicyProvisioner.java
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractIntegrationTest.java
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossPolicyProvisioner.java
Removed:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/CreatePortal.java
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/OwnerType.java
Modified:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/pom.xml
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractSharedPageACL.java
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossCreatePortalACL.java
Log:
just backing up code.....bad tornadoes!!
Modified:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/pom.xml
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/pom.xml 2009-07-30
20:23:52 UTC (rev 13645)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/pom.xml 2009-07-30
22:10:50 UTC (rev 13646)
@@ -190,7 +190,7 @@
</executions>
</plugin>
- <!-- TODO: remove this -->
+ <!-- TODO: remove this -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Added:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/META-INF/authz-config.xml
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/META-INF/authz-config.xml
(rev 0)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/META-INF/authz-config.xml 2009-07-30
22:10:50 UTC (rev 13646)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:bean-deployer:2.0
bean-deployer_2_0.xsd"
+ xmlns="urn:jboss:bean-deployer:2.0">
+ <bean name="/exo/jboss/PolicyProvisioner"
class="org.exoplatform.portal.jboss.security.provisioning.ExoPolicyProvisioner">
+ <property name="policyProvisioner">
+ <inject bean="/agent/LocalPolicyProvisioner"/>
+ </property>
+ </bean>
+</deployment>
\ No newline at end of file
Copied:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/CreatePortal.java
(from rev 13645,
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/CreatePortal.java)
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/CreatePortal.java
(rev 0)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/CreatePortal.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -0,0 +1,46 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+package org.exoplatform.portal.jboss.security.components;
+
+import org.jboss.security.authz.component.Component;
+import org.jboss.security.authz.component.ComponentType;
+import org.jboss.security.authz.component.ComponentCategory;
+
+import org.jboss.security.authz.components.action.Operation;
+
+/**
+ * Read represents a "read" action that can be performed on a Resource
+ *
+ * @author <a href="mailto:sshah@redhat.com">Sohil Shah</a>
+ */
+@Component(
+ name="createPortal",
+ type=ComponentType.TARGET,
+ category=ComponentCategory.ACTION
+)
+public class CreatePortal extends Operation
+{
+ public CreatePortal()
+ {
+ this.name = "createPortal";
+ }
+}
Property changes on:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/CreatePortal.java
___________________________________________________________________
Name: svn:mergeinfo
+
Copied:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/OwnerType.java
(from rev 13645,
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/OwnerType.java)
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/OwnerType.java
(rev 0)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/OwnerType.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -0,0 +1,42 @@
+/**
+ *
+ */
+package org.exoplatform.portal.jboss.security.components;
+
+import org.jboss.security.authz.component.Component;
+import org.jboss.security.authz.component.ComponentCategory;
+import org.jboss.security.authz.component.ComponentType;
+import org.jboss.security.authz.component.SecurityContextData;
+
+/**
+ * This is a custom "Security Component"
+ *
+ * @author soshah
+ *
+ */
+@Component(
+ name="ownerType",
+ type=ComponentType.TARGET,
+ category=ComponentCategory.CUSTOM_SUBJECT_ATTRIBUTE
+)
+public class OwnerType
+{
+ //Indicates the Type of Owner that owns this Portal Object. Examples of usch types are
User Types, Group Types etc
+ @SecurityContextData
+ private String type;
+
+ public OwnerType()
+ {
+
+ }
+
+ public String getType()
+ {
+ return type;
+ }
+
+ public void setType(String type)
+ {
+ this.type = type;
+ }
+}
Property changes on:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/components/OwnerType.java
___________________________________________________________________
Name: svn:mergeinfo
+
Added:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/provisioning/ExoPolicyProvisioner.java
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/provisioning/ExoPolicyProvisioner.java
(rev 0)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/main/java/org/exoplatform/portal/jboss/security/provisioning/ExoPolicyProvisioner.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -0,0 +1,66 @@
+/**
+ *
+ */
+package org.exoplatform.portal.jboss.security.provisioning;
+
+import org.apache.log4j.Logger;
+
+import org.exoplatform.portal.config.model.PortalConfig;
+import org.exoplatform.portal.config.model.PageNavigation;
+import org.exoplatform.portal.config.model.Page;
+
+import org.jboss.security.authz.agent.provisioning.PolicyProvisioner;
+import org.jboss.security.authz.agent.provisioning.ProvisioningException;
+
+/**
+ * @author soshah
+ *
+ */
+public class ExoPolicyProvisioner
+{
+ private static Logger log = Logger.getLogger(ExoPolicyProvisioner.class);
+
+ private PolicyProvisioner policyProvisioner;
+
+ public ExoPolicyProvisioner()
+ {
+
+ }
+
+ public void start()
+ {
+ log.info("----------------------------------------------------------------");
+ log.info("Exo-JBoss Policy Provisioner successfully
started..............."+this.policyProvisioner);
+ log.info("----------------------------------------------------------------");
+ }
+
+ public void stop()
+ {
+
+ }
+
+ public PolicyProvisioner getPolicyProvisioner()
+ {
+ return policyProvisioner;
+ }
+
+ public void setPolicyProvisioner(PolicyProvisioner policyProvisioner)
+ {
+ this.policyProvisioner = policyProvisioner;
+ }
+ //---------------------------------------------------------------------------------------------------------------------------------------------------------------------
+ public void provision(PortalConfig portal) throws ProvisioningException
+ {
+
+ }
+
+ public void provision(PageNavigation nav) throws ProvisioningException
+ {
+
+ }
+
+ public void provision(Page page) throws ProvisioningException
+ {
+
+ }
+}
Deleted:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/CreatePortal.java
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/CreatePortal.java 2009-07-30
20:23:52 UTC (rev 13645)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/CreatePortal.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -1,46 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.exoplatform.portal.config.security.jboss;
-
-import org.jboss.security.authz.component.Component;
-import org.jboss.security.authz.component.ComponentType;
-import org.jboss.security.authz.component.ComponentCategory;
-
-import org.jboss.security.authz.components.action.Operation;
-
-/**
- * Read represents a "read" action that can be performed on a Resource
- *
- * @author <a href="mailto:sshah@redhat.com">Sohil Shah</a>
- */
-@Component(
- name="createPortal",
- type=ComponentType.TARGET,
- category=ComponentCategory.ACTION
-)
-public class CreatePortal extends Operation
-{
- public CreatePortal()
- {
- this.name = "createPortal";
- }
-}
Added:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractIntegrationTest.java
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractIntegrationTest.java
(rev 0)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractIntegrationTest.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -0,0 +1,26 @@
+/**
+ *
+ */
+package org.exoplatform.portal.config.security.jboss;
+
+
+import org.apache.log4j.Logger;
+
+import org.exoplatform.test.BasicTestCase;
+
+import org.jboss.security.authz.bootstrap.ServiceContainer;
+
+
+/**
+ * @author soshah
+ *
+ */
+public class JBossAbstractIntegrationTest extends BasicTestCase
+{
+ private static Logger log = Logger.getLogger(JBossAbstractIntegrationTest.class);
+
+ protected void setUp() throws Exception
+ {
+ ServiceContainer.bootstrap();
+ }
+}
Modified:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractSharedPageACL.java
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractSharedPageACL.java 2009-07-30
20:23:52 UTC (rev 13645)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/JBossAbstractSharedPageACL.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -8,6 +8,7 @@
import org.exoplatform.portal.config.model.PortalConfig;
import org.exoplatform.portal.config.model.Page;
+import org.exoplatform.portal.jboss.security.components.OwnerType;
import org.exoplatform.services.security.MembershipEntry;
import org.jboss.security.authz.agent.enforcement.EnforcementContext;
Deleted:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/OwnerType.java
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/OwnerType.java 2009-07-30
20:23:52 UTC (rev 13645)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/OwnerType.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -1,42 +0,0 @@
-/**
- *
- */
-package org.exoplatform.portal.config.security.jboss;
-
-import org.jboss.security.authz.component.Component;
-import org.jboss.security.authz.component.ComponentCategory;
-import org.jboss.security.authz.component.ComponentType;
-import org.jboss.security.authz.component.SecurityContextData;
-
-/**
- * This is a custom "Security Component"
- *
- * @author soshah
- *
- */
-@Component(
- name="ownerType",
- type=ComponentType.TARGET,
- category=ComponentCategory.CUSTOM_SUBJECT_ATTRIBUTE
-)
-public class OwnerType
-{
- //Indicates the Type of Owner that owns this Portal Object. Examples of usch types are
User Types, Group Types etc
- @SecurityContextData
- private String type;
-
- public OwnerType()
- {
-
- }
-
- public String getType()
- {
- return type;
- }
-
- public void setType(String type)
- {
- this.type = type;
- }
-}
Modified:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossCreatePortalACL.java
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossCreatePortalACL.java 2009-07-30
20:23:52 UTC (rev 13645)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossCreatePortalACL.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -19,6 +19,7 @@
import java.util.Collection;
import java.net.URI;
+import org.exoplatform.portal.jboss.security.components.CreatePortal;
import org.exoplatform.services.security.MembershipEntry;
import org.jboss.security.authz.agent.enforcement.EnforcementContext;
Added:
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossPolicyProvisioner.java
===================================================================
---
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossPolicyProvisioner.java
(rev 0)
+++
jbossexo/branches/security-integration-sandbox/portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/security/jboss/TestJBossPolicyProvisioner.java 2009-07-30
22:10:50 UTC (rev 13646)
@@ -0,0 +1,16 @@
+/**
+ *
+ */
+package org.exoplatform.portal.config.security.jboss;
+
+/**
+ * @author soshah
+ *
+ */
+public class TestJBossPolicyProvisioner extends JBossAbstractIntegrationTest
+{
+ public void testProvisionPortal() throws Exception
+ {
+
+ }
+}