public class OrgEntityRegistrationCmdImpl extends ControllerCommandImpl implements OrgEntityRegistrationCmd, com.ibm.commerce.member.constants.ECMemberConstants
Modifier and Type | Field and Description |
---|---|
protected OrganizationAccessBean | abOrganization
The organization access bean corresponding to this organization.
|
protected boolean | bOrgEntityUpdate
Whether or not this command is being used for an organization entity update.
|
protected boolean | bSetMemberIdToNull
Whether or not to set the member ID to null.
|
protected boolean | bToolsFramework
Flag to specify whether this command is invoked from within the tools framework.
|
static java.lang.String | CLASSNAME
Fully qualified class name.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected static java.lang.String | ERROR_VIEW
Error view name.
|
protected OrganizationAccessBean | iabParentOrgEntity
The parent organization entity.
|
protected java.lang.Long | inMemberId
The member ID.
|
protected java.lang.Long | inOrgEntityId
The organization entity ID.
|
protected OrganizationSyncBean | isbOrganization
Organization synchronization bean
|
protected java.lang.String | istrAdministratorFirstName
The administrator first name.
|
protected java.lang.String | istrAdministratorLastName
The administrator last name.
|
protected java.lang.String | istrAdministratorMiddleName
The administrator middle name.
|
protected java.lang.String | istrBusinessCategory
The business category.
|
protected java.lang.String | istrDescription
The organization entity's description.
|
protected java.lang.String | istrDistinguishedName
The organization entity's distinguished name.
|
protected java.lang.String | istrField1
The organization entity field1.
|
protected java.lang.String | istrField2
The organization entity field2.
|
protected java.lang.String | istrField3
The organization entity field3.
|
protected java.lang.String | istrLegalId
The legal ID.
|
protected java.lang.String | istrMemberId
The member ID.
|
protected java.lang.String | istrOldMemberId
The old member ID.
|
protected java.lang.String | istrOldOrgEntityType
The old organization entity type; can be O or OU.
|
protected java.lang.String | istrOrgEntityId
The organization entity ID.
|
protected java.lang.String | istrOrgEntityName
The organization entity's name.
|
protected java.lang.String | istrOrgEntityType
The organization entity type; can be O or OU.
|
protected java.lang.String | istrPreferredDelivery
The preferred method of delivery.
|
protected java.lang.String | istrTaxPayerId
The tax payer ID.
|
protected java.lang.String | istrURL
The URL.
|
protected java.lang.String | istrXMLFile
The XML file; for v5.1 backwards compatibility only
|
Constructor and Description |
---|
OrgEntityRegistrationCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkLDAPOrgEntityName(java.lang.String astrOrgEntityName)
This method is called when registering a new organization, if Commerce is configured with LDAP, when the orgEntityName is used as part of the distinguished name (DN) of the organization.
|
void | checkRDN(java.lang.String astrOrgEntityType, java.lang.String astrDN, TypedProperty aProperties)
Check the RDN value.
|
void | checkResourcePermission()
This method performs resource level access control check.
|
void | formulateDN(TypedProperty aProperties)
Formulate the DN.
|
TypedProperty | getRequestProperties()
Get the request properties
|
protected java.util.Vector | getRequiredRolesForOrg(java.lang.Long lOrganizationId)
Get the required roles for the new organization.
|
AccessVector | getResources()
Get resources.
|
TypedProperty | getViewInputProperties()
Get the view input properties.
|
protected boolean | isAlphaNumeric(java.lang.String param)
Returns whether or not the given parameter is alphanumeric
|
boolean | isOrgEntityNameValid(java.lang.String astrOrgEntityName, java.lang.String astrParentMemberId)
Whether or not the given organizational entity name is valid.
|
boolean | isReadyToCallExecute()
Whether or not the command is ready to be executed.
|
void | performExecute()
Execute the command.
|
void | reset()
Reset the command so that it can be called again.
|
void | setAdministratorFirstName(java.lang.String astrAdministratorFirstName)
Set the administrator's first name.
|
void | setAdministratorLastName(java.lang.String astrAdministratorLastName)
Set the administrator's last name.
|
void | setAdministratorMiddleName(java.lang.String astrAdministratorMiddleName)
Set the administrator's middle name.
|
void | setBusinessCategory(java.lang.String astrBusinessCategory)
Set the business category, which describes the kind of business performed by an orgEntity.
|
void | setDescription(java.lang.String astrDescription)
Set the description
|
void | setDistinguishedName(java.lang.String astrDistinguishedName)
Set the Distinguished name of the entry.
|
void | setErrorViewName(java.lang.String astrErrorViewName)
Set the error view name.
|
void | setLegalId(java.lang.String astrLegalId)
Set the registered organization identifier, may be null for an OU.
|
void | setMemberId(java.lang.String astrMemberId)
Foreign key reference to the MEMBER table For an O, this column can be null or contains the parent O or parent OU member id.
|
void | setOrgEntityField1(java.lang.String astrField1)
Set reserved field1 for customization.
|
void | setOrgEntityField2(java.lang.String astrField2)
Set reserved field2 for customization
|
void | setOrgEntityField3(java.lang.String astrField3)
Set reserved field3 for customization
|
void | setOrgEntityId(java.lang.String astrOrgEntityId)
set the foreign key reference to the MEMBER table.
|
void | setOrgEntityName(java.lang.String astrOrgEntityName)
Set the short name for O or OU.
|
void | setOrgEntityType(java.lang.String astrOrgEntityType)
Set the type of OrgEntity.
|
void | setPreferredDelivery(java.lang.String astrPreferredDelivery)
Set the preferred delivery method.
|
void | setRequestProperties(TypedProperty reqProperties)
Set the request properties.
|
protected void | setRolesForMemberInOrg(java.lang.Long member_id, java.util.Vector roles_in_org)
Set the roles for a member in an organization.
|
void | setTaxPayerId(java.lang.String astrTaxPayerId)
Set the tax payer ID.
|
void | setURL(java.lang.String astrURL)
Set the URL that is called when the command successfully completes.
|
void | validateParameters()
Perform server side parameter checking
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected static java.lang.String ERROR_VIEW
protected boolean bToolsFramework
protected OrganizationSyncBean isbOrganization
protected boolean bOrgEntityUpdate
protected java.lang.String istrOrgEntityId
protected OrganizationAccessBean iabParentOrgEntity
protected java.lang.String istrXMLFile
protected OrganizationAccessBean abOrganization
protected boolean bSetMemberIdToNull
protected java.lang.Long inOrgEntityId
protected java.lang.String istrDistinguishedName
protected java.lang.String istrOrgEntityType
protected java.lang.String istrOldOrgEntityType
protected java.lang.String istrOldMemberId
protected java.lang.String istrMemberId
protected java.lang.Long inMemberId
protected java.lang.String istrLegalId
protected java.lang.String istrBusinessCategory
protected java.lang.String istrAdministratorFirstName
protected java.lang.String istrAdministratorLastName
protected java.lang.String istrAdministratorMiddleName
protected java.lang.String istrPreferredDelivery
protected java.lang.String istrOrgEntityName
protected java.lang.String istrDescription
protected java.lang.String istrTaxPayerId
protected java.lang.String istrField1
protected java.lang.String istrField2
protected java.lang.String istrField3
protected java.lang.String istrURL
public void checkRDN(java.lang.String astrOrgEntityType, java.lang.String astrDN, TypedProperty aProperties) throws ECException
protected void checkLDAPOrgEntityName(java.lang.String astrOrgEntityName) throws ECException
public void formulateDN(TypedProperty aProperties) throws ECException
public TypedProperty getRequestProperties()
public AccessVector getResources() throws ECException
public TypedProperty getViewInputProperties()
protected boolean isAlphaNumeric(java.lang.String param)
public boolean isOrgEntityNameValid(java.lang.String astrOrgEntityName, java.lang.String astrParentMemberId)
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
public void setAdministratorFirstName(java.lang.String astrAdministratorFirstName)
public void setAdministratorLastName(java.lang.String astrAdministratorLastName)
public void setAdministratorMiddleName(java.lang.String astrAdministratorMiddleName)
public void setBusinessCategory(java.lang.String astrBusinessCategory)
public void setDescription(java.lang.String astrDescription)
public void setDistinguishedName(java.lang.String astrDistinguishedName)
public void setErrorViewName(java.lang.String astrErrorViewName)
public void setLegalId(java.lang.String astrLegalId)
public void setMemberId(java.lang.String astrMemberId)
public void setOrgEntityField1(java.lang.String astrField1)
public void setOrgEntityField2(java.lang.String astrField2)
public void setOrgEntityField3(java.lang.String astrField3)
public void setOrgEntityId(java.lang.String astrOrgEntityId)
public void setOrgEntityName(java.lang.String astrOrgEntityName)
public void setOrgEntityType(java.lang.String astrOrgEntityType)
public void setPreferredDelivery(java.lang.String astrPreferredDelivery)
public void setRequestProperties(TypedProperty reqProperties) throws ECApplicationException
public void setTaxPayerId(java.lang.String astrTaxPayerId)
public void setURL(java.lang.String astrURL)
public void validateParameters() throws ECException
protected java.util.Vector getRequiredRolesForOrg(java.lang.Long lOrganizationId)
protected void setRolesForMemberInOrg(java.lang.Long member_id, java.util.Vector roles_in_org) throws ECException
public void checkResourcePermission() throws ECException