All Downloads are FREE. Search and download functionalities are using the official Maven repository.

constants.security_permissions.PermissionConstants.ftl Maven / Gradle / Ivy

There is a newer version: 2.4.3
Show newest version
<#macro toUnderScore camelCase>
${camelCase?cap_first?replace("[A-Z]", "_$0", 'r')?upper_case?replace('_', '', 'f')}
<#macro toComment camelCase>
${camelCase?cap_first?replace("[A-Z]", "_$0", 'r')?upper_case?replace('_', ' ')?lower_case}

package ${variables.rootPackage}.general.common.api.constants;

import io.oasp.module.security.common.api.accesscontrol.AccessControlPermission;

/**
* Contains constants for the keys of all
* {@link AccessControlPermission Permission}s.
*/
public abstract class PermissionConstants {

<#list .vars['access-control-schema'].Children as group>
<#if group._nodeName_ == "group">
<#list group.permissions.Children as permission>
/** {@link AccessControlPermission Permission} to<@toComment camelCase=permission._at_id/>. */
public static final String <@toUnderScore camelCase=permission._at_id/> = "${permission._at_id}";




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy