public static EmailAddress addEmailAddress(Organization organization) throws Exception { return EmailAddressLocalServiceUtil.addEmailAddress( organization.getUserId(), organization.getModelClassName(), organization.getOrganizationId(), "*****@*****.**", _getListTypeId(ListTypeConstants.ORGANIZATION_EMAIL_ADDRESS), false, new ServiceContext()); }
public static Phone addPhone(Organization organization) throws Exception { return PhoneLocalServiceUtil.addPhone( organization.getUserId(), organization.getModelClassName(), organization.getOrganizationId(), "0000000000", "000", _getListTypeId(ListTypeConstants.ORGANIZATION_PHONE), false, new ServiceContext()); }
public static Website addWebsite(Organization organization) throws Exception { return WebsiteLocalServiceUtil.addWebsite( organization.getUserId(), organization.getModelClassName(), organization.getOrganizationId(), "http://www.test.com", _getListTypeId(ListTypeConstants.ORGANIZATION_WEBSITE), false, new ServiceContext()); }
public static PasswordPolicy addPasswordPolicyRel( Organization organization, ServiceContext serviceContext) throws Exception { PasswordPolicy passwordPolicy = PasswordPolicyTestUtil.addPasswordPolicy(serviceContext); PasswordPolicyRelLocalServiceUtil.addPasswordPolicyRel( passwordPolicy.getPasswordPolicyId(), organization.getModelClassName(), organization.getOrganizationId()); return passwordPolicy; }
public static Address addAddress(Organization organization) throws Exception { return AddressLocalServiceUtil.addAddress( organization.getUserId(), organization.getModelClassName(), organization.getOrganizationId(), RandomTestUtil.randomString(), RandomTestUtil.randomString(), RandomTestUtil.randomString(), RandomTestUtil.randomString(), RandomTestUtil.randomString(), RandomTestUtil.nextLong(), RandomTestUtil.randomLong(), _getListTypeId(ListTypeConstants.ORGANIZATION_ADDRESS), false, false, new ServiceContext()); }