KIE Config command line interface 6.0.0.Final

org.kie.config.cli
Class CliIdentity

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.uberfire.security.Identity
ANONYMOUS
 
Constructor Summary
CliIdentity()
           
 
Method Summary
 void aggregateProperty(String name, String value)
           
 String getName()
           
 Map<String,String> getProperties()
           
 String getProperty(String name, String defaultValue)
           
 List<org.uberfire.security.Role> getRoles()
           
 boolean hasRole(org.uberfire.security.Role role)
           
 void removeProperty(String name)
           
 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()

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

KIE Config command line interface 6.0.0.Final

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