com.dotmarketing.cms.factories
Class PublicRoleFactory

java.lang.Object
  extended by RoleUtil
      extended by com.dotmarketing.cms.factories.PublicRoleFactory

public class PublicRoleFactory
extends RoleUtil

Author:
David

Constructor Summary
PublicRoleFactory()
           
 
Method Summary
static void addRoleToUser(java.lang.String roleId, User user)
           
static boolean containsRole(Role[] roles, Role role)
           
static Role findRoleByName(java.lang.String name)
           
static java.util.List<Role> getAllNoSystemRoles()
           
static java.util.List<Role> getAllRoles()
           
static Role getCMSAdminRole()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicRoleFactory

public PublicRoleFactory()
Method Detail

addRoleToUser

public static void addRoleToUser(java.lang.String roleId,
                                 User user)

findRoleByName

public static Role findRoleByName(java.lang.String name)

getCMSAdminRole

public static Role getCMSAdminRole()
                            throws java.lang.Exception
Throws:
java.lang.Exception

containsRole

public static boolean containsRole(Role[] roles,
                                   Role role)

getAllNoSystemRoles

public static java.util.List<Role> getAllNoSystemRoles()

getAllRoles

public static java.util.List<Role> getAllRoles()


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.