org.mmbase.security
Class NoAuthorization

java.lang.Object
  |
  +--org.mmbase.security.Authorization
        |
        +--org.mmbase.security.NoAuthorization

public class NoAuthorization
extends Authorization

This class does nothing


Fields inherited from class org.mmbase.security.Authorization
configFile, fileWatcher, manager
 
Constructor Summary
NoAuthorization()
           
 
Method Summary
 void assert(UserContext user, int nodeid, Operation operation)
          This method does nothing
 boolean check(UserContext user, int nodeid, Operation operation)
          This method does nothing
 void create(UserContext user, int nodeid)
          This method does nothing
 java.lang.String getContext(UserContext user, int nodeid)
          This method does nothing, except from giving a specified string back
 java.util.HashSet getPossibleContexts(UserContext user, int nodeid)
          This method does nothing, except from returning a dummy value
protected  void load()
          This method does nothing
 void remove(UserContext user, int nodeid)
          This method does nothing
 void setContext(UserContext user, int nodeid, java.lang.String context)
          This method does nothing, except from checking if the setContext was valid..
 void update(UserContext user, int nodeid)
          This method does nothing
 
Methods inherited from class org.mmbase.security.Authorization
load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoAuthorization

public NoAuthorization()
Method Detail

load

protected void load()
This method does nothing
Overrides:
load in class Authorization

create

public void create(UserContext user,
                   int nodeid)
This method does nothing
Overrides:
create in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has just been added to the MMBase cloud.

update

public void update(UserContext user,
                   int nodeid)
This method does nothing
Overrides:
update in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has just been changed in the cloud.

remove

public void remove(UserContext user,
                   int nodeid)
This method does nothing
Overrides:
remove in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has just been removed in the cloud.

check

public boolean check(UserContext user,
                     int nodeid,
                     Operation operation)
This method does nothing
Overrides:
check in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has to be checked.
operation - The operation which will be performed.
Returns:
true if the operation is permitted, false if the operation is not permitted,

assert

public void assert(UserContext user,
                   int nodeid,
                   Operation operation)
            throws SecurityException
This method does nothing
Overrides:
assert in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has to be asserted.
operation - The operation which will be performed.
Throws:
org.mmbase.SecurityException - If the assertion fails

getContext

public java.lang.String getContext(UserContext user,
                                   int nodeid)
                            throws SecurityException
This method does nothing, except from giving a specified string back
Overrides:
getContext in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has to be asserted.
Returns:
the context setting of the node.
Throws:
org.mmbase.SecurityException - If operation is not allowed(needs read rights)

setContext

public void setContext(UserContext user,
                       int nodeid,
                       java.lang.String context)
                throws SecurityException
This method does nothing, except from checking if the setContext was valid..
Overrides:
setContext in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has to be asserted.
context - The context which rights the node will get
Throws:
org.mmbase.SecurityException - If operation is not allowed
org.mmbase.SecurityException - If context is not known

getPossibleContexts

public java.util.HashSet getPossibleContexts(UserContext user,
                                             int nodeid)
                                      throws SecurityException
This method does nothing, except from returning a dummy value
Overrides:
getPossibleContexts in class Authorization
Following copied from class: org.mmbase.security.Authorization
Parameters:
user - The UserContext, containing the information about the user.
nodeid - The id of the MMObjectNode, which has to be asserted.
Returns:
a java.util.HashSet of Strings which represent a context in readable form..
Throws:
org.mmbase.SecurityException - maybe


MMBase 2001