|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.inf.container.DefaultWTOrganizationValidator
public class DefaultWTOrganizationValidator
Provides a final template implementation of validate.
Supported API: true
Extendable: true
| 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 |
| 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 WTOrganizationValidatorrequestor -
WTExceptionWTOrganizationValidator.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 nullis 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 | ||||||||