You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2008/09/04 21:26:58 UTC
svn commit: r692201 - in
/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl:
./ JetspeedSecurityPersistenceManager.java
Author: ate
Date: Thu Sep 4 12:26:57 2008
New Revision: 692201
URL: http://svn.apache.org/viewvc?rev=692201&view=rev
Log:
One big security (database) persistence manager solution
Added:
portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java (with props)
Modified:
portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/ (props changed)
Propchange: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Sep 4 12:26:57 2008
@@ -1,2 +1,2 @@
-target
+target
surefire*.properties
Added: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java?rev=692201&view=auto
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java (added)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java Thu Sep 4 12:26:57 2008
@@ -0,0 +1,248 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jetspeed.security.spi.impl;
+
+import java.util.List;
+import java.util.Set;
+
+import org.apache.jetspeed.security.DependentPrincipalException;
+import org.apache.jetspeed.security.JetspeedPermission;
+import org.apache.jetspeed.security.JetspeedPrincipal;
+import org.apache.jetspeed.security.JetspeedPrincipalAssociationReference;
+import org.apache.jetspeed.security.JetspeedPrincipalType;
+import org.apache.jetspeed.security.PasswordCredential;
+import org.apache.jetspeed.security.PortalResourcePermission;
+import org.apache.jetspeed.security.PrincipalAlreadyExistsException;
+import org.apache.jetspeed.security.PrincipalAssociationNotAllowedException;
+import org.apache.jetspeed.security.PrincipalAssociationRequiredException;
+import org.apache.jetspeed.security.PrincipalAssociationUnsupportedException;
+import org.apache.jetspeed.security.PrincipalNotFoundException;
+import org.apache.jetspeed.security.PrincipalNotRemovableException;
+import org.apache.jetspeed.security.PrincipalUpdateException;
+import org.apache.jetspeed.security.User;
+import org.apache.jetspeed.security.spi.JetspeedPermissionStorageManager;
+import org.apache.jetspeed.security.spi.JetspeedPrincipalAccessManager;
+import org.apache.jetspeed.security.spi.JetspeedPrincipalAssociationStorageManager;
+import org.apache.jetspeed.security.spi.JetspeedPrincipalPermissionStorageManager;
+import org.apache.jetspeed.security.spi.JetspeedPrincipalStorageManager;
+import org.apache.jetspeed.security.spi.UserPasswordCredentialStorageManager;
+
+/**
+ * @version $Id$
+ */
+public class JetspeedSecurityPersistenceManager implements JetspeedPrincipalAccessManager,
+ JetspeedPrincipalStorageManager, UserPasswordCredentialStorageManager,
+ JetspeedPrincipalAssociationStorageManager, JetspeedPrincipalPermissionStorageManager,
+ JetspeedPermissionStorageManager
+{
+ //
+ // JetspeedPrincipalAccessManager interface implementation
+ //
+ public List<JetspeedPrincipal> getAssociatedFrom(String principalName, JetspeedPrincipalType type,
+ String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<JetspeedPrincipal> getAssociatedFrom(Long principalId, JetspeedPrincipalType type,
+ String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<String> getAssociatedNamesFrom(String principalName, JetspeedPrincipalType type, String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<String> getAssociatedNamesFrom(Long principalId, JetspeedPrincipalType type, String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<String> getAssociatedNamesTo(String principalName, JetspeedPrincipalType type, String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<String> getAssociatedNamesTo(Long principalId, JetspeedPrincipalType type, String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<JetspeedPrincipal> getAssociatedTo(String principalName, JetspeedPrincipalType type,
+ String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<JetspeedPrincipal> getAssociatedTo(Long principalId, JetspeedPrincipalType type, String associationName)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public JetspeedPrincipal getPrincipal(Long id)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public JetspeedPrincipal getPrincipal(String principalName, JetspeedPrincipalType type)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<String> getPrincipalNames(String nameFilter, JetspeedPrincipalType type)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<JetspeedPrincipal> getPrincipals(String nameFilter, JetspeedPrincipalType type)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<String> getPrincipals(JetspeedPermission permission)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List<String> getPrincipals(JetspeedPermission permission, JetspeedPrincipalType type)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public boolean principalExists(String principalName, JetspeedPrincipalType type)
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ //
+ // JetspeedPrincipalStorageManager interface implementation
+ //
+ public void addPrincipal(JetspeedPrincipal principal, Set<JetspeedPrincipalAssociationReference> associations)
+ throws PrincipalAlreadyExistsException,
+ PrincipalAssociationRequiredException
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public boolean isMapped()
+ {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void removePrincipal(JetspeedPrincipal principal) throws PrincipalNotFoundException,
+ PrincipalNotRemovableException, DependentPrincipalException
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void updatePrincipal(JetspeedPrincipal principal) throws PrincipalUpdateException,
+ PrincipalNotFoundException
+ {
+ // TODO Auto-generated method stub
+ }
+
+ //
+ // JetspeedPrincipalStorageManager interface implementation
+ //
+ public void addCredential(PasswordCredential credential, User user)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void removeCredential(PasswordCredential credential)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void updateCredential(PasswordCredential credential)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ //
+ // JetspeedPrincipalAssociationStorageManager interface implementation
+ //
+ public void addAssociation(JetspeedPrincipal from, JetspeedPrincipal to, String associationName)
+ throws PrincipalNotFoundException,
+ PrincipalAssociationUnsupportedException,
+ PrincipalAssociationNotAllowedException
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void removeAssociation(JetspeedPrincipal from, JetspeedPrincipal to, String associationName)
+ throws PrincipalNotFoundException,
+ PrincipalAssociationUnsupportedException,
+ PrincipalAssociationRequiredException
+ {
+ // TODO Auto-generated method stub
+ }
+
+ //
+ // JetspeedPrincipalPermissionStorageManager interface implementation
+ //
+ public void grantPermission(JetspeedPrincipal principal, JetspeedPermission permission)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void revokeAll(JetspeedPrincipal principal)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void revokePermission(JetspeedPrincipal principal, JetspeedPermission permission)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ //
+ // JetspeedPermissionStorageManager interface implementation
+ //
+ public void addPermission(PortalResourcePermission p)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void removePermission(JetspeedPermission p)
+ {
+ // TODO Auto-generated method stub
+ }
+
+ public void updatePermission(JetspeedPermission p)
+ {
+ // TODO Auto-generated method stub
+ }
+}
Propchange: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/spi/impl/JetspeedSecurityPersistenceManager.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org