Skip to content

Commit

Permalink
LPS-63463 Edit breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Hinkey authored and brianchandotcom committed Feb 19, 2016
1 parent 33281b0 commit 587e3aa
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions readme/7.0/BREAKING_CHANGES.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ feature or API will be dropped in an upcoming version.
replaces an old API, in spite of the old API being kept in Liferay Portal for
backwards compatibility.

*This document has been reviewed through commit `d756263`.*
*This document has been reviewed through commit `b6b7772`.*

## Breaking Changes Contribution Guidelines

Expand Down Expand Up @@ -3867,62 +3867,60 @@ in the OSGi container.

---------------------------------------

###
### User Operation and Importer/Exporter Classes and Utilities Have Been Moved or Removed From portal-kernel
- **Date:** 2016-Feb-17
- **JIRA Ticket:** LPS-63205

#### What changed?

- `com.liferay.portal.kernel.security.exportimport.UserImporter`,
`com.liferay.portal.kernel.security.exportimport.UserExporter`,
and `com.liferay.portal.kernel.security.exportimport.UserOperation`, have been
and `com.liferay.portal.kernel.security.exportimport.UserOperation` have been
moved from portal-kernel to the portal-security-export-import-api module.

- `com.liferay.portal.kernel.security.exportimport.UserImporterUtil`,
- `com.liferay.portal.kernel.security.exportimport.UserImporterUtil` and
`com.liferay.portal.kernel.security.exportimport.UserExporterUtil` have been
removed with no replacement.

#### Who is affected?

- All implementations of
`com.liferay.portal.kernel.security.exportimport.UserImporter`,
`com.liferay.portal.kernel.security.exportimport.UserExporter`,
`com.liferay.portal.kernel.security.exportimport.UserImporter` or
`com.liferay.portal.kernel.security.exportimport.UserExporter`
are affected.
- All code calling using

- All code that uses
`com.liferay.portal.kernel.security.exportimport.UserImporterUtil`,
`com.liferay.portal.kernel.security.exportimport.UserExporterUtil`,
`com.liferay.portal.kernel.security.exportimport.UserImporter`,
`com.liferay.portal.kernel.security.exportimport.UserExporter`,
are affected.
`com.liferay.portal.kernel.security.exportimport.UserImporter`, or
`com.liferay.portal.kernel.security.exportimport.UserExporter`
is affected.

#### How should I update my code?

If you are in an OSGi module, you can simply inject the UserImporter or
UserExporter references

`
@Reference
private UserExporter_userExporter;
@Reference
private UserExporter_userExporter;

@Reference
private UserImporter _userImporter;
`
@Reference
private UserImporter _userImporter;

If you are in a legacy WAR or WAB, you will need a snippet like:

`
Bundle bundle = FrameworkUtil.getBundle(getClass());
Bundle bundle = FrameworkUtil.getBundle(getClass());

BundleContext bundleContext = bundle.getBundleContext();
BundleContext bundleContext = bundle.getBundleContext();

ServiceReference<UserImporter> serviceReference =
bundleContext.getServiceReference(UserImporter.class);
ServiceReference<UserImporter> serviceReference =
bundleContext.getServiceReference(UserImporter.class);

UserImporter userImporter = bundleContext.getService(serviceReference);
`
UserImporter userImporter = bundleContext.getService(serviceReference);

#### Why was this change made?

The change was made to improve modularity of the user import/export subsystem in
the product.

---------------------------------------

0 comments on commit 587e3aa

Please sign in to comment.