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

org.macrocloud.kernel.toolkit.constant.RoleConstant Maven / Gradle / Ivy

There is a newer version: 1.1.0-RELEASE
Show newest version
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