org.kie.config.cli
Class CliIdentity
java.lang.Object
org.kie.config.cli.CliIdentity
- All Implemented Interfaces:
- Serializable, org.jboss.errai.security.shared.api.identity.User
@Alternative
@ApplicationScoped
public class CliIdentity
- extends Object
- implements org.jboss.errai.security.shared.api.identity.User
An alternative Identity used from the CLI to ensure the user has ADMIN permissions
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface org.jboss.errai.security.shared.api.identity.User |
org.jboss.errai.security.shared.api.identity.User.StandardUserProperties |
| Fields inherited from interface org.jboss.errai.security.shared.api.identity.User |
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()
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifier in interface org.jboss.errai.security.shared.api.identity.User
getRoles
public Set<org.jboss.errai.security.shared.api.Role> getRoles()
- Specified by:
getRoles in interface org.jboss.errai.security.shared.api.identity.User
getGroups
public Set<org.jboss.errai.security.shared.api.Group> getGroups()
- Specified by:
getGroups in interface org.jboss.errai.security.shared.api.identity.User
getProperties
public Map<String,String> getProperties()
- Specified by:
getProperties in interface org.jboss.errai.security.shared.api.identity.User
setProperty
public void setProperty(String s,
String s2)
- Specified by:
setProperty in interface org.jboss.errai.security.shared.api.identity.User
removeProperty
public void removeProperty(String name)
- Specified by:
removeProperty in interface org.jboss.errai.security.shared.api.identity.User
getProperty
public String getProperty(String s)
- Specified by:
getProperty in interface org.jboss.errai.security.shared.api.identity.User
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.