com.liferay.portal.service.impl
Class LayoutCache

java.lang.Object
  extended bycom.liferay.portal.service.impl.LayoutCache

public class LayoutCache
extends java.lang.Object

View Source

Author:
Charles May

Field Summary
protected  java.util.Map entityGroupIdMap
           
protected  java.util.Map entityMapMap
           
protected  java.util.Map groupRolesMap
           
protected  java.util.Map groupUsersMap
           
protected  java.util.Map resourcesMap
           
protected  java.util.Map rolesMap
           
protected  java.util.Map userRolesMap
           
protected  java.util.Map usersMap
           
 
Constructor Summary
LayoutCache()
           
 
Method Summary
protected  long getEntityGroupId(long companyId, java.lang.String entityName, java.lang.String name)
           
protected  java.util.Map getEntityMap(long companyId, java.lang.String entityName)
           
protected  java.util.List getGroupRoles(long groupId)
           
protected  java.util.List getGroupUsers(long groupId)
           
protected  com.liferay.portal.model.Resource getResource(long companyId, long groupId, java.lang.String resourceName, int scope, java.lang.String resourcePrimKey, boolean portletActions)
           
protected  com.liferay.portal.model.Role getRole(long companyId, java.lang.String roleName)
           
protected  com.liferay.portal.model.User getUser(long companyId, long groupId, java.lang.String emailAddress)
           
protected  java.util.List getUserRoles(long userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityGroupIdMap

protected java.util.Map entityGroupIdMap

entityMapMap

protected java.util.Map entityMapMap

groupRolesMap

protected java.util.Map groupRolesMap

groupUsersMap

protected java.util.Map groupUsersMap

resourcesMap

protected java.util.Map resourcesMap

rolesMap

protected java.util.Map rolesMap

userRolesMap

protected java.util.Map userRolesMap

usersMap

protected java.util.Map usersMap
Constructor Detail

LayoutCache

public LayoutCache()
Method Detail

getEntityGroupId

protected long getEntityGroupId(long companyId,
                                java.lang.String entityName,
                                java.lang.String name)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEntityMap

protected java.util.Map getEntityMap(long companyId,
                                     java.lang.String entityName)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupRoles

protected java.util.List getGroupRoles(long groupId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupUsers

protected java.util.List getGroupUsers(long groupId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getResource

protected com.liferay.portal.model.Resource getResource(long companyId,
                                                        long groupId,
                                                        java.lang.String resourceName,
                                                        int scope,
                                                        java.lang.String resourcePrimKey,
                                                        boolean portletActions)
                                                 throws com.liferay.portal.PortalException,
                                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getRole

protected com.liferay.portal.model.Role getRole(long companyId,
                                                java.lang.String roleName)
                                         throws com.liferay.portal.PortalException,
                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUser

protected com.liferay.portal.model.User getUser(long companyId,
                                                long groupId,
                                                java.lang.String emailAddress)
                                         throws com.liferay.portal.PortalException,
                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserRoles

protected java.util.List getUserRoles(long userId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException