Package org.apache.jetspeed.services.security

Examples of org.apache.jetspeed.services.security.GroupException


                removeGroup(group.getName());
            }
            catch(Exception e2)
            {
            }
            throw new GroupException("Failed to create Group PSML", e);
        }
    }
View Full Code Here


    public void saveGroup(Group group)
        throws JetspeedSecurityException
    {
        if(!groupExists(group.getName()))
        {
            throw new GroupException("The group '" +
                group.getName() + "' doesn't exists");
        }

        try
        {
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to create group '" +
                group.getName() + "'", e);
        }
    }
View Full Code Here

            PsmlManager.removeGroupDocuments(group);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to remove group '" +
                groupname + "'", e);
        }
    }
View Full Code Here

        {
            user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username));
        }
        catch(JetspeedSecurityException e)
        {
            throw new GroupException("Failed to Retrieve User: ", e);
        }
        try
        {
            user.addGroupRole(groupname, defaultRole);
            user.update(false);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to add group info ", e);
        }
    }
View Full Code Here

            user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username));
            role = (LDAPRole)JetspeedSecurity.getRole(rolename);
        }
        catch(JetspeedSecurityException e)
        {
            throw new GroupException("Failed to Retrieve User: ", e);
        }
        try
        {
            user.addGroupRole(groupname, rolename);
            user.update(false);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to add group info ", e);
        }
    }
View Full Code Here

        {
            user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username));
        }
        catch(JetspeedSecurityException e)
        {
            throw new GroupException("Failed to Retrieve User: ", e);
        }

        try
        {
            user.removeGroup(groupName);
            user.update(false);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to add group info ", e);
        }
    }
View Full Code Here

        {
            user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username));
        }
        catch(JetspeedSecurityException e)
        {
            throw new GroupException("Failed to Retrieve User: ", e);
        }

        try
        {
            user.removeGroup(groupName);
            user.update(false);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to add group info ", e);
        }
    }
View Full Code Here

            {
                return new LDAPGroup((LDAPURL)((Vector)groupurls.elementAt(0)).firstElement());
            }
            else if(groupurls.size() > 1)
            {
                throw new GroupException("Multiple groups with same name");
            }
      else
      {
            throw new GroupException("Unknown group '" + groupname + "'");
      }
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to retrieve groups ", e);
        }
    }
View Full Code Here

              return false;
            }
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to retrieve groups ", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.services.security.GroupException

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.