in src/main/java/org/apache/directory/fortress/core/cli/CommandLineInterpreter.java [1264:1325]
private void printUser( User user )
{
String type = "U";
if ( user != null )
{
printRow( type, "UID ", user.getUserId() );
printRow( type, "IID ", user.getInternalId() );
printRow( type, "CN ", user.getCn() );
printRow( type, "DESC", user.getDescription() );
printRow( type, "OU ", user.getOu() );
printRow( type, "SN ", user.getSn() );
printRow( type, "BDTE", user.getBeginDate() );
printRow( type, "EDTE", user.getEndDate() );
printRow( type, "BLDT", user.getBeginLockDate() );
printRow( type, "ELDT", user.getEndLockDate() );
printRow( type, "DMSK", user.getDayMask() );
printRow( type, "TO ", "" + user.getTimeout() );
printRow( type, "REST", "" + user.isReset() );
printTemporal( type, user, "USER" );
printAddress( type, user.getAddress(), "ADDR" );
printPhone( type, user.getPhones(), "PHNE" );
printPhone( type, user.getPhones(), "MOBL" );
if ( CollectionUtils.isNotEmpty( user.getRoles() ) )
{
for ( UserRole ur : user.getRoles() )
{
printSeparator();
printTemporal( "R", ur, "RBACROLE" );
if ( CollectionUtils.isNotEmpty( ur.getParents() ) )
{
for ( String parentRole : ur.getParents() )
{
printRow( "R", "PRLE", parentRole );
}
}
}
}
if ( CollectionUtils.isNotEmpty( user.getAdminRoles() ) )
{
for ( UserAdminRole ur : user.getAdminRoles() )
{
printSeparator();
printTemporal( "A", ur, "ADMINROLE" );
printAdminRole( "A", ur );
}
}
if ( PropUtil.isNotEmpty( user.getProperties() ) )
{
printSeparator();
int ctr = 0;
for ( Enumeration<?> e = user.getProperties().propertyNames(); e.hasMoreElements(); )
{
String key = ( String ) e.nextElement();
String val = user.getProperty( key );
++ctr;
LOG.info( "{} KEY{} [{}]", type, ctr, key );
LOG.info( "{} VAL{} [{}]", type, ctr, val );
}
}
}
}