@ProviderType public class OrganizationServiceWrapper extends java.lang.Object implements OrganizationService, ServiceWrapper<OrganizationService>
OrganizationService.OrganizationService| Constructor and Description |
|---|
OrganizationServiceWrapper(OrganizationService organizationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupOrganizations(long groupId,
long[] organizationIds)
Adds the organizations to the group.
|
Organization |
addOrganization(long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
java.util.List<Address> addresses,
java.util.List<EmailAddress> emailAddresses,
java.util.List<OrgLabor> orgLabors,
java.util.List<Phone> phones,
java.util.List<Website> websites,
ServiceContext serviceContext)
|
Organization |
addOrganization(long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
ServiceContext serviceContext)
Deprecated.
As of 6.2.0, replaced by
addOrganization(long,
String, String, long, long, int, String, boolean,
ServiceContext) |
Organization |
addOrganization(long parentOrganizationId,
java.lang.String name,
java.lang.String type,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
java.util.List<Address> addresses,
java.util.List<EmailAddress> emailAddresses,
java.util.List<OrgLabor> orgLabors,
java.util.List<Phone> phones,
java.util.List<Website> websites,
ServiceContext serviceContext)
Adds an organization with additional parameters.
|
Organization |
addOrganization(long parentOrganizationId,
java.lang.String name,
java.lang.String type,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
ServiceContext serviceContext)
Adds an organization.
|
void |
addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
Assigns the password policy to the organizations, removing any other
currently assigned password policies.
|
void |
deleteLogo(long organizationId)
Deletes the logo of the organization.
|
void |
deleteOrganization(long organizationId)
Deletes the organization.
|
java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
java.util.List<Organization> |
getManageableOrganizations(java.lang.String actionId,
int max)
Deprecated.
As of 6.2.0, replaced by
getOrganizations(long, long,
int, int) |
Organization |
getOrganization(long organizationId)
Returns the organization with the primary key.
|
long |
getOrganizationId(long companyId,
java.lang.String name)
Returns the primary key of the organization with the name.
|
java.util.List<Organization> |
getOrganizations(long companyId,
long parentOrganizationId)
Returns all the organizations belonging to the parent organization.
|
java.util.List<Organization> |
getOrganizations(long companyId,
long parentOrganizationId,
int start,
int end)
Returns a range of all the organizations belonging to the parent
organization.
|
int |
getOrganizationsCount(long companyId,
long parentOrganizationId)
Returns the number of organizations belonging to the parent organization.
|
java.util.List<Organization> |
getUserOrganizations(long userId)
Returns all the organizations associated with the user.
|
OrganizationService |
getWrappedOrganizationService()
Deprecated.
As of 6.1.0, replaced by
getWrappedService() |
OrganizationService |
getWrappedService() |
void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setGroupOrganizations(long groupId,
long[] organizationIds)
Sets the organizations in the group, removing and adding organizations to
the group as necessary.
|
void |
setWrappedOrganizationService(OrganizationService organizationService)
Deprecated.
As of 6.1.0, replaced by
setWrappedService(com.liferay.portal.service.OrganizationService) |
void |
setWrappedService(OrganizationService organizationService) |
void |
unsetGroupOrganizations(long groupId,
long[] organizationIds)
Removes the organizations from the group.
|
void |
unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
Removes the organizations from the password policy.
|
Organization |
updateOrganization(long organizationId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
java.util.List<Address> addresses,
java.util.List<EmailAddress> emailAddresses,
java.util.List<OrgLabor> orgLabors,
java.util.List<Phone> phones,
java.util.List<Website> websites,
ServiceContext serviceContext)
|
Organization |
updateOrganization(long organizationId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
ServiceContext serviceContext)
Deprecated.
As of 6.2.0, replaced by
updateOrganization(long,
long, String, String, long, long, int, String, boolean,
ServiceContext) |
Organization |
updateOrganization(long organizationId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
java.util.List<Address> addresses,
java.util.List<EmailAddress> emailAddresses,
java.util.List<OrgLabor> orgLabors,
java.util.List<Phone> phones,
java.util.List<Website> websites,
ServiceContext serviceContext)
Updates the organization with additional parameters.
|
Organization |
updateOrganization(long organizationId,
long parentOrganizationId,
java.lang.String name,
java.lang.String type,
long regionId,
long countryId,
int statusId,
java.lang.String comments,
boolean site,
ServiceContext serviceContext)
Updates the organization.
|
public OrganizationServiceWrapper(OrganizationService organizationService)
public java.lang.String getBeanIdentifier()
getBeanIdentifier in interface OrganizationServicepublic void setBeanIdentifier(java.lang.String beanIdentifier)
setBeanIdentifier in interface OrganizationServicebeanIdentifier - the Spring bean ID for this beanpublic void addGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
addGroupOrganizations in interface OrganizationServicegroupId - the primary key of the grouporganizationIds - the primary keys of the organizationsPortalException - if a group or organization with the primary key
could not be found or if the user did not have permission to
assign group membersSystemException - if a system exception occurredpublic Organization addOrganization(long parentOrganizationId, java.lang.String name, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, java.util.List<Address> addresses, java.util.List<EmailAddress> emailAddresses, java.util.List<OrgLabor> orgLabors, java.util.List<Phone> phones, java.util.List<Website> websites, ServiceContext serviceContext) throws PortalException, SystemException
addOrganization(long,
String, String, long, long, int, String, boolean,
java.util.List, java.util.List, java.util.List,
java.util.List, java.util.List, ServiceContext)This method handles the creation and bookkeeping of the organization including its resources, metadata, and internal data structures.
addOrganization in interface OrganizationServiceparentOrganizationId - the primary key of the organization's
parent organizationname - the organization's nametype - the organization's typerecursable - whether the permissions of the organization are to
be inherited by its suborganizationsregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteaddresses - the organization's addressesemailAddresses - the organization's email addressesorgLabors - the organization's hours of operationphones - the organization's phone numberswebsites - the organization's websitesserviceContext - the service context to be applied (optionally
null). Can set asset category IDs, asset tag
names, and expando bridge attributes for the organization.PortalException - if a parent organization with the primary key
could not be found, if the organization's information was
invalid, or if the user did not have permission to add the
organizationSystemException - if a system exception occurredpublic Organization addOrganization(long parentOrganizationId, java.lang.String name, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, ServiceContext serviceContext) throws PortalException, SystemException
addOrganization(long,
String, String, long, long, int, String, boolean,
ServiceContext)This method handles the creation and bookkeeping of the organization including its resources, metadata, and internal data structures.
addOrganization in interface OrganizationServiceparentOrganizationId - the primary key of the organization's
parent organizationname - the organization's nametype - the organization's typerecursable - whether the permissions of the organization are to
be inherited by its suborganizationsregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteserviceContext - the service context to be applied (optionally
null). Can set asset category IDs, asset tag
names, and expando bridge attributes for the organization.PortalException - if the parent organization with the primary
key could not be found, if the organization information was
invalid, or if the user did not have permission to add the
organizationSystemException - if a system exception occurredpublic Organization addOrganization(long parentOrganizationId, java.lang.String name, java.lang.String type, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, java.util.List<Address> addresses, java.util.List<EmailAddress> emailAddresses, java.util.List<OrgLabor> orgLabors, java.util.List<Phone> phones, java.util.List<Website> websites, ServiceContext serviceContext) throws PortalException, SystemException
This method handles the creation and bookkeeping of the organization including its resources, metadata, and internal data structures.
addOrganization in interface OrganizationServiceparentOrganizationId - the primary key of the organization's parent
organizationname - the organization's nametype - the organization's typeregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteaddresses - the organization's addressesemailAddresses - the organization's email addressesorgLabors - the organization's hours of operationphones - the organization's phone numberswebsites - the organization's websitesserviceContext - the service context to be applied (optionally
null). Can set asset category IDs, asset tag names,
and expando bridge attributes for the organization.PortalException - if a parent organization with the primary key
could not be found, if the organization's information was
invalid, or if the user did not have permission to add the
organizationSystemException - if a system exception occurredpublic Organization addOrganization(long parentOrganizationId, java.lang.String name, java.lang.String type, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, ServiceContext serviceContext) throws PortalException, SystemException
This method handles the creation and bookkeeping of the organization including its resources, metadata, and internal data structures.
addOrganization in interface OrganizationServiceparentOrganizationId - the primary key of the organization's parent
organizationname - the organization's nametype - the organization's typeregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteserviceContext - the service context to be applied (optionally
null). Can set asset category IDs, asset tag names,
and expando bridge attributes for the organization.PortalException - if the parent organization with the primary key
could not be found, if the organization information was invalid,
or if the user did not have permission to add the organizationSystemException - if a system exception occurredpublic void addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws PortalException,
SystemException
addPasswordPolicyOrganizations in interface OrganizationServicepasswordPolicyId - the primary key of the password policyorganizationIds - the primary keys of the organizationsPortalException - if the user did not have permission to update the
password policySystemException - if a system exception occurredpublic void deleteLogo(long organizationId)
throws PortalException,
SystemException
deleteLogo in interface OrganizationServiceorganizationId - the primary key of the organizationPortalException - if an organization with the primary key could not
be found, if the organization's logo could not be found, or if
the user did not have permission to update the organizationSystemException - if a system exception occurredpublic void deleteOrganization(long organizationId)
throws PortalException,
SystemException
deleteOrganization in interface OrganizationServiceorganizationId - the primary key of the organizationPortalException - if an organization with the primary key could not
be found, if the user did not have permission to delete the
organization, if the organization had a workflow in approved
status, or if the organization was a parent organizationSystemException - if a system exception occurredpublic java.util.List<Organization> getManageableOrganizations(java.lang.String actionId, int max) throws PortalException, SystemException
getOrganizations(long, long,
int, int)getManageableOrganizations in interface OrganizationServiceactionId - the permitted actionmax - the maximum number of the organizations to be consideredPortalException - if a portal exception occurredSystemException - if a system exception occurredpublic Organization getOrganization(long organizationId) throws PortalException, SystemException
getOrganization in interface OrganizationServiceorganizationId - the primary key of the organizationPortalException - if an organization with the primary key could not
be found or if the user did not have permission to view the
organizationSystemException - if a system exception occurredpublic long getOrganizationId(long companyId,
java.lang.String name)
throws PortalException,
SystemException
getOrganizationId in interface OrganizationServicecompanyId - the primary key of the organization's companyname - the organization's name0 if the organization could not be foundPortalException - if the user did not have permission to view the
organizationSystemException - if a system exception occurredpublic java.util.List<Organization> getOrganizations(long companyId, long parentOrganizationId) throws SystemException
getOrganizations in interface OrganizationServicecompanyId - the primary key of the organizations' companyparentOrganizationId - the primary key of the organizations' parent
organizationSystemException - if a system exception occurredpublic java.util.List<Organization> getOrganizations(long companyId, long parentOrganizationId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
getOrganizations in interface OrganizationServicecompanyId - the primary key of the organizations' companyparentOrganizationId - the primary key of the organizations' parent
organizationstart - the lower bound of the range of organizations to returnend - the upper bound of the range of organizations to return (not
inclusive)SystemException - if a system exception occurredpublic int getOrganizationsCount(long companyId,
long parentOrganizationId)
throws SystemException
getOrganizationsCount in interface OrganizationServicecompanyId - the primary key of the organizations' companyparentOrganizationId - the primary key of the organizations' parent
organizationSystemException - if a system exception occurredpublic java.util.List<Organization> getUserOrganizations(long userId) throws PortalException, SystemException
getUserOrganizations in interface OrganizationServiceuserId - the primary key of the userPortalException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic void setGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
setGroupOrganizations in interface OrganizationServicegroupId - the primary key of the grouporganizationIds - the primary keys of the organizationsPortalException - if a group or organization with the primary key
could not be found or if the user did not have permission to
assign group membersSystemException - if a system exception occurredpublic void unsetGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
unsetGroupOrganizations in interface OrganizationServicegroupId - the primary key of the grouporganizationIds - the primary keys of the organizationsPortalException - if a group or organization with the primary key
could not be found or if the user did not have permission to
assign group membersSystemException - if a system exception occurredpublic void unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws PortalException,
SystemException
unsetPasswordPolicyOrganizations in interface OrganizationServicepasswordPolicyId - the primary key of the password policyorganizationIds - the primary keys of the organizationsPortalException - if a password policy or organization with the
primary key could not be found, or if the user did not have
permission to update the password policySystemException - if a system exception occurredpublic Organization updateOrganization(long organizationId, long parentOrganizationId, java.lang.String name, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, java.util.List<Address> addresses, java.util.List<EmailAddress> emailAddresses, java.util.List<OrgLabor> orgLabors, java.util.List<Phone> phones, java.util.List<Website> websites, ServiceContext serviceContext) throws PortalException, SystemException
updateOrganization(long,
long, String, String, long, long, int, String, boolean,
java.util.List, java.util.List, java.util.List,
java.util.List, java.util.List, ServiceContext)updateOrganization in interface OrganizationServiceorganizationId - the primary key of the organizationparentOrganizationId - the primary key of the organization's
parent organizationname - the organization's nametype - the organization's typerecursable - whether the permissions of the organization are to
be inherited by its suborganizationsregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteaddresses - the organization's addressesemailAddresses - the organization's email addressesorgLabors - the organization's hours of operationphones - the organization's phone numberswebsites - the organization's websitesserviceContext - the service context to be applied (optionally
null). Can set asset category IDs and asset tag
names for the organization, and merge expando bridge
attributes for the organization.PortalException - if an organization or parent organization
with the primary key could not be found, if the user did not
have permission to update the organization information, or if
the new information was invalidSystemException - if a system exception occurredpublic Organization updateOrganization(long organizationId, long parentOrganizationId, java.lang.String name, java.lang.String type, boolean recursable, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, ServiceContext serviceContext) throws PortalException, SystemException
updateOrganization(long,
long, String, String, long, long, int, String, boolean,
ServiceContext)updateOrganization in interface OrganizationServiceorganizationId - the primary key of the organizationparentOrganizationId - the primary key of the organization's
parent organizationname - the organization's nametype - the organization's typerecursable - whether permissions of the organization are to be
inherited by its suborganizationsregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteserviceContext - the service context to be applied (optionally
null). Can set asset category IDs and asset tag
names for the organization, and merge expando bridge
attributes for the organization.PortalException - if an organization or parent organization
with the primary key could not be found, if the user did not
have permission to update the organization, or if the new
information was invalidSystemException - if a system exception occurredpublic Organization updateOrganization(long organizationId, long parentOrganizationId, java.lang.String name, java.lang.String type, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, java.util.List<Address> addresses, java.util.List<EmailAddress> emailAddresses, java.util.List<OrgLabor> orgLabors, java.util.List<Phone> phones, java.util.List<Website> websites, ServiceContext serviceContext) throws PortalException, SystemException
updateOrganization in interface OrganizationServiceorganizationId - the primary key of the organizationparentOrganizationId - the primary key of the organization's parent
organizationname - the organization's nametype - the organization's typeregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteaddresses - the organization's addressesemailAddresses - the organization's email addressesorgLabors - the organization's hours of operationphones - the organization's phone numberswebsites - the organization's websitesserviceContext - the service context to be applied (optionally
null). Can set asset category IDs and asset tag
names for the organization, and merge expando bridge attributes
for the organization.PortalException - if an organization or parent organization with
the primary key could not be found, if the user did not have
permission to update the organization information, or if the new
information was invalidSystemException - if a system exception occurredpublic Organization updateOrganization(long organizationId, long parentOrganizationId, java.lang.String name, java.lang.String type, long regionId, long countryId, int statusId, java.lang.String comments, boolean site, ServiceContext serviceContext) throws PortalException, SystemException
updateOrganization in interface OrganizationServiceorganizationId - the primary key of the organizationparentOrganizationId - the primary key of the organization's parent
organizationname - the organization's nametype - the organization's typeregionId - the primary key of the organization's regioncountryId - the primary key of the organization's countrystatusId - the organization's workflow statuscomments - the comments about the organizationsite - whether the organization is to be associated with a main
siteserviceContext - the service context to be applied (optionally
null). Can set asset category IDs and asset tag
names for the organization, and merge expando bridge attributes
for the organization.PortalException - if an organization or parent organization with
the primary key could not be found, if the user did not have
permission to update the organization, or if the new information
was invalidSystemException - if a system exception occurredpublic OrganizationService getWrappedOrganizationService()
getWrappedService()public void setWrappedOrganizationService(OrganizationService organizationService)
setWrappedService(com.liferay.portal.service.OrganizationService)public OrganizationService getWrappedService()
getWrappedService in interface ServiceWrapper<OrganizationService>public void setWrappedService(OrganizationService organizationService)
setWrappedService in interface ServiceWrapper<OrganizationService>