|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface OrganizationLocalServiceThe interface for the organization local service.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
OrganizationLocalServiceUtil,
OrganizationLocalServiceBaseImpl,
com.liferay.portal.service.impl.OrganizationLocalServiceImpl| Method Summary | |
|---|---|
void |
addGroupOrganizations(long groupId,
long[] organizationIds)
|
Organization |
addOrganization(long userId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
|
Organization |
addOrganization(Organization organization)
Adds the organization to the database. |
void |
addOrganizationResources(long userId,
Organization organization)
|
void |
addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
|
Organization |
createOrganization(long organizationId)
Creates a new organization with the primary key. |
void |
deleteLogo(long organizationId)
|
void |
deleteOrganization(long organizationId)
Deletes the organization with the primary key from the database. |
void |
deleteOrganization(Organization organization)
Deletes the organization from the database. |
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
List<Organization> |
getGroupOrganizations(long groupId)
|
Organization |
getOrganization(long organizationId)
Returns the organization with the primary key. |
Organization |
getOrganization(long companyId,
String name)
|
long |
getOrganizationId(long companyId,
String name)
|
List<Organization> |
getOrganizations(int start,
int end)
Returns a range of all the organizations. |
List<Organization> |
getOrganizations(long[] organizationIds)
|
List<Organization> |
getOrganizations(long companyId,
long parentOrganizationId)
|
List<Organization> |
getOrganizations(long companyId,
long parentOrganizationId,
int start,
int end)
|
int |
getOrganizationsCount()
Returns the number of organizations. |
int |
getOrganizationsCount(long companyId,
long parentOrganizationId)
|
List<Organization> |
getParentOrganizations(long organizationId)
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
List<Organization> |
getSuborganizations(List<Organization> organizations)
|
List<Organization> |
getSubsetOrganizations(List<Organization> allOrganizations,
List<Organization> availableOrganizations)
|
List<Organization> |
getUserOrganizations(long userId)
|
List<Organization> |
getUserOrganizations(long userId,
boolean inheritUserGroups)
|
List<Organization> |
getUserOrganizations(long userId,
boolean inheritUserGroups,
int start,
int end)
|
List<Organization> |
getUserOrganizations(long userId,
int start,
int end)
|
int |
getUserOrganizationsCount(long userId)
|
boolean |
hasGroupOrganization(long groupId,
long organizationId)
|
boolean |
hasPasswordPolicyOrganization(long passwordPolicyId,
long organizationId)
|
boolean |
hasUserOrganization(long userId,
long organizationId)
|
boolean |
hasUserOrganization(long userId,
long organizationId,
boolean inheritSuborganizations,
boolean inheritUserGroups,
boolean includeSpecifiedOrganization)
|
void |
rebuildTree(long companyId,
boolean force)
|
Hits |
search(long companyId,
long parentOrganizationId,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
Sort sort)
|
List<Organization> |
search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end)
|
List<Organization> |
search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
|
List<Organization> |
search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end)
|
List<Organization> |
search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
|
Hits |
search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
String region,
String country,
LinkedHashMap<String,Object> params,
boolean andSearch,
int start,
int end,
Sort sort)
|
int |
searchCount(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params)
|
int |
searchCount(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setGroupOrganizations(long groupId,
long[] organizationIds)
|
void |
unsetGroupOrganizations(long groupId,
long[] organizationIds)
|
void |
unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
|
void |
updateAsset(long userId,
Organization organization,
long[] assetCategoryIds,
String[] assetTagNames)
|
Organization |
updateOrganization(long companyId,
long organizationId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
|
Organization |
updateOrganization(Organization organization)
Updates the organization in the database or adds it if it does not yet exist. |
Organization |
updateOrganization(Organization organization,
boolean merge)
Updates the organization in the database or adds it if it does not yet exist. |
| Method Detail |
|---|
Organization addOrganization(Organization organization)
throws SystemException
organization - the organization
SystemException - if a system exception occurredOrganization createOrganization(long organizationId)
organizationId - the primary key for the new organization
void deleteOrganization(long organizationId)
throws PortalException,
SystemException
organizationId - the primary key of the organization
PortalException - if a organization with the primary key could not be found
SystemException - if a system exception occurred
void deleteOrganization(Organization organization)
throws PortalException,
SystemException
organization - the organization
PortalException
SystemException - if a system exception occurred
List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
List dynamicQuery(DynamicQuery dynamicQuery,
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
SystemException - if a system exception occurred
List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
@Transactional(propagation=SUPPORTS,
readOnly=true)
Organization getOrganization(long organizationId)
throws PortalException,
SystemException
organizationId - the primary key of the organization
PortalException - if a organization with the primary key could not be found
SystemException - if a system exception occurred
@Transactional(propagation=SUPPORTS,
readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException,
SystemException
getPersistedModel in interface PersistedModelLocalServicePortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getOrganizations(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.
start - the lower bound of the range of organizationsend - the upper bound of the range of organizations (not inclusive)
SystemException - if a system exception occurred
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getOrganizationsCount()
throws SystemException
SystemException - if a system exception occurred
Organization updateOrganization(Organization organization)
throws SystemException
organization - the organization
SystemException - if a system exception occurred
Organization updateOrganization(Organization organization,
boolean merge)
throws SystemException
organization - the organizationmerge - whether to merge the organization with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
SystemException - if a system exception occurredString getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier - the Spring bean ID for this bean
void addGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
Organization addOrganization(long userId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
void addOrganizationResources(long userId,
Organization organization)
throws PortalException,
SystemException
PortalException
SystemException
void addPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws SystemException
SystemException
void deleteLogo(long organizationId)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getGroupOrganizations(long groupId)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
Organization getOrganization(long companyId,
String name)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
long getOrganizationId(long companyId,
String name)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getOrganizations(long companyId,
long parentOrganizationId)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getOrganizations(long companyId,
long parentOrganizationId,
int start,
int end)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getOrganizations(long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getOrganizationsCount(long companyId,
long parentOrganizationId)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getParentOrganizations(long organizationId)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getSuborganizations(List<Organization> organizations)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getSubsetOrganizations(List<Organization> allOrganizations,
List<Organization> availableOrganizations)
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getUserOrganizations(long userId)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getUserOrganizations(long userId,
boolean inheritUserGroups)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getUserOrganizations(long userId,
boolean inheritUserGroups,
int start,
int end)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> getUserOrganizations(long userId,
int start,
int end)
throws PortalException,
SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getUserOrganizationsCount(long userId)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasGroupOrganization(long groupId,
long organizationId)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasPasswordPolicyOrganization(long passwordPolicyId,
long organizationId)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasUserOrganization(long userId,
long organizationId)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasUserOrganization(long userId,
long organizationId,
boolean inheritSuborganizations,
boolean inheritUserGroups,
boolean includeSpecifiedOrganization)
throws PortalException,
SystemException
PortalException
SystemException
void rebuildTree(long companyId,
boolean force)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
Hits search(long companyId,
long parentOrganizationId,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
Sort sort)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> search(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Organization> search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
Hits search(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
String region,
String country,
LinkedHashMap<String,Object> params,
boolean andSearch,
int start,
int end,
Sort sort)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
int searchCount(long companyId,
long parentOrganizationId,
String keywords,
String type,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params)
throws SystemException
SystemException
@Transactional(propagation=SUPPORTS,
readOnly=true)
int searchCount(long companyId,
long parentOrganizationId,
String name,
String type,
String street,
String city,
String zip,
Long regionId,
Long countryId,
LinkedHashMap<String,Object> params,
boolean andOperator)
throws SystemException
SystemException
void setGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
void unsetGroupOrganizations(long groupId,
long[] organizationIds)
throws PortalException,
SystemException
PortalException
SystemException
void unsetPasswordPolicyOrganizations(long passwordPolicyId,
long[] organizationIds)
throws SystemException
SystemException
void updateAsset(long userId,
Organization organization,
long[] assetCategoryIds,
String[] assetTagNames)
throws PortalException,
SystemException
PortalException
SystemException
Organization updateOrganization(long companyId,
long organizationId,
long parentOrganizationId,
String name,
String type,
boolean recursable,
long regionId,
long countryId,
int statusId,
String comments,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||