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

PortalPolicyConfiguration - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.security.impl.jacc
Class PortalPolicyConfiguration

java.lang.Object
  extended byorg.jboss.portal.security.impl.jacc.PortalPolicyConfiguration
All Implemented Interfaces:
javax.security.jacc.PolicyConfiguration

public final class PortalPolicyConfiguration
extends java.lang.Object
implements javax.security.jacc.PolicyConfiguration

Ripoff of the appserver's factory.

This is needed to a temp. workaround until we can fix the appserver's DelegatingPolicy to acomodate the features we need in the portal.


Constructor Summary
protected PortalPolicyConfiguration(java.lang.String contextID, PortalJaccPolicy policy, org.jboss.util.state.StateMachine configStateMachine)
           
 
Method Summary
 void addToExcludedPolicy(java.security.Permission permission)
           
 void addToExcludedPolicy(java.security.PermissionCollection permissions)
           
 void addToRole(java.lang.String roleName, java.security.Permission permission)
           
 void addToRole(java.lang.String roleName, java.security.PermissionCollection permissions)
           
 void addToUncheckedPolicy(java.security.Permission permission)
           
 void addToUncheckedPolicy(java.security.PermissionCollection permissions)
           
 void commit()
           
 void delete()
           
 java.lang.String getContextID()
           
 boolean inService()
           
 void linkConfiguration(javax.security.jacc.PolicyConfiguration link)
           
 void removeExcludedPolicy()
           
 void removeRole(java.lang.String roleName)
           
 void removeUncheckedPolicy()
           
protected  void validateState(java.lang.String action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalPolicyConfiguration

protected PortalPolicyConfiguration(java.lang.String contextID,
                                    PortalJaccPolicy policy,
                                    org.jboss.util.state.StateMachine configStateMachine)
                             throws javax.security.jacc.PolicyContextException
Method Detail

addToExcludedPolicy

public void addToExcludedPolicy(java.security.Permission permission)
                         throws javax.security.jacc.PolicyContextException
Specified by:
addToExcludedPolicy in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

addToExcludedPolicy

public void addToExcludedPolicy(java.security.PermissionCollection permissions)
                         throws javax.security.jacc.PolicyContextException
Specified by:
addToExcludedPolicy in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

addToRole

public void addToRole(java.lang.String roleName,
                      java.security.Permission permission)
               throws javax.security.jacc.PolicyContextException
Specified by:
addToRole in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

addToRole

public void addToRole(java.lang.String roleName,
                      java.security.PermissionCollection permissions)
               throws javax.security.jacc.PolicyContextException
Specified by:
addToRole in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

addToUncheckedPolicy

public void addToUncheckedPolicy(java.security.Permission permission)
                          throws javax.security.jacc.PolicyContextException
Specified by:
addToUncheckedPolicy in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

addToUncheckedPolicy

public void addToUncheckedPolicy(java.security.PermissionCollection permissions)
                          throws javax.security.jacc.PolicyContextException
Specified by:
addToUncheckedPolicy in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

commit

public void commit()
            throws javax.security.jacc.PolicyContextException
Specified by:
commit in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

delete

public void delete()
            throws javax.security.jacc.PolicyContextException
Specified by:
delete in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

getContextID

public java.lang.String getContextID()
                              throws javax.security.jacc.PolicyContextException
Specified by:
getContextID in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

inService

public boolean inService()
                  throws javax.security.jacc.PolicyContextException
Specified by:
inService in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

linkConfiguration

public void linkConfiguration(javax.security.jacc.PolicyConfiguration link)
                       throws javax.security.jacc.PolicyContextException
Specified by:
linkConfiguration in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

removeExcludedPolicy

public void removeExcludedPolicy()
                          throws javax.security.jacc.PolicyContextException
Specified by:
removeExcludedPolicy in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

removeRole

public void removeRole(java.lang.String roleName)
                throws javax.security.jacc.PolicyContextException
Specified by:
removeRole in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

removeUncheckedPolicy

public void removeUncheckedPolicy()
                           throws javax.security.jacc.PolicyContextException
Specified by:
removeUncheckedPolicy in interface javax.security.jacc.PolicyConfiguration
Throws:
javax.security.jacc.PolicyContextException

validateState

protected void validateState(java.lang.String action)
                      throws javax.security.jacc.PolicyContextException
Throws:
javax.security.jacc.PolicyContextException