Skip to content

Commit

Permalink
LPS-79679 Auto SF
Browse files Browse the repository at this point in the history
  • Loading branch information
hhuijser authored and brianchandotcom committed Jun 20, 2018
1 parent 6441c74 commit 975d928
Show file tree
Hide file tree
Showing 66 changed files with 84 additions and 84 deletions.
Expand Up @@ -104,7 +104,7 @@ public void check(String... companyIds) {
total += companyTotal;
}
catch (Exception e) {
_log.error(e);
_log.error(e, e);
}
}

Expand Down Expand Up @@ -141,7 +141,7 @@ public void cleanUp(String... companyIds) {
}
}
catch (Exception e) {
_log.error(e);
_log.error(e, e);
}
}
}
Expand Down Expand Up @@ -187,7 +187,7 @@ public void migrate(String... companyIds) throws PortalException {
}
}
catch (PortalException pe) {
_log.error(pe);
_log.error(pe, pe);
}
}
}
Expand Down Expand Up @@ -232,7 +232,7 @@ private FileVersion _getFileVersion(long fileVersionId)
return fileVersion;
}
catch (PortalException pe) {
_log.error(pe);
_log.error(pe, pe);

return null;
}
Expand Down Expand Up @@ -325,7 +325,7 @@ private void _migrate(
new UnsyncByteArrayInputStream(bytes), bytes.length);
}
catch (IOException | PortalException e) {
_log.error(e);
_log.error(e, e);
}
}

Expand Down
Expand Up @@ -182,7 +182,7 @@ public boolean hasImages(FileVersion fileVersion) {
}
catch (PortalException pe) {
if (_log.isWarnEnabled()) {
_log.warn(pe);
_log.warn(pe, pe);
}

return false;
Expand Down
Expand Up @@ -305,7 +305,7 @@ private Integer _getDistance(
return Optional.of(Tuple.of(fileVersion, amImageAttributeMapping));
}
catch (AMRuntimeException | NumberFormatException e) {
_log.error(e);
_log.error(e, e);

return Optional.empty();
}
Expand Down
Expand Up @@ -113,7 +113,7 @@ private Optional<AdaptiveMedia<AMImageProcessor>> _findAdaptiveMedia(
}
catch (PortalException pe) {
if (_log.isWarnEnabled()) {
_log.warn(pe);
_log.warn(pe, pe);
}

return Optional.empty();
Expand Down
Expand Up @@ -167,7 +167,7 @@ public void deleteAMImageEntryFileVersion(FileVersion fileVersion)
fileVersion, amImageEntry.getConfigurationUuid());
}
catch (AMRuntimeException.IOException amreioe) {
_log.error(amreioe);
_log.error(amreioe, amreioe);
}
}
}
Expand Down
Expand Up @@ -57,7 +57,7 @@ protected void deactivate() {
serviceRegistration.unregister();
}
catch (IllegalStateException ise) {
_log.error(ise);
_log.error(ise, ise);
}
}

Expand Down
Expand Up @@ -596,7 +596,7 @@ private String _getAssetEntryXml(
}
catch (IOException ioe) {
if (_log.isWarnEnabled()) {
_log.warn(ioe);
_log.warn(ioe, ioe);
}
}

Expand Down
Expand Up @@ -1803,7 +1803,7 @@ private static String _getAssetEntryXml(
}
catch (IOException ioe) {
if (_log.isWarnEnabled()) {
_log.warn(ioe);
_log.warn(ioe, ioe);
}
}

Expand Down
Expand Up @@ -169,7 +169,7 @@ protected void doImportStagedModel(
}
catch (DuplicateTagException dte) {
if (_log.isDebugEnabled()) {
_log.debug(dte);
_log.debug(dte, dte);
}

importedAssetTag = _assetTagLocalService.addTag(
Expand All @@ -185,7 +185,7 @@ protected void doImportStagedModel(
}
catch (DuplicateTagException dte) {
if (_log.isDebugEnabled()) {
_log.debug(dte);
_log.debug(dte, dte);
}

importedAssetTag = _assetTagLocalService.updateTag(
Expand Down
Expand Up @@ -82,7 +82,7 @@ public void delete() throws PortalException {
}
catch (NoSuchEntryException nsee) {
if (_log.isWarnEnabled()) {
_log.warn(nsee);
_log.warn(nsee, nsee);
}
}

Expand Down
Expand Up @@ -58,7 +58,7 @@ public void onAfterCreate(DLFileVersion dlFileVersion)
dlFileEntry = dlFileVersion.getFileEntry();
}
catch (PortalException pe) {
_log.error(pe);
_log.error(pe, pe);

return;
}
Expand Down Expand Up @@ -87,7 +87,7 @@ public void onAfterUpdate(DLFileVersion dlFileVersion)
dlFileEntry = dlFileVersion.getFileEntry();
}
catch (PortalException pe) {
_log.error(pe);
_log.error(pe, pe);

return;
}
Expand Down
Expand Up @@ -256,7 +256,7 @@ protected String getType(String type) {
}
catch (JSONException jsone) {
if (_log.isDebugEnabled()) {
_log.debug(jsone);
_log.debug(jsone, jsone);
}

return type;
Expand Down
Expand Up @@ -58,7 +58,7 @@ protected boolean evaluateCondition(String condition) {
}
catch (DDMExpressionException ddmee) {
if (_log.isDebugEnabled()) {
_log.debug(ddmee);
_log.debug(ddmee, ddmee);
}

return false;
Expand All @@ -84,7 +84,7 @@ protected void executeAction(String action) {
}
catch (DDMExpressionException ddmee) {
if (_log.isDebugEnabled()) {
_log.debug(ddmee);
_log.debug(ddmee, ddmee);
}
}
}
Expand Down
Expand Up @@ -88,7 +88,7 @@ protected boolean accept(String expression, Object value) {
}
catch (DDMExpressionException ddmee) {
if (_log.isDebugEnabled()) {
_log.debug(ddmee);
_log.debug(ddmee, ddmee);
}
}

Expand Down
Expand Up @@ -95,7 +95,7 @@ public Object evaluate(Object... parameters) {
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}
}

Expand Down
Expand Up @@ -50,7 +50,7 @@ public Object evaluate(Object... parameters) {
}
catch (Exception e) {
if (_log.isDebugEnabled()) {
_log.debug(e);
_log.debug(e, e);
}
}

Expand Down
Expand Up @@ -163,7 +163,7 @@ public DDMStructure getDDMStructure() {
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}
}
}
Expand Down
Expand Up @@ -77,7 +77,7 @@ public String getURL(
portletURL.setParameter("backURL", getBackURL(portletRequest));
}
catch (WindowStateException wse) {
_log.error(wse);
_log.error(wse, wse);
}

return portletURL.toString();
Expand Down
Expand Up @@ -1152,7 +1152,7 @@ else if (Validator.isNotNull(scopeLayoutUuid)) {
}
catch (NoSuchLayoutException nsle) {
if (_log.isWarnEnabled()) {
_log.warn(nsle);
_log.warn(nsle, nsle);
}
}
}
Expand Down
Expand Up @@ -170,7 +170,7 @@ protected void doReceive(Message message) throws Exception {
}
catch (IOException ioe) {
if (_log.isWarnEnabled()) {
_log.warn(ioe);
_log.warn(ioe, ioe);
}
}
}
Expand Down
Expand Up @@ -324,7 +324,7 @@ public void service(
}
catch (PortalException pe) {
if (_log.isWarnEnabled()) {
_log.warn(pe);
_log.warn(pe, pe);
}

if (pe instanceof NoSuchGroupException ||
Expand Down
Expand Up @@ -42,7 +42,7 @@ public static <T> ThrowableConsumer<T> idempotent(
}
catch (NoSuchModelException nsme) {
if (_log.isInfoEnabled()) {
_log.info(nsme);
_log.info(nsme, nsme);
}
}
};
Expand Down
Expand Up @@ -109,7 +109,7 @@ protected String replace(
}
catch (Exception e) {
if (_log.isWarnEnabled()) {
_log.warn(e);
_log.warn(e, e);
}
}

Expand Down
Expand Up @@ -184,7 +184,7 @@ public void render(
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}
}

Expand Down Expand Up @@ -251,7 +251,7 @@ public void serveResource(
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}
}

Expand Down
Expand Up @@ -102,7 +102,7 @@ public void include(
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}
}

Expand Down
Expand Up @@ -58,7 +58,7 @@ public void include(
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}

return;
Expand Down
Expand Up @@ -63,7 +63,7 @@ public void delete() throws PortalException {
}
catch (NoSuchMessageException nsme) {
if (_log.isWarnEnabled()) {
_log.warn(nsme);
_log.warn(nsme, nsme);
}
}

Expand Down
Expand Up @@ -80,7 +80,7 @@ public void delete() throws PortalException {
}
catch (NoSuchMessageException nsme) {
if (_log.isWarnEnabled()) {
_log.warn(nsme);
_log.warn(nsme, nsme);
}
}

Expand Down
Expand Up @@ -113,7 +113,7 @@ public static String[] getUserRank(
}
catch (Exception e) {
if (_log.isWarnEnabled()) {
_log.warn(e);
_log.warn(e, e);
}
}
}
Expand Down
Expand Up @@ -66,7 +66,7 @@ public UserSubject createSubject(String login, String password) {
return userSubject;
}
catch (PortalException pe) {
_log.error(pe);
_log.error(pe, pe);

return null;
}
Expand Down Expand Up @@ -101,7 +101,7 @@ else if (authType.equals(CompanyConstants.AUTH_TYPE_ID)) {
}
}
catch (PortalException pe) {
_log.error(pe);
_log.error(pe, pe);

return null;
}
Expand Down
Expand Up @@ -591,7 +591,7 @@ private void _cleanUp() {
previousAutoCloseable.close();
}
catch (Exception e) {
_log.error(e);
_log.error(e, e);
}
}
}
Expand Down
Expand Up @@ -137,7 +137,7 @@ public boolean hasViewGrantedAuthorizationsPermission() {
OAuth2ProviderActionKeys.ACTION_VIEW_GRANTED_AUTHORIZATIONS);
}
catch (PortalException pe) {
_log.error(pe);
_log.error(pe, pe);

return false;
}
Expand Down
Expand Up @@ -59,7 +59,7 @@ public boolean processAction(
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}

SessionErrors.add(actionRequest, pe.getClass());
Expand Down
Expand Up @@ -64,7 +64,7 @@ public boolean processAction(
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}

SessionErrors.add(actionRequest, pe.getClass());
Expand Down
Expand Up @@ -191,7 +191,7 @@ else if (fileEntryId > 0) {
}
catch (PortalException pe) {
if (_log.isDebugEnabled()) {
_log.debug(pe);
_log.debug(pe, pe);
}

Class<?> peClass = pe.getClass();
Expand Down

0 comments on commit 975d928

Please sign in to comment.