| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.cms.ac.cocoon.PolicyHelper
public class PolicyHelper
Helper class for the policy GUI.
| Field Summary | |
|---|---|
static java.lang.String | 
ADD
 | 
static java.lang.String | 
DELETE
 | 
| Constructor Summary | |
|---|---|
PolicyHelper()
Ctor.  | 
|
| Method Summary | |
|---|---|
 CredentialWrapper[] | 
getCredentials(boolean urlOnly)
Returns the credentials of the policy of the selected URL.  | 
 CredentialWrapper[] | 
getParentCredentials()
Returns the credential wrappers for the parent URI of the URL belonging to the request of this object model.  | 
protected  DefaultPolicy[] | 
getPolicies(boolean onlyUrl)
Returns the policies for a certain URL.  | 
 CredentialWrapper[] | 
getURICredentials()
Returns the URI credential wrappers for the request of this object model.  | 
 java.lang.String | 
getUrl()
Returns the URL.  | 
 User[] | 
getUsersWithRole(java.lang.String roleId)
Returns the users with a certain role on the current URL.  | 
 boolean | 
isAncestorSSLProtected()
Returns if one of the ancestors of this URL is SSL protected.  | 
 boolean | 
isUrlSSLProtected()
Returns if this URL is SSL protected.  | 
 void | 
manipulateCredential(Item item,
                     Role role,
                     java.lang.String operation)
Changes a credential by adding or deleting an item for a role.  | 
 void | 
setup(java.util.Map objectModel,
      org.apache.avalon.framework.component.ComponentManager manager,
      java.lang.String area)
Initializes this helper.  | 
 void | 
setUrlSSLProtected(boolean ssl)
Sets if this URL is SSL protected.  | 
 void | 
tearDown()
Releases all obtained components.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String ADD
public static final java.lang.String DELETE
| Constructor Detail | 
|---|
public PolicyHelper()
| Method Detail | 
|---|
public void setup(java.util.Map objectModel,
                  org.apache.avalon.framework.component.ComponentManager manager,
                  java.lang.String area)
           throws org.apache.cocoon.ProcessingException
objectModel - The Cocoon object model.manager - The component manager.area - The selected area.
org.apache.cocoon.ProcessingException - when something went wrong.public void tearDown()
public CredentialWrapper[] getURICredentials()
                                      throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingException - when something went wrong.
public CredentialWrapper[] getParentCredentials()
                                         throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingException - when something went wrong.
public CredentialWrapper[] getCredentials(boolean urlOnly)
                                   throws org.apache.cocoon.ProcessingException
urlOnly - If true, the URL policy credentials are returned.
 If false, the credentials of all ancestor policies are returned.
org.apache.cocoon.ProcessingException - when something went wrong.
protected DefaultPolicy[] getPolicies(boolean onlyUrl)
                               throws org.apache.cocoon.ProcessingException
onlyUrl - If true, only the URL policies are returned.
 Otherwise, all ancestor policies are returned.
org.apache.cocoon.ProcessingException - when something went wrong.
public void manipulateCredential(Item item,
                                 Role role,
                                 java.lang.String operation)
                          throws org.apache.cocoon.ProcessingException
item - The item to add or delete.role - The role.operation - The operation, either ADD or DELETE.
org.apache.cocoon.ProcessingException - when something went wrong.
public boolean isAncestorSSLProtected()
                               throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingException - when something went wrong.
public boolean isUrlSSLProtected()
                          throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingException - when something went wrong.
public void setUrlSSLProtected(boolean ssl)
                        throws org.apache.cocoon.ProcessingException
ssl - A boolean value.
org.apache.cocoon.ProcessingException - when something went wrong.
public User[] getUsersWithRole(java.lang.String roleId)
                        throws org.apache.cocoon.ProcessingException
roleId - The role ID.
org.apache.cocoon.ProcessingException - when something went wrong.public java.lang.String getUrl()
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||