org.macrocloud.kernel.toolkit.constant.RoleConstant Maven / Gradle / Ivy
package org.macrocloud.kernel.toolkit.constant;
/**
* 系统默认角色.
*/
public class RoleConstant {
/** The Constant ADMINISTRATOR. */
public static final String ADMINISTRATOR = "administrator";
/** The Constant HAS_ROLE_ADMINISTRATOR. */
public static final String HAS_ROLE_ADMINISTRATOR = "hasRole('" + ADMINISTRATOR + "')";
/** The Constant ADMIN. */
public static final String ADMIN = "admin";
/** The Constant HAS_ROLE_ADMIN. */
public static final String HAS_ROLE_ADMIN = "hasAnyRole('" + ADMINISTRATOR + "', '" + ADMIN + "')";
/** The Constant USER. */
public static final String USER = "user";
/** The Constant HAS_ROLE_USER. */
public static final String HAS_ROLE_USER = "hasRole('" + USER + "')";
/** The Constant TEST. */
public static final String TEST = "test";
/** The Constant HAS_ROLE_TEST. */
public static final String HAS_ROLE_TEST = "hasRole('" + TEST + "')";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy