Example usage for com.liferay.portal.util PropsValues TRASH_ENTRIES_MAX_AGE

List of usage examples for com.liferay.portal.util PropsValues TRASH_ENTRIES_MAX_AGE

Introduction

In this page you can find the example usage for com.liferay.portal.util PropsValues TRASH_ENTRIES_MAX_AGE.

Prototype

int TRASH_ENTRIES_MAX_AGE

To view the source code for com.liferay.portal.util PropsValues TRASH_ENTRIES_MAX_AGE.

Click Source Link

Usage

From source file:com.liferay.trash.internal.TrashHelperImpl.java

License:Open Source License

@Override
public int getMaxAge(Group group) {
    int trashEntriesMaxAge = PrefsPropsUtil.getInteger(group.getCompanyId(), PropsKeys.TRASH_ENTRIES_MAX_AGE,
            PropsValues.TRASH_ENTRIES_MAX_AGE);

    UnicodeProperties typeSettingsProperties = group.getParentLiveGroupTypeSettingsProperties();

    return GetterUtil.getInteger(typeSettingsProperties.getProperty("trashEntriesMaxAge"), trashEntriesMaxAge);
}