PAJES 3.0.21

org.pajes.security
Class DefaultWritePermission

java.lang.Object
  extended by org.pajes.security.DefaultWritePermission
All Implemented Interfaces:
java.io.Serializable, WritePermission

public final class DefaultWritePermission
extends java.lang.Object
implements WritePermission

The default authorisation class for all HTML tags. It is implemented as a singleton to prevent excessive instance creation.

See Also:
Serialized Form

Method Summary
static DefaultWritePermission getInstance()
          Gets the instance of the singleton DefaultWritePermission.
 boolean isPermitted(HTML object, Browser browser)
          Determines whether a piece of HTML should be returned to the requesting browser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final DefaultWritePermission getInstance()
Gets the instance of the singleton DefaultWritePermission.

Returns:
the singleton instance.

isPermitted

public final boolean isPermitted(HTML object,
                                 Browser browser)
Determines whether a piece of HTML should be returned to the requesting browser. The default implementation always returns true.

Specified by:
isPermitted in interface WritePermission
Parameters:
object - the HTML object to be returned to the browser.
browser - the browser to which the results are to be output.
Returns:
true.

PAJES 3.0.21

Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.