Liferay 7.0-ce-m6

com.liferay.portlet.rolesadmin.lar
Class RoleStagedModelDataHandler

java.lang.Object
  extended by com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler<Role>
      extended by com.liferay.portlet.rolesadmin.lar.RoleStagedModelDataHandler
All Implemented Interfaces:
StagedModelDataHandler<Role>

public class RoleStagedModelDataHandler
extends BaseStagedModelDataHandler<Role>


Field Summary
static String[] CLASS_NAMES
           
 
Constructor Summary
RoleStagedModelDataHandler()
           
 
Method Summary
protected  void deleteRolePermissions(PortletDataContext portletDataContext, Role importedRole)
           
 void deleteStagedModel(Role role)
           
 void deleteStagedModel(String uuid, long groupId, String className, String extraData)
           
protected  void doExportStagedModel(PortletDataContext portletDataContext, Role role)
           
protected  void doImportStagedModel(PortletDataContext portletDataContext, Role role)
           
 List<Role> fetchStagedModelsByUuidAndCompanyId(String uuid, long companyId)
           
 String[] getClassNames()
           
 String getDisplayName(Role role)
           
protected  List<ResourceTypePermission> getResourceTypePermissions(PortletDataContext portletDataContext, Role importedRole)
           
protected  void importResourceBlock(PortletDataContext portletDataContext, Role importedRole, Permission permission)
           
protected  void importResourcePermissions(PortletDataContext portletDataContext, Role importedRole, Permission permission)
           
 
Methods inherited from class com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler
countStagedModel, doImportMissingReference, doRestoreStagedModel, exportAssetCategories, exportAssetTags, exportComments, exportRatings, exportStagedModel, fetchMissingReference, fetchStagedModelByUuidAndGroupId, getExportableStatuses, getProcessFlag, getReferenceAttributes, importAssetCategories, importAssetTags, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, isStagedModelInTrash, restoreStagedModel, validateExport, validateMissingGroupReference, validateMissingReference, validateReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAMES

public static final String[] CLASS_NAMES
Constructor Detail

RoleStagedModelDataHandler

public RoleStagedModelDataHandler()
Method Detail

deleteStagedModel

public void deleteStagedModel(Role role)
                       throws PortalException
Throws:
PortalException

deleteStagedModel

public void deleteStagedModel(String uuid,
                              long groupId,
                              String className,
                              String extraData)
                       throws PortalException
Specified by:
deleteStagedModel in interface StagedModelDataHandler<Role>
Specified by:
deleteStagedModel in class BaseStagedModelDataHandler<Role>
Throws:
PortalException

fetchStagedModelsByUuidAndCompanyId

public List<Role> fetchStagedModelsByUuidAndCompanyId(String uuid,
                                                      long companyId)
Specified by:
fetchStagedModelsByUuidAndCompanyId in interface StagedModelDataHandler<Role>
Specified by:
fetchStagedModelsByUuidAndCompanyId in class BaseStagedModelDataHandler<Role>

getClassNames

public String[] getClassNames()
Specified by:
getClassNames in interface StagedModelDataHandler<Role>
Specified by:
getClassNames in class BaseStagedModelDataHandler<Role>

getDisplayName

public String getDisplayName(Role role)
Specified by:
getDisplayName in interface StagedModelDataHandler<Role>
Overrides:
getDisplayName in class BaseStagedModelDataHandler<Role>

deleteRolePermissions

protected void deleteRolePermissions(PortletDataContext portletDataContext,
                                     Role importedRole)

doExportStagedModel

protected void doExportStagedModel(PortletDataContext portletDataContext,
                                   Role role)
                            throws Exception
Specified by:
doExportStagedModel in class BaseStagedModelDataHandler<Role>
Throws:
Exception

doImportStagedModel

protected void doImportStagedModel(PortletDataContext portletDataContext,
                                   Role role)
                            throws Exception
Specified by:
doImportStagedModel in class BaseStagedModelDataHandler<Role>
Throws:
Exception

getResourceTypePermissions

protected List<ResourceTypePermission> getResourceTypePermissions(PortletDataContext portletDataContext,
                                                                  Role importedRole)

importResourceBlock

protected void importResourceBlock(PortletDataContext portletDataContext,
                                   Role importedRole,
                                   Permission permission)
                            throws PortalException
Throws:
PortalException

importResourcePermissions

protected void importResourcePermissions(PortletDataContext portletDataContext,
                                         Role importedRole,
                                         Permission permission)
                                  throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m6