|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.OrganizationServiceWrapper
@ProviderType public class OrganizationServiceWrapper
Provides a wrapper for OrganizationService.
OrganizationService| Constructor Summary | |
|---|---|
OrganizationServiceWrapper(OrganizationService organizationService)
|
|
| Method Summary | |
|---|---|
void |
addGroupOrganizations(long groupId,
long[] organizationIds)
Adds the organizations to the group. |
Organization |
addOrganization(long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by #addOrganization(long,
String, String, long, long, int, String, boolean, List, List,
List, List, List, ServiceContext) |
Organization |
addOrganization(long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
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,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
Adds an organization with additional parameters. |
Organization |
addOrganization(long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
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 organization's logo. |
void |
deleteOrganization(long organizationId)
Deletes the organization. |
Organization |
fetchOrganization(long organizationId)
Returns the organization with the primary key. |
List<Organization> |
getManageableOrganizations(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,
String name)
Returns the primary key of the organization with the name. |
List<Organization> |
getOrganizations(long companyId,
long parentOrganizationId)
Returns all the organizations belonging to the parent organization. |
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. |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier. |
List<Organization> |
getUserOrganizations(long userId)
Returns all the organizations with which the user is explicitly associated. |
OrganizationService |
getWrappedService()
|
void |
setGroupOrganizations(long groupId,
long[] organizationIds)
Sets the organizations in the group, removing and adding organizations to the group as necessary. |
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,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by #updateOrganization(long,
long, String, String, long, long, int, String, boolean,
byte[], boolean, List, List, List, List, List,
ServiceContext) |
Organization |
updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
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,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean logo,
byte[] logoBytes,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
Updates the organization with additional parameters. |
Organization |
updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
Deprecated. As of 7.0.0, replaced by #updateOrganization(long,
long, String, String, long, long, int, String, boolean,
byte[], boolean, List, List, List, List, List,
ServiceContext) |
Organization |
updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
ServiceContext serviceContext)
Updates the organization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrganizationServiceWrapper(OrganizationService organizationService)
| Method Detail |
|---|
public void addGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException
addGroupOrganizations in interface OrganizationServicegroupId - the primary key of the grouporganizationIds - the primary keys of the organizations
PortalException
@Deprecated
public Organization addOrganization(long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
throws PortalException
#addOrganization(long,
String, String, long, long, int, String, boolean, List, List,
List, List, 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
@Deprecated
public Organization addOrganization(long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
ServiceContext serviceContext)
throws PortalException
#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
public Organization addOrganization(long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
throws PortalException
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
public Organization addOrganization(long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
ServiceContext serviceContext)
throws PortalException
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
public void addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws PortalException
addPasswordPolicyOrganizations in interface OrganizationServicepasswordPolicyId - the primary key of the password policyorganizationIds - the primary keys of the organizations
PortalException
public void deleteLogo(long organizationId)
throws PortalException
deleteLogo in interface OrganizationServiceorganizationId - the primary key of the organization
PortalException
public void deleteOrganization(long organizationId)
throws PortalException
deleteOrganization in interface OrganizationServiceorganizationId - the primary key of the organization
PortalException
public Organization fetchOrganization(long organizationId)
throws PortalException
fetchOrganization in interface OrganizationServiceorganizationId - the primary key of the organization
null if an
organization with the primary key could not be found or if the
user did not have permission to view the organization
PortalException
@Deprecated
public List<Organization> getManageableOrganizations(String actionId,
int max)
throws PortalException
getOrganizations(long, long,
int, int)
getManageableOrganizations in interface OrganizationServiceactionId - the permitted actionmax - the maximum number of the organizations to be considered
PortalExceptionpublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface OrganizationService
public Organization getOrganization(long organizationId)
throws PortalException
getOrganization in interface OrganizationServiceorganizationId - the primary key of the organization
PortalException
public long getOrganizationId(long companyId,
String name)
throws PortalException
getOrganizationId in interface OrganizationServicecompanyId - the primary key of the organization's companyname - the organization's name
0 if the organization could not be found
PortalException
public List<Organization> getOrganizations(long companyId,
long parentOrganizationId)
getOrganizations in interface OrganizationServicecompanyId - the primary key of the organizations' companyparentOrganizationId - the primary key of the organizations' parent
organization
public List<Organization> getOrganizations(long companyId,
long parentOrganizationId,
int start,
int end)
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)
public int getOrganizationsCount(long companyId,
long parentOrganizationId)
getOrganizationsCount in interface OrganizationServicecompanyId - the primary key of the organizations' companyparentOrganizationId - the primary key of the organizations' parent
organization
public List<Organization> getUserOrganizations(long userId)
throws PortalException
A user is considered to be explicitly associated with an organization if his account is individually created within the organization or if the user is later added as a member.
getUserOrganizations in interface OrganizationServiceuserId - the primary key of the user
PortalException
public void setGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException
setGroupOrganizations in interface OrganizationServicegroupId - the primary key of the grouporganizationIds - the primary keys of the organizations
PortalException
public void unsetGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException
unsetGroupOrganizations in interface OrganizationServicegroupId - the primary key of the grouporganizationIds - the primary keys of the organizations
PortalException
public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws PortalException
unsetPasswordPolicyOrganizations in interface OrganizationServicepasswordPolicyId - the primary key of the password policyorganizationIds - the primary keys of the organizations
PortalException
@Deprecated
public Organization updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
throws PortalException
#updateOrganization(long,
long, String, String, long, long, int, String, boolean,
byte[], boolean, List, List, List, List, 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
@Deprecated
public Organization updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
ServiceContext serviceContext)
throws PortalException
#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
public Organization updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean logo,
byte[] logoBytes,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
throws PortalException
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 organizationlogo - whether to update the ogranization's logologoBytes - the new logo image datasite - 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
@Deprecated
public Organization updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<OrgLabor> orgLabors,
List<Phone> phones,
List<Website> websites,
ServiceContext serviceContext)
throws PortalException
#updateOrganization(long,
long, String, String, long, long, int, String, boolean,
byte[], boolean, List, List, List, List, 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 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
public Organization updateOrganization(long organizationId,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
ServiceContext serviceContext)
throws PortalException
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.
PortalExceptionpublic OrganizationService getWrappedService()
getWrappedService in interface ServiceWrapper<OrganizationService>public void setWrappedService(OrganizationService organizationService)
setWrappedService in interface ServiceWrapper<OrganizationService>
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||