wt.inf.container
Class DefaultCanCreateDelegate

java.lang.Object
  extended bywt.inf.container.DefaultCanCreateDelegate
All Implemented Interfaces:
CanCreateDelegate

public final class DefaultCanCreateDelegate
extends Object
implements CanCreateDelegate

Vetoes container creation if:



Supported API: false

Extendable: false


Field Summary
private static int CAN_CREATE
           
private static String CLASSNAME
           
private static int NO_CREATE_ACCESS_FOR_CONTAINER
           
private static int NO_CREATE_FOR_NONSUBSCRIBING_ORG
           
private static String RESOURCE
           
 
Constructor Summary
DefaultCanCreateDelegate()
           
 
Method Summary
 boolean canCreate(Class container_class, WTUser user, WTContainerRef parent_ref)
          

Supported API: false
 void checkCreate(Class container_class, WTUser user, WTContainerRef parent_ref)
          Implementations should throw WTContainerExceptions to indicate that the create is vetoed.
private  int getCreateState(Class container_class, WTUser user, WTContainerRef parent_ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CAN_CREATE

private static final int CAN_CREATE
See Also:
Constant Field Values

NO_CREATE_FOR_NONSUBSCRIBING_ORG

private static final int NO_CREATE_FOR_NONSUBSCRIBING_ORG
See Also:
Constant Field Values

NO_CREATE_ACCESS_FOR_CONTAINER

private static final int NO_CREATE_ACCESS_FOR_CONTAINER
See Also:
Constant Field Values
Constructor Detail

DefaultCanCreateDelegate

public DefaultCanCreateDelegate()
Method Detail

checkCreate

public void checkCreate(Class container_class,
                        WTUser user,
                        WTContainerRef parent_ref)
                 throws WTException
Implementations should throw WTContainerExceptions to indicate that the create is vetoed.

Supported API: false

Specified by:
checkCreate in interface CanCreateDelegate
Parameters:
container_class -
user -
parent_ref -
Throws:
WTException

canCreate

public boolean canCreate(Class container_class,
                         WTUser user,
                         WTContainerRef parent_ref)
                  throws WTException


Supported API: false

Specified by:
canCreate in interface CanCreateDelegate
Parameters:
container_class -
user -
parent_ref -
Returns:
boolean
Throws:
WTException

getCreateState

private int getCreateState(Class container_class,
                           WTUser user,
                           WTContainerRef parent_ref)
                    throws WTException
Throws:
WTException