org.kie.config.cli
Class CliIdentity
java.lang.Object
org.kie.config.cli.CliIdentity
- All Implemented Interfaces:
- Serializable, org.uberfire.security.auth.Principal, org.uberfire.security.Identity, org.uberfire.security.Subject
@Alternative
@ApplicationScoped
public class CliIdentity
- extends Object
- implements org.uberfire.security.Identity
An alternative Identity used from the CLI to ensure the user has ADMIN permissions
- See Also:
- Serialized Form
| Fields inherited from interface org.uberfire.security.Identity |
ANONYMOUS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CliIdentity
public CliIdentity()
setup
@PostConstruct
public void setup()
getName
public String getName()
- Specified by:
getName in interface org.uberfire.security.auth.Principal
hasRole
public boolean hasRole(org.uberfire.security.Role role)
- Specified by:
hasRole in interface org.uberfire.security.Subject
getRoles
public List<org.uberfire.security.Role> getRoles()
- Specified by:
getRoles in interface org.uberfire.security.Subject
getProperties
public Map<String,String> getProperties()
- Specified by:
getProperties in interface org.uberfire.security.Subject
aggregateProperty
public void aggregateProperty(String name,
String value)
- Specified by:
aggregateProperty in interface org.uberfire.security.Subject
removeProperty
public void removeProperty(String name)
- Specified by:
removeProperty in interface org.uberfire.security.Subject
getProperty
public String getProperty(String name,
String defaultValue)
- Specified by:
getProperty in interface org.uberfire.security.Subject
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.