站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

Server - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.security
Class Server

java.lang.Object
  extended byorg.jboss.portal.test.security.Server

public class Server
extends java.lang.Object

Version:
$Revision: 5448 $
Author:
Julien Viet

Nested Class Summary
static interface Server.Task
           
 
Field Summary
private  java.lang.String contextID
           
 
Constructor Summary
Server()
           
 
Method Summary
 void associateRoles(java.security.Principal userPrincipal, java.lang.String[] roleNames)
           
 void associateRoles(java.lang.String[] roleNames)
           
 void execute(Server.Task task)
          Simulate a request executed in the scope of the server.
 java.lang.String getContextID()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextID

private java.lang.String contextID
Constructor Detail

Server

public Server()
Method Detail

getContextID

public java.lang.String getContextID()

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()

execute

public void execute(Server.Task task)
             throws java.lang.Exception
Simulate a request executed in the scope of the server.

Parameters:
task - the task to execute
Throws:
java.lang.Exception - any exception

associateRoles

public void associateRoles(java.lang.String[] roleNames)
                    throws java.lang.Exception
Throws:
java.lang.Exception

associateRoles

public void associateRoles(java.security.Principal userPrincipal,
                           java.lang.String[] roleNames)
                    throws java.lang.Exception
Throws:
java.lang.Exception