/*
* Copyright Javelin Software, All rights reserved.
*/
package com.javelin.security;
/**
* User is a the default implementation of a user.
*
* @author Dino Fancellu, Robin Sharp
*/
public class DefaultUser implements User
{
public String getLoginName()
{
return "";
}
public String getFullName()
{
return "";
}
public boolean isLoggedIn()
{
return false;
}
public boolean hasPermission(String perm)
{
if (perm.equalsIgnoreCase("BROWSE"))
{
return true;
}
return false;
}
public boolean hasPermissions(Object[] perms)
{
for (int x=0;x<perms.length;x++)
{
if (hasPermission((String)perms[x]))
{
return true;
}
}
return false;
}
}
|