User: stark
Date: 01/02/12 01:29:46
Added: security/src/main/org/jboss/test/security/test/ejbs/project/interfaces
IProjRepository.java IProjRepositoryAdmin.java
ProjRepository.java ProjRepositoryAdmin.java
ProjRepositoryAdminHome.java
ProjRepositoryHome.java
Log:
Tests of the security proxy layer and custom JAAS security
Revision Changes Path
1.1
contrib/security/src/main/org/jboss/test/security/test/ejbs/project/interfaces/IProjRepository.java
Index: IProjRepository.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.security.test.ejbs.project.interfaces;
import javax.naming.Name;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import java.rmi.RemoteException;
/** The business interface for the ProjRepository bean.
@see ProjRepository
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
* @stereotype business-interface
*/
public interface IProjRepository
{
public void createFolder(Name folderPath) throws NamingException,
RemoteException;
public void deleteFolder(Name folderPath, boolean recursive) throws
NamingException, RemoteException;
public void createItem(Name itemPath, Attributes attributes) throws
NamingException, RemoteException;
public void updateItem(Name itemPath, Attributes attributes) throws
NamingException, RemoteException;
public void deleteItem(Name itemPath) throws NamingException, RemoteException;
public Attributes getItem(Name itemPath) throws NamingException, RemoteException;
}
1.1
contrib/security/src/main/org/jboss/test/security/test/ejbs/project/interfaces/IProjRepositoryAdmin.java
Index: IProjRepositoryAdmin.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.security.test.ejbs.project.interfaces;
import java.rmi.RemoteException;
import java.security.Principal;
import javax.naming.Name;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
/** The project admin interface.
@see ProjRepositoryAdmin
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface IProjRepositoryAdmin
{
public void createProject(Name projectName) throws NamingException,
RemoteException;
public void closeProject(Name projectName) throws NamingException,
RemoteException;
public Principal createUser(String userID) throws RemoteException;
public void createProjectUser(Name projectName, Principal userID) throws
RemoteException;
}
1.1
contrib/security/src/main/org/jboss/test/security/test/ejbs/project/interfaces/ProjRepository.java
Index: ProjRepository.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.security.test.ejbs.project.interfaces;
import javax.ejb.EJBObject;
import javax.naming.Name;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import java.rmi.RemoteException;
/** A stateful session bean for accessing a hypothetical project information
repository. The information repository is similary to a JNDI store in
that items are accessed via a Name and the information is represented as
Attributes.
It is used to test non-declarative security.
@see javax.naming.Name
@see javax.naming.directory.Attributes
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface ProjRepository extends EJBObject, IProjRepository
{
// All methods come from the IProjRepository interface
}
1.1
contrib/security/src/main/org/jboss/test/security/test/ejbs/project/interfaces/ProjRepositoryAdmin.java
Index: ProjRepositoryAdmin.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.security.test.ejbs.project.interfaces;
import javax.ejb.EJBObject;
import javax.naming.Name;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import java.rmi.RemoteException;
/** A stateless session bean for administiring projects.
It is used to test non-declarative security.
@see javax.naming.Name
@see javax.naming.directory.Attributes
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface ProjRepositoryAdmin extends EJBObject, IProjRepositoryAdmin
{
// All methods come from the IProjRepositoryAdmin interface
}
1.1
contrib/security/src/main/org/jboss/test/security/test/ejbs/project/interfaces/ProjRepositoryAdminHome.java
Index: ProjRepositoryAdminHome.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.security.test.ejbs.project.interfaces;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.naming.Name;
import java.rmi.RemoteException;
/** The home interface for the ProjRepositoryAdmin stateless session bean.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface ProjRepositoryAdminHome extends EJBHome
{
public void create() throws RemoteException, CreateException;
}
1.1
contrib/security/src/main/org/jboss/test/security/test/ejbs/project/interfaces/ProjRepositoryHome.java
Index: ProjRepositoryHome.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.security.test.ejbs.project.interfaces;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.naming.Name;
import java.rmi.RemoteException;
/** A stateful session bean for accessing a hypothetical project information
repository. The information repository is similary to a JNDI store in
that items are accessed via a Name and the information is represented as
Attributes.
It is used to test non-declarative security.
@see javax.naming.Name
@see javax.naming.directory.Attributes
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface ProjRepositoryHome extends EJBHome
{
public ProjRepository create(Name projectName) throws CreateException,
RemoteException;
}