Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.vrspace.server.filter
Class AdminFilter  view AdminFilter download AdminFilter.java

java.lang.Object
  extended byorg.vrspace.server.filter.VRObjectFilter
      extended byorg.vrspace.server.filter.AdminFilter
All Implemented Interfaces:
org.vrspace.attributes.ObjectFilter

public class AdminFilter
extends VRObjectFilter

This filter changes URL's to provide extra info to administrator.


Field Summary
(package private)  boolean all
           
(package private)  org.vrspace.server.Client c
           
 
Constructor Summary
AdminFilter()
          No arguments
AdminFilter(java.lang.String s)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          returns true if tested filter is of this class
 org.vrspace.server.VRObject process(org.vrspace.server.VRObject o)
          Rewrites url to new one with additional admin info, if client owns this object.
 boolean testVRObject(org.vrspace.server.VRObject o, org.vrspace.server.Client c)
          admin sees everything
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.vrspace.server.filter.VRObjectFilter
test
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

c

org.vrspace.server.Client c

all

boolean all
Constructor Detail

AdminFilter

public AdminFilter()
No arguments


AdminFilter

public AdminFilter(java.lang.String s)
Method Detail

testVRObject

public boolean testVRObject(org.vrspace.server.VRObject o,
                            org.vrspace.server.Client c)
admin sees everything

Specified by:
testVRObject in class VRObjectFilter

equals

public boolean equals(java.lang.Object o)
returns true if tested filter is of this class

Specified by:
equals in class VRObjectFilter

process

public org.vrspace.server.VRObject process(org.vrspace.server.VRObject o)
Rewrites url to new one with additional admin info, if client owns this object. Administrator owns everything.

Overrides:
process in class VRObjectFilter

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in class VRObjectFilter