wt.inf.container
Class DefaultCanCreateDelegate
java.lang.Object
wt.inf.container.DefaultCanCreateDelegate
- All Implemented Interfaces:
- CanCreateDelegate
- public final class DefaultCanCreateDelegate
- extends Object
- implements CanCreateDelegate
Vetoes container creation if:
- The user does not have create access for the container type in the
parent container's base public domain, or the parent's system domain
if the base public domain does not exist.
- The parent
OrgContainer
for the new container exists
and is not a subscriber
Supported API: false
Extendable: false
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DefaultCanCreateDelegate
public DefaultCanCreateDelegate()
checkCreate
public void checkCreate(Class container_class,
WTUser user,
WTContainerRef parent_ref)
throws WTException
- Implementations should throw
WTContainerException
s 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