Package org.apache.turbine.util.security

Examples of org.apache.turbine.util.security.UnknownEntityException


    public Class getUserClass()
        throws UnknownEntityException
    {
        if ( userClass == null )
        {       
            throw new UnknownEntityException(
                "Failed to create a Class object for User implementation");
        }
        return userClass;
    }
View Full Code Here


        {
            user = (User)getUserClass().newInstance();
        }
        catch(Exception e)
        {
            throw new UnknownEntityException("Failed instantiate an User implementation object", e);
        }
        return user;
    }
View Full Code Here

        {
            return group;
        }
        else
        {
            throw new UnknownEntityException("The specified group does not exist");
        }
    }
View Full Code Here

            role.setPermissions(getPermissions(role));
            return role;
        }
        else
        {
            throw new UnknownEntityException("The specified role does not exist");
        }
    }
View Full Code Here

        {
            return permission;
        }
        else
        {
            throw new UnknownEntityException("The specified permission does not exist");
        }
    }
View Full Code Here

    public AccessControlList getACL( User user )
        throws DataBackendException, UnknownEntityException
    {
        if(!TurbineSecurity.accountExists(user))
        {
            throw new UnknownEntityException("The account '" +
                        user.getUserName() + "' does not exist");
        }
        try
        {
            Hashtable roles = new Hashtable();
View Full Code Here

        {
            unlockExclusive();       
        }
        if(!userExists)
        {
            throw new UnknownEntityException("Unknown user '" +
                user.getUserName() + "'");
        }
        if(!groupExists)
        {
            throw new UnknownEntityException("Unknown group '" +
                ((SecurityObject)group).getName() + "'");
        }
        if(!roleExists)
        {
            throw new UnknownEntityException("Unknown role '" +
                role.getName() + "'");
        }
    }
View Full Code Here

        {
            unlockExclusive();       
        }
        if(!userExists)
        {
            throw new UnknownEntityException("Unknown user '" +
                                        user.getUserName() + "'");
        }
        if(!groupExists)
        {
            throw new UnknownEntityException("Unknown group '" +
                                        ((SecurityObject)group).getName() + "'");
        }
        if(!roleExists)
        {
            throw new UnknownEntityException("Unknown role '" +
                                        role.getName() + "'");
        }
     }
View Full Code Here

        }
        finally
        {
            unlockExclusive();       
        }
        throw new UnknownEntityException("Unknown user '"+user.getUserName()+"'");
    }
View Full Code Here

        {
            unlockExclusive();       
        }
        if(!roleExists)
        {
            throw new UnknownEntityException("Unknown role '" +
                role.getName() + "'");
        }
        if(!permissionExists)
        {
            throw new UnknownEntityException("Unknown permission '" +
                ((SecurityObject)permission).getName() + "'");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.turbine.util.security.UnknownEntityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.