The following code retrieves the details for a logged-in user:
Below are two alternatives for retrieving the Organization Service:
- The first alternative
- The second alternative
Both alternatives are probably better then OrganizationService orgService = getApplicationComponent(OrganizationService.class) because you can use them from your own portlets or servlet/portlet filters. Variant with getApplicationComponent variant works only from WebUI.