com.dotmarketing.cms.factories
Class PublicRoleFactory

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

public class PublicRoleFactory
extends com.liferay.portal.ejb.RoleUtil

Author:
David

Field Summary
 
Fields inherited from class com.liferay.portal.ejb.RoleUtil
LISTENER, PERSISTENCE
 
Constructor Summary
PublicRoleFactory()
           
 
Method Summary
static void addRoleToUser(java.lang.String roleId, com.liferay.portal.model.User user)
           
static boolean containsRole(com.liferay.portal.model.Role[] roles, com.liferay.portal.model.Role role)
           
static com.liferay.portal.model.Role findRoleByName(java.lang.String name)
           
static java.util.List<com.liferay.portal.model.Role> getAllNoSystemRoles()
           
static java.util.List<com.liferay.portal.model.Role> getAllRoles()
           
static com.liferay.portal.model.Role getCMSAdminRole()
           
static int getCountRolesWithNameLike(java.lang.String name)
          Deprecated.  
static com.liferay.portal.model.Role getRoleById(java.lang.String roleId)
           
static java.util.List<com.liferay.portal.model.Role> getRolesWithNameLike(java.lang.String name)
          Deprecated.  
static java.util.List<com.liferay.portal.model.Role> getRolesWithNameLike(java.lang.String filter, int start, int limit)
           
static com.liferay.portal.model.Role saveRole(com.liferay.portal.model.Role r)
           
 
Methods inherited from class com.liferay.portal.ejb.RoleUtil
addGroup, addGroup, addGroups, addGroups, addUser, addUser, addUsers, addUsers, clearGroups, clearUsers, containsGroup, containsGroup, containsUser, containsUser, countByC_N, countByCompanyId, create, findAll, findByC_N, findByCompanyId_First, findByCompanyId_Last, findByCompanyId_PrevAndNext, findByCompanyId, findByCompanyId, findByCompanyId, findByPrimaryKey, getGroups, getGroups, getGroups, getGroupsSize, getUsers, getUsers, getUsers, getUsersSize, remove, removeByC_N, removeByCompanyId, removeGroup, removeGroup, removeGroups, removeGroups, removeUser, removeUser, removeUsers, removeUsers, setGroups, setGroups, setUsers, setUsers, update
 
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

getRoleById

public static com.liferay.portal.model.Role getRoleById(java.lang.String roleId)
                                                 throws com.liferay.portal.NoSuchRoleException,
                                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.NoSuchRoleException
com.liferay.portal.SystemException

addRoleToUser

public static void addRoleToUser(java.lang.String roleId,
                                 com.liferay.portal.model.User user)

findRoleByName

public static com.liferay.portal.model.Role findRoleByName(java.lang.String name)

getCMSAdminRole

public static com.liferay.portal.model.Role getCMSAdminRole()
                                                     throws DotDataException
Throws:
DotDataException

containsRole

public static boolean containsRole(com.liferay.portal.model.Role[] roles,
                                   com.liferay.portal.model.Role role)

getAllNoSystemRoles

public static java.util.List<com.liferay.portal.model.Role> getAllNoSystemRoles()

getAllRoles

public static java.util.List<com.liferay.portal.model.Role> getAllRoles()

getRolesWithNameLike

public static java.util.List<com.liferay.portal.model.Role> getRolesWithNameLike(java.lang.String name)
                                                                          throws com.liferay.portal.NoSuchRoleException,
                                                                                 com.liferay.portal.SystemException
Deprecated. 

Parameters:
name -
Returns:
Throws:
com.liferay.portal.NoSuchRoleException
com.liferay.portal.SystemException

getCountRolesWithNameLike

public static int getCountRolesWithNameLike(java.lang.String name)
                                     throws com.liferay.portal.NoSuchRoleException,
                                            com.liferay.portal.SystemException
Deprecated. 

Parameters:
name - to filter
Returns:
Throws:
com.liferay.portal.NoSuchRoleException
com.liferay.portal.SystemException

getRolesWithNameLike

public static java.util.List<com.liferay.portal.model.Role> getRolesWithNameLike(java.lang.String filter,
                                                                                 int start,
                                                                                 int limit)
                                                                          throws com.liferay.portal.NoSuchRoleException,
                                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.NoSuchRoleException
com.liferay.portal.SystemException

saveRole

public static com.liferay.portal.model.Role saveRole(com.liferay.portal.model.Role r)


Copyright © 2009 Dotmarketing, Inc. All Rights Reserved.