Getting the Organization name.


We know we can get the Organization details from the OrganizationLocalServiceUtil. Also we have another option to get those details. It is from the GroupLocalServiceUtil.

As we know that whenever we create the Organization it will be created in the "Group" table only.

Here I am getting the "Test Organization" Organization

Getting the Organization name from the group

String defaultOrganizationGroupName = "Test Organization";

defaultOrganizationGroupName +=GroupLocalServiceImpl.ORGANIZATION_NAME_SUFFIX;

Group group = GroupLocalServiceUtil.getGroup(companyId,defaultOrganizationGroupName);



Comments

  1. Your post was really helpful.We will get the organization name.I got the organization name for the federal resume writing service by using this post.It is a good idea for that.It was the amazing blog post,it will be helpful for the organizations.

    ReplyDelete

Post a Comment

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate