Example usage for com.liferay.portal.security.permission ResourceActionsImpl read

List of usage examples for com.liferay.portal.security.permission ResourceActionsImpl read

Introduction

In this page you can find the example usage for com.liferay.portal.security.permission ResourceActionsImpl read.

Prototype

@Override
    public void read(String servletContextName, ClassLoader classLoader, String... sources) throws Exception 

Source Link

Usage

From source file:com.liferay.calendar.internal.upgrade.v1_0_6.UpgradeResourcePermission.java

License:Open Source License

protected List<String> getModelResourceGuestUnsupportedActions() throws UpgradeException {

    try {//from   ww w. j ava  2s .com
        ResourceActionsImpl resourceActionsImpl = new ResourceActionsImpl();

        Class<?> clazz = getClass();

        ClassLoader classLoader = clazz.getClassLoader();

        for (String config : PropsValues.RESOURCE_ACTIONS_CONFIGS) {
            resourceActionsImpl.read(null, classLoader, config);
        }

        return resourceActionsImpl.getModelResourceGuestUnsupportedActions(_CALENDAR_RESOURCE_NAME);
    } catch (Exception e) {
        throw new UpgradeException(e);
    }
}