KIE Config command line interface 6.2.0.Final

org.kie.config.cli
Class CliIdentity

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.errai.security.shared.api.identity.User
org.jboss.errai.security.shared.api.identity.User.StandardUserProperties
 
Field Summary
 
Fields inherited from interface org.jboss.errai.security.shared.api.identity.User
ANONYMOUS
 
Constructor Summary
CliIdentity()
           
 
Method Summary
 Set<org.jboss.errai.security.shared.api.Group> getGroups()
           
 String getIdentifier()
           
 Map<String,String> getProperties()
           
 String getProperty(String s)
           
 Set<org.jboss.errai.security.shared.api.Role> getRoles()
           
 void removeProperty(String name)
           
 void setProperty(String s, String s2)
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CliIdentity

public CliIdentity()
Method Detail

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

KIE Config command line interface 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.