org.apache.jetspeed.om.common
Interface SecuredResource

All Known Subinterfaces:
BaseElement, ContentFragment, ContentPage, Document, Folder, Fragment, Link, Node, Page, PageSecurity

public interface SecuredResource

SecuredResource

Implemented by those resources that have a security constraint defined for security purposes.

Version:
$Id: SecuredResource.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver

Method Summary
 void checkAccess(String actions)
           checkAccess
 void checkConstraints(String actions)
           checkConstraints
 void checkPermissions(int mask)
           checkPermissions
 boolean getConstraintsEnabled()
           getConstraintsEnabled
 boolean getPermissionsEnabled()
           getPermissionsEnabled
 SecurityConstraints getSecurityConstraints()
           getSecurityConstraints
 SecurityConstraint newSecurityConstraint()
           newSecurityConstraint
 SecurityConstraints newSecurityConstraints()
           newSecurityConstraints
 void setSecurityConstraints(SecurityConstraints constraints)
           setSecurityConstraints
 

Method Detail

getConstraintsEnabled

boolean getConstraintsEnabled()

getConstraintsEnabled

Returns:
enabled indicator

getSecurityConstraints

SecurityConstraints getSecurityConstraints()

getSecurityConstraints

Returns:
security constraints for resource

newSecurityConstraints

SecurityConstraints newSecurityConstraints()

newSecurityConstraints

Returns:
a newly created SecurityConstraints object for use in SecuredResource

newSecurityConstraint

SecurityConstraint newSecurityConstraint()

newSecurityConstraint

Returns:
a newly created SecurityConstraint object for use in SecuredResource

setSecurityConstraints

void setSecurityConstraints(SecurityConstraints constraints)

setSecurityConstraints

Parameters:
constraints - security constraints for resource

checkConstraints

void checkConstraints(String actions)
                      throws SecurityException

checkConstraints

Parameters:
actions - list to be checked against in CSV string form
Throws:
SecurityException

getPermissionsEnabled

boolean getPermissionsEnabled()

getPermissionsEnabled

Returns:
enabled indicator

checkPermissions

void checkPermissions(int mask)
                      throws SecurityException

checkPermissions

Parameters:
mask - Mask of actions to be checked
Throws:
SecurityException

checkAccess

void checkAccess(String actions)
                 throws SecurityException

checkAccess

Parameters:
actions - list to be checked against in CSV string form
Throws:
SecurityException


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.