|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.DefaultWTOrganizationValidator
Provides a final
template implementation of validate
.
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private static Vector |
READ_PERM
|
private static String |
RESOURCE
|
private static String |
WTGROUP_NAME
|
private static String |
WTORG_NAME
|
private static String |
WTUSER_NAME
|
Constructor Summary | |
DefaultWTOrganizationValidator()
|
Method Summary | |
protected AdminDomainRef |
createDomain(WTOrganization organization,
Object requestor)
Creates a new AdministrativeDomain for the organization,
if neccessary. |
protected void |
createPolicies(WTOrganization organization,
Object requestor)
Creates the policy rules for domains created by #createValidDomain(WTOrganization,Object) . |
protected void |
finalizeValidation(WTOrganization organization,
Object requestor)
Provides subclasses a last opportunity to do any additional work before the validate method completes. |
protected WTOrganization |
getOrganization(Object requestor)
Gets either an existing WTOrganization that corresponds
to the requestor, or instantiates a new one. |
WTOrganization |
validate(Object requestor)
Template method for organization validation. |
protected boolean |
validateAttributes(WTOrganization organization,
Object requestor)
Ensures the organization's attributes are appropriately set up. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final boolean DEBUG
private static final DebugWriter LOG
private static final Vector READ_PERM
private static final String WTUSER_NAME
private static final String WTGROUP_NAME
private static final String WTORG_NAME
Constructor Detail |
public DefaultWTOrganizationValidator()
Method Detail |
public final WTOrganization validate(Object requestor) throws WTException
getOrganization(Object)
.
createDomain(WTOrganization,Object)
validateAttributes(WTOrganization,Object)
null
domain was returned by createDomain
,
then assigns the domain to the organization.
OrganizationServicesManager.createPrincipal
.
If the instance already existed, and validateAttributes
returned true
, calls OrganizationServicesManager.updatePrincipal
instead.
null
domain was returned by createDomain
,
then calls createPolicies(WTOrganization,Object)
finalizeValidation(WTOrganization,Object)
validate
in interface WTOrganizationValidator
requestor
-
WTException
WTOrganizationValidator.validate(Object)
,
DirectoryHelperSvr
protected AdminDomainRef createDomain(WTOrganization organization, Object requestor) throws WTException
AdministrativeDomain
for the organization,
if neccessary. If the organization is not in either the global
USER or UNAFFILIATED domain, then a new domain is not created for
it and null
is returned. Otherwise, a new domain is created
using the name generated by WTContainerServiceSvr.getUnusedDomainName(String,AdminDomainRef)
.
organization
- requestor
-
null
.
WTException
protected void createPolicies(WTOrganization organization, Object requestor) throws WTException
#createValidDomain(WTOrganization,Object)
.
This method will only be called if createValidDomain
returns a non-null
result.
The default implementation gives members of the organization READ
access to users and groups in the domain.
Supported API: true
organization
- requestor
-
WTException
protected void finalizeValidation(WTOrganization organization, Object requestor) throws WTException
validate
method completes. The default implementation
does nothing.
organization
- requestor
-
WTException
protected WTOrganization getOrganization(Object requestor) throws WTException
WTOrganization
that corresponds
to the requestor, or instantiates a new one.
requestor
-
WTException
protected boolean validateAttributes(WTOrganization organization, Object requestor) throws WTException
null
) using DirectoryHelperSvr.generateInternetDomain(WTOrganization)
.
Subclasses should typically call super.validateAttributes
when overriding this method.
Supported API: true
organization
- requestor
-
OrganizationServicesManager.updatePrincipal
needs to be called on an organization that is already persisted.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |