|
Liferay 6.0.5 | |||||||||
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 OrganizationLocalService
The interface for the organization local service.
Never modify or reference this interface directly. Always use OrganizationLocalServiceUtil
to access the organization local service. Add custom service methods to OrganizationLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
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
,
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)
Counts the number of rows that match the dynamic query. |
List<Organization> |
getGroupOrganizations(long groupId)
|
Organization |
getOrganization(long organizationId)
Gets 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)
Gets a range of all the organizations. |
List<Organization> |
getOrganizations(long[] organizationIds)
|
int |
getOrganizationsCount()
Gets the number of organizations. |
List<Organization> |
getParentOrganizations(long organizationId)
|
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 |
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. |
Organization |
updateOrganization(Organization organization,
boolean merge)
Updates the organization in the database. |
Method Detail |
---|
Organization addOrganization(Organization organization) throws SystemException
organization
- the organization to add
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 to delete
PortalException
- if a organization with the primary key could not be found
SystemException
- if a system exception occurredvoid deleteOrganization(Organization organization) throws SystemException
organization
- the organization to delete
SystemException
- if a system exception occurredList dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredList 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 query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredList 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 query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
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 to get
PortalException
- if a organization with the primary key could not be found
SystemException
- if a system exception occurred@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 organizations to returnend
- the upper bound of the range of organizations to return (not inclusive)
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getOrganizationsCount() throws SystemException
SystemException
- if a system exception occurredOrganization updateOrganization(Organization organization) throws SystemException
organization
- the organization to update
SystemException
- if a system exception occurredOrganization updateOrganization(Organization organization, boolean merge) throws SystemException
organization
- the organization to updatemerge
- 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 occurredvoid 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[] organizationIds) throws PortalException, SystemException
PortalException
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.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |