Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8981685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:23:52+00:00 2026-06-15T20:23:52+00:00

Which of the following util is suitable for creating an organization using Liferay API.

  • 0

Which of the following util is suitable for creating an organization using Liferay API.

i) OrganizationUtil
ii) OrganizationServiceUtil
iii) OrganizationLocalServiceUtil

Basically, I want to know the difference between these three.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:23:54+00:00Added an answer on June 15, 2026 at 8:23 pm

    i) OrganizationUtil: com.liferay.portal.service.persistence.OrganizationUtil

    The classes from the persistence layer directly talk to the Database and hence are good to be used from the service layer and also if you care about transaction.

    Following are the words from the documentation:

    The persistence utility for the organization service. This utility wraps OrganizationPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.


    ii) OrganizationServiceUtil: com.liferay.portal.service.OrganizationServiceUtil

    It can be called from any layer as such. This class also does permission checks (based on Permissions given in Liferay) which may be useful in some cases. This can also be used through web-service.

    Well lets see what liferay’s documentation has to say:

    The utility for the organization remote service. This utility wraps com.liferay.portal.service.impl.OrganizationServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

    This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.


    iii) OrganizationLocalServiceUtil: com.liferay.portal.service.OrganizationLocalServiceUtil

    This can also be used if you don’t want any permission checks. The OrganizationServiceUtil ultimately makes a call to the localService layer.

    Liferay’s Documentation:

    The utility for the organization local service. This utility wraps com.liferay.portal.service.impl.OrganizationLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

    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.

    Conclusion

    1. Use OrganizationUtil if you care about transaction i.e. have to update multiple tables in a transaction then use this.
    2. Use OrganizationServiceUtil if you creating Organization outside liferay or if you need permission checks & you don’t care about transaction (i.e. transaction with your custom code)
    3. Use OrganizationLocalServiceUtil if you are not using a web-service and you don’t care about transaction or permissions.

    Hope this gives you a fair idea. Let me know if it is still unclear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following which works great. I am just wondering if it
currently I have the following which parses a json api.. import simplejson import urllib2
The fine Twitter util library has the following Java class, which is extended by
I'm using the following basic function which I copied from the net to read
I am using this following code which creates a ListView with text and an
I am looking for a WorkQueue API offering the following features: java.util.Queue compatible offers
I am using Scala combinatorial parser by extending scala.util.parsing.combinator.syntactical.StandardTokenParser . This class provides following
I use JEditable for making edit field which following code: $(function() { $(.field).editable(http://localhost/index.php/welcome/update_record, {
I use the following which works perfectly in all browsers, except ie9 $result =
I found the following which shows how to delete an attribute from XML in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.