|
Liferay 6.2.0-ce-rc2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.lar.PortletDataContextImpl
public class PortletDataContextImpl
Holds context information that is used during exporting and importing portlet data.
| Field Summary |
|---|
| Fields inherited from interface com.liferay.portal.kernel.lar.PortletDataContext |
|---|
REFERENCE_TYPE_CHILD, REFERENCE_TYPE_DEPENDENCY, REFERENCE_TYPE_DEPENDENCY_DISPOSABLE, REFERENCE_TYPE_EMBEDDED, REFERENCE_TYPE_PARENT, REFERENCE_TYPE_STRONG, REFERENCE_TYPE_WEAK, ROOT_PATH_GROUPS, ROOT_PATH_LAYOUTS, ROOT_PATH_PORTLETS |
| Constructor Summary | |
|---|---|
PortletDataContextImpl()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletDataContextImpl()
| Method Detail |
|---|
public void addAssetCategories(Class<?> clazz,
long classPK)
throws SystemException
addAssetCategories in interface PortletDataContextSystemException
public void addAssetCategories(String className,
long classPK,
long[] assetCategoryIds)
addAssetCategories in interface PortletDataContext
public void addAssetLinks(Class<?> clazz,
long classPK)
throws SystemException
SystemException
public void addAssetTags(Class<?> clazz,
long classPK)
throws SystemException
addAssetTags in interface PortletDataContextSystemException
public void addAssetTags(String className,
long classPK,
String[] assetTagNames)
addAssetTags in interface PortletDataContext
public void addClassedModel(Element element,
String path,
ClassedModel classedModel)
throws PortalException,
SystemException
addClassedModel in interface PortletDataContextPortalException
SystemException
public void addClassedModel(Element element,
String path,
ClassedModel classedModel,
Class<?> clazz)
throws PortalException,
SystemException
addClassedModel in interface PortletDataContextPortalException
SystemException
public void addClassedModel(Element element,
String path,
ClassedModel classedModel,
Class<?> clazz,
String namespace)
throws PortalException,
SystemException
addClassedModel(Element,
String, ClassedModel, Class)
addClassedModel in interface PortletDataContextPortalException
SystemException
public void addClassedModel(Element element,
String path,
ClassedModel classedModel,
String namespace)
throws PortalException,
SystemException
addClassedModel(Element,
String, ClassedModel)
addClassedModel in interface PortletDataContextPortalException
SystemException
public void addComments(Class<?> clazz,
long classPK)
throws SystemException
addComments in interface PortletDataContextSystemException
public void addComments(String className,
long classPK,
List<MBMessage> messages)
addComments in interface PortletDataContext
public void addDateRangeCriteria(DynamicQuery dynamicQuery,
String modifiedDatePropertyName)
addDateRangeCriteria in interface PortletDataContextisWithinDateRange(Date)public void addDeletionSystemEventStagedModelTypes(StagedModelType... stagedModelTypes)
addDeletionSystemEventStagedModelTypes in interface PortletDataContext
public void addExpando(Element element,
String path,
ClassedModel classedModel)
throws PortalException,
SystemException
addExpando in interface PortletDataContextPortalException
SystemException
public void addLocks(Class<?> clazz,
String key)
throws PortalException,
SystemException
addLocks in interface PortletDataContextPortalException
SystemException
public void addLocks(String className,
String key,
Lock lock)
addLocks in interface PortletDataContext
public Element addMissingReferenceElement(String referrerPortletId,
ClassedModel classedModel)
addMissingReferenceElement in interface PortletDataContext
public void addPermissions(Class<?> clazz,
long classPK)
throws PortalException,
SystemException
addPermissions in interface PortletDataContextPortalException
SystemException
public void addPermissions(String resourceName,
long resourcePK)
throws PortalException,
SystemException
addPermissions in interface PortletDataContextPortalException
SystemException
public void addPermissions(String resourceName,
long resourcePK,
List<KeyValuePair> permissions)
addPermissions in interface PortletDataContext
public void addPortalPermissions()
throws PortalException,
SystemException
addPortalPermissions in interface PortletDataContextPortalException
SystemException
public void addPortletPermissions(String resourceName)
throws PortalException,
SystemException
addPortletPermissions in interface PortletDataContextPortalException
SystemException
public boolean addPrimaryKey(Class<?> clazz,
String primaryKey)
addPrimaryKey in interface PortletDataContext
public void addRatingsEntries(Class<?> clazz,
long classPK)
throws SystemException
addRatingsEntries in interface PortletDataContextSystemException
public void addRatingsEntries(String className,
long classPK,
List<RatingsEntry> ratingsEntries)
addRatingsEntries in interface PortletDataContext
public Element addReferenceElement(ClassedModel referrerClassedModel,
Element element,
ClassedModel classedModel,
Class<?> clazz,
String referenceType,
boolean missing)
addReferenceElement in interface PortletDataContext
public Element addReferenceElement(ClassedModel referrerClassedModel,
Element element,
ClassedModel classedModel,
String referenceType,
boolean missing)
addReferenceElement in interface PortletDataContext
public Element addReferenceElement(ClassedModel referrerClassedModel,
Element element,
ClassedModel classedModel,
String binPath,
String referenceType,
boolean missing)
addReferenceElement in interface PortletDataContext
public Element addReferenceElement(ClassedModel referrerClassedModel,
Element element,
ClassedModel classedModel,
String className,
String binPath,
String referenceType,
boolean missing)
addReferenceElement in interface PortletDataContext
public boolean addScopedPrimaryKey(Class<?> clazz,
String primaryKey)
addScopedPrimaryKey in interface PortletDataContext
public void addZipEntry(String path,
byte[] bytes)
throws SystemException
addZipEntry in interface PortletDataContextSystemException
public void addZipEntry(String path,
InputStream is)
throws SystemException
addZipEntry in interface PortletDataContextSystemException
public void addZipEntry(String path,
Object object)
throws SystemException
addZipEntry in interface PortletDataContextSystemException
public void addZipEntry(String path,
String s)
throws SystemException
addZipEntry in interface PortletDataContextSystemException
public void addZipEntry(String path,
StringBuilder sb)
throws SystemException
addZipEntry in interface PortletDataContextSystemExceptionpublic void clearScopedPrimaryKeys()
clearScopedPrimaryKeys in interface PortletDataContext
public ServiceContext createServiceContext(Element element,
ClassedModel classedModel)
createServiceContext in interface PortletDataContext
public ServiceContext createServiceContext(Element element,
ClassedModel classedModel,
String namespace)
createServiceContext(Element, ClassedModel)
createServiceContext in interface PortletDataContextpublic ServiceContext createServiceContext(StagedModel stagedModel)
createServiceContext in interface PortletDataContext
public ServiceContext createServiceContext(StagedModel stagedModel,
Class<?> clazz)
createServiceContext in interface PortletDataContext
public ServiceContext createServiceContext(String path,
ClassedModel classedModel)
createServiceContext in interface PortletDataContext
public ServiceContext createServiceContext(String path,
ClassedModel classedModel,
String namespace)
createServiceContext(String,
ClassedModel)
createServiceContext in interface PortletDataContextpublic Object fromXML(byte[] bytes)
fromXML in interface PortletDataContextpublic Object fromXML(String xml)
fromXML in interface PortletDataContext
public long[] getAssetCategoryIds(Class<?> clazz,
long classPK)
getAssetCategoryIds in interface PortletDataContextpublic Map<String,long[]> getAssetCategoryIdsMap()
getAssetCategoryIdsMap in interface PortletDataContextpublic Map<String,String[]> getAssetCategoryUuidsMap()
getAssetCategoryUuidsMap in interface PortletDataContextpublic Map<String,List<AssetLink>> getAssetLinksMap()
getAssetLinksMap in interface PortletDataContext
public String[] getAssetTagNames(Class<?> clazz,
long classPK)
getAssetTagNames in interface PortletDataContext
public String[] getAssetTagNames(String className,
long classPK)
getAssetTagNames in interface PortletDataContextpublic Map<String,String[]> getAssetTagNamesMap()
getAssetTagNamesMap in interface PortletDataContext
public boolean getBooleanParameter(String namespace,
String name)
getBooleanParameter in interface PortletDataContext
public boolean getBooleanParameter(String namespace,
String name,
boolean useDefaultValue)
getBooleanParameter in interface PortletDataContextpublic ClassLoader getClassLoader()
getClassLoader in interface PortletDataContextpublic Map<String,List<MBMessage>> getComments()
getComments in interface PortletDataContextpublic long getCompanyGroupId()
getCompanyGroupId in interface PortletDataContextpublic long getCompanyId()
getCompanyId in interface PortletDataContextpublic String getDataStrategy()
getDataStrategy in interface PortletDataContextpublic DateRange getDateRange()
getDateRange in interface PortletDataContextpublic Set<StagedModelType> getDeletionSystemEventStagedModelTypes()
getDeletionSystemEventStagedModelTypes in interface PortletDataContextpublic Date getEndDate()
getEndDate in interface PortletDataContextpublic Map<String,List<ExpandoColumn>> getExpandoColumns()
getExpandoColumns in interface PortletDataContextpublic Element getExportDataElement(ClassedModel classedModel)
getExportDataElement in interface PortletDataContext
public Element getExportDataElement(ClassedModel classedModel,
Class<?> modelClass)
getExportDataElement in interface PortletDataContextpublic Element getExportDataGroupElement(Class<? extends StagedModel> clazz)
getExportDataGroupElement in interface PortletDataContextpublic Element getExportDataRootElement()
getExportDataRootElement in interface PortletDataContextpublic long getGroupId()
getGroupId in interface PortletDataContext
public Element getImportDataElement(String name,
String attribute,
String value)
getImportDataElement in interface PortletDataContextpublic Element getImportDataGroupElement(Class<? extends StagedModel> clazz)
getImportDataGroupElement in interface PortletDataContextpublic Element getImportDataRootElement()
getImportDataRootElement in interface PortletDataContextpublic Element getImportDataStagedModelElement(StagedModel stagedModel)
getImportDataStagedModelElement in interface PortletDataContextpublic String getLayoutPath(long plid)
getLayoutPath in interface PortletDataContextpublic Map<String,Lock> getLocks()
getLocks in interface PortletDataContextpublic ManifestSummary getManifestSummary()
getManifestSummary in interface PortletDataContextpublic Element getMissingReferencesElement()
getMissingReferencesElement in interface PortletDataContextpublic List<Layout> getNewLayouts()
getNewLayouts in interface PortletDataContextpublic Map<?,?> getNewPrimaryKeysMap(Class<?> clazz)
getNewPrimaryKeysMap in interface PortletDataContextpublic Map<?,?> getNewPrimaryKeysMap(String className)
getNewPrimaryKeysMap in interface PortletDataContextpublic long getOldPlid()
getOldPlid in interface PortletDataContextpublic Map<String,String[]> getParameterMap()
getParameterMap in interface PortletDataContextpublic Map<String,List<KeyValuePair>> getPermissions()
getPermissions in interface PortletDataContextpublic long getPlid()
getPlid in interface PortletDataContextpublic String getPortletPath(String portletId)
getPortletPath in interface PortletDataContextpublic Set<String> getPrimaryKeys()
getPrimaryKeys in interface PortletDataContextpublic Map<String,List<RatingsEntry>> getRatingsEntries()
getRatingsEntries in interface PortletDataContext
public Element getReferenceDataElement(Element parentElement,
Class<?> clazz,
long classPk)
getReferenceDataElement in interface PortletDataContext
public Element getReferenceDataElement(Element parentElement,
Class<?> clazz,
long groupId,
String uuid)
getReferenceDataElement in interface PortletDataContext
public Element getReferenceDataElement(StagedModel parentStagedModel,
Class<?> clazz,
long classPk)
getReferenceDataElement in interface PortletDataContext
public Element getReferenceDataElement(StagedModel parentStagedModel,
Class<?> clazz,
long groupId,
String uuid)
getReferenceDataElement in interface PortletDataContext
public List<Element> getReferenceDataElements(Element parentElement,
Class<?> clazz)
getReferenceDataElements in interface PortletDataContext
public List<Element> getReferenceDataElements(Element parentElement,
Class<?> clazz,
String referenceType)
getReferenceDataElements in interface PortletDataContext
public List<Element> getReferenceDataElements(StagedModel parentStagedModel,
Class<?> clazz)
getReferenceDataElements in interface PortletDataContext
public List<Element> getReferenceDataElements(StagedModel parentStagedModel,
Class<?> clazz,
String referenceType)
getReferenceDataElements in interface PortletDataContext
public List<Element> getReferenceElements(StagedModel parentStagedModel,
Class<?> clazz)
getReferenceElements in interface PortletDataContextpublic String getRootPath()
getRootPath in interface PortletDataContextpublic Set<String> getScopedPrimaryKeys()
getScopedPrimaryKeys in interface PortletDataContextpublic long getScopeGroupId()
getScopeGroupId in interface PortletDataContextpublic String getScopeLayoutUuid()
getScopeLayoutUuid in interface PortletDataContextpublic String getScopeType()
getScopeType in interface PortletDataContextpublic long getSourceCompanyGroupId()
getSourceCompanyGroupId in interface PortletDataContextpublic long getSourceCompanyId()
getSourceCompanyId in interface PortletDataContextpublic long getSourceGroupId()
getSourceGroupId in interface PortletDataContextpublic String getSourceLayoutPath(long layoutId)
getSourceLayoutPath in interface PortletDataContextpublic String getSourcePortletPath(String portletId)
getSourcePortletPath in interface PortletDataContextpublic String getSourceRootPath()
getSourceRootPath in interface PortletDataContextpublic long getSourceUserPersonalSiteGroupId()
getSourceUserPersonalSiteGroupId in interface PortletDataContextpublic Date getStartDate()
getStartDate in interface PortletDataContextpublic long getUserId(String userUuid)
getUserId in interface PortletDataContextpublic UserIdStrategy getUserIdStrategy()
getUserIdStrategy in interface PortletDataContextpublic long getUserPersonalSiteGroupId()
getUserPersonalSiteGroupId in interface PortletDataContextpublic List<String> getZipEntries()
getZipEntries in interface PortletDataContextpublic byte[] getZipEntryAsByteArray(String path)
getZipEntryAsByteArray in interface PortletDataContextpublic InputStream getZipEntryAsInputStream(String path)
getZipEntryAsInputStream in interface PortletDataContext
public Object getZipEntryAsObject(Element element,
String path)
getZipEntryAsObject in interface PortletDataContextpublic Object getZipEntryAsObject(String path)
getZipEntryAsObject in interface PortletDataContextpublic String getZipEntryAsString(String path)
getZipEntryAsString in interface PortletDataContextpublic List<String> getZipFolderEntries()
getZipFolderEntries in interface PortletDataContextpublic List<String> getZipFolderEntries(String path)
getZipFolderEntries in interface PortletDataContextpublic ZipReader getZipReader()
getZipReader in interface PortletDataContextpublic ZipWriter getZipWriter()
getZipWriter in interface PortletDataContextpublic boolean hasDateRange()
hasDateRange in interface PortletDataContextpublic boolean hasNotUniquePerLayout(String dataKey)
hasNotUniquePerLayout in interface PortletDataContext
public boolean hasPrimaryKey(Class<?> clazz,
String primaryKey)
hasPrimaryKey in interface PortletDataContext
public boolean hasScopedPrimaryKey(Class<?> clazz,
String primaryKey)
hasScopedPrimaryKey in interface PortletDataContext
public void importClassedModel(ClassedModel classedModel,
ClassedModel newClassedModel)
throws PortalException,
SystemException
importClassedModel in interface PortletDataContextPortalException
SystemException
public void importClassedModel(ClassedModel classedModel,
ClassedModel newClassedModel,
Class<?> clazz)
throws PortalException,
SystemException
importClassedModel in interface PortletDataContextPortalException
SystemException
public void importClassedModel(ClassedModel classedModel,
ClassedModel newClassedModel,
Class<?> clazz,
String namespace)
throws PortalException,
SystemException
importClassedModel(ClassedModel, ClassedModel, Class)
importClassedModel in interface PortletDataContextPortalException
SystemException
public void importClassedModel(ClassedModel classedModel,
ClassedModel newClassedModel,
String namespace)
throws PortalException,
SystemException
importClassedModel(ClassedModel, ClassedModel)
importClassedModel in interface PortletDataContextPortalException
SystemException
public void importComments(Class<?> clazz,
long classPK,
long newClassPK,
long groupId)
throws PortalException,
SystemException
importComments in interface PortletDataContextPortalException
SystemException
public void importLocks(Class<?> clazz,
String key,
String newKey)
throws PortalException,
SystemException
importLocks in interface PortletDataContextPortalException
SystemException
public void importPermissions(Class<?> clazz,
long classPK,
long newClassPK)
throws PortalException,
SystemException
importPermissions in interface PortletDataContextPortalException
SystemException
public void importPermissions(String resourceName,
long resourcePK,
long newResourcePK)
throws PortalException,
SystemException
importPermissions in interface PortletDataContextPortalException
SystemException
public void importPortalPermissions()
throws PortalException,
SystemException
importPortalPermissions in interface PortletDataContextPortalException
SystemException
public void importPortletPermissions(String resourceName)
throws PortalException,
SystemException
importPortletPermissions in interface PortletDataContextPortalException
SystemException
public void importRatingsEntries(Class<?> clazz,
long classPK,
long newClassPK)
throws PortalException,
SystemException
importRatingsEntries in interface PortletDataContextPortalException
SystemExceptionpublic boolean isCompanyStagedGroupedModel(StagedGroupedModel stagedGroupedModel)
isCompanyStagedGroupedModel in interface PortletDataContextpublic boolean isDataStrategyMirror()
isDataStrategyMirror in interface PortletDataContextpublic boolean isDataStrategyMirrorWithOverwriting()
isDataStrategyMirrorWithOverwriting in interface PortletDataContext
public boolean isModelCounted(String className,
long classPK)
isModelCounted in interface PortletDataContextpublic boolean isPathExportedInScope(String path)
isPathExportedInScope in interface PortletDataContextpublic boolean isPathNotExportedInScope(String path)
isPathNotExportedInScope in interface PortletDataContextpublic boolean isPathNotProcessed(String path)
isPathNotProcessed in interface PortletDataContextpublic boolean isPathProcessed(String path)
isPathProcessed in interface PortletDataContextpublic boolean isPerformDirectBinaryImport()
isPerformDirectBinaryImport in interface PortletDataContextpublic boolean isPrivateLayout()
isPrivateLayout in interface PortletDataContextpublic boolean isStagedModelCounted(StagedModel stagedModel)
isStagedModelCounted in interface PortletDataContextpublic boolean isWithinDateRange(Date modifiedDate)
isWithinDateRange in interface PortletDataContextaddDateRangeCriteria(DynamicQuery, String)public void putNotUniquePerLayout(String dataKey)
putNotUniquePerLayout in interface PortletDataContextpublic void setClassLoader(ClassLoader classLoader)
setClassLoader in interface PortletDataContextpublic void setCompanyGroupId(long companyGroupId)
setCompanyGroupId in interface PortletDataContextpublic void setCompanyId(long companyId)
setCompanyId in interface PortletDataContextpublic void setDataStrategy(String dataStrategy)
setDataStrategy in interface PortletDataContextpublic void setEndDate(Date endDate)
setEndDate in interface PortletDataContextpublic void setExportDataRootElement(Element exportDataRootElement)
setExportDataRootElement in interface PortletDataContextpublic void setGroupId(long groupId)
setGroupId in interface PortletDataContextpublic void setImportDataRootElement(Element importDataRootElement)
setImportDataRootElement in interface PortletDataContextpublic void setMissingReferencesElement(Element missingReferencesElement)
setMissingReferencesElement in interface PortletDataContextpublic void setNewLayouts(List<Layout> newLayouts)
setNewLayouts in interface PortletDataContextpublic void setOldPlid(long oldPlid)
setOldPlid in interface PortletDataContextpublic void setParameterMap(Map<String,String[]> parameterMap)
setParameterMap in interface PortletDataContextpublic void setPlid(long plid)
setPlid in interface PortletDataContextpublic void setPortetDataContextListener(PortletDataContextListener portletDataContextListener)
setPortetDataContextListener in interface PortletDataContextpublic void setPrivateLayout(boolean privateLayout)
setPrivateLayout in interface PortletDataContextpublic void setScopeGroupId(long scopeGroupId)
setScopeGroupId in interface PortletDataContextpublic void setScopeLayoutUuid(String scopeLayoutUuid)
setScopeLayoutUuid in interface PortletDataContextpublic void setScopeType(String scopeType)
setScopeType in interface PortletDataContextpublic void setSourceCompanyGroupId(long sourceCompanyGroupId)
setSourceCompanyGroupId in interface PortletDataContextpublic void setSourceCompanyId(long sourceCompanyId)
setSourceCompanyId in interface PortletDataContextpublic void setSourceGroupId(long sourceGroupId)
setSourceGroupId in interface PortletDataContextpublic void setSourceUserPersonalSiteGroupId(long sourceUserPersonalSiteGroupId)
setSourceUserPersonalSiteGroupId in interface PortletDataContextpublic void setStartDate(Date startDate)
setStartDate in interface PortletDataContextpublic void setUserIdStrategy(UserIdStrategy userIdStrategy)
setUserIdStrategy in interface PortletDataContextpublic void setUserPersonalSiteGroupId(long userPersonalSiteGroupId)
setUserPersonalSiteGroupId in interface PortletDataContextpublic void setZipReader(ZipReader zipReader)
setZipReader in interface PortletDataContextpublic void setZipWriter(ZipWriter zipWriter)
setZipWriter in interface PortletDataContextpublic String toXML(Object object)
toXML in interface PortletDataContext
protected void addExpando(Element element,
String path,
ClassedModel classedModel,
Class<?> clazz)
throws PortalException,
SystemException
PortalException
SystemException
protected ServiceContext createServiceContext(Element element,
String path,
ClassedModel classedModel,
Class<?> clazz)
protected Element doAddReferenceElement(ClassedModel referrerClassedModel,
Element element,
ClassedModel classedModel,
String className,
String binPath,
String referenceType,
boolean missing)
protected Map<Long,Set<String>> getActionIds(long companyId,
long[] roleIds,
String className,
long primKey,
List<String> actionIds)
throws PortalException,
SystemException
PortalException
SystemExceptionprotected long getClassPK(ClassedModel classedModel)
protected Element getDataElement(Element parentElement,
String attribute,
String value)
protected String getExpandoPath(String path)
protected Element getExportDataGroupElement(String name)
protected Element getImportDataGroupElement(String name)
protected Element getMissingReferenceElement(ClassedModel classedModel)
protected String getPrimaryKeyString(Class<?> clazz,
long classPK)
protected String getPrimaryKeyString(Class<?> clazz,
String primaryKey)
protected String getPrimaryKeyString(String className,
long classPK)
protected String getPrimaryKeyString(String className,
String primaryKey)
protected List<Element> getReferenceDataElements(List<Element> referenceElements,
Class<?> clazz)
protected List<Element> getReferenceElements(Element parentElement,
Class<?> clazz,
long groupId,
String uuid,
long classPk,
String referenceType)
protected List<Element> getReferenceElements(StagedModel parentStagedModel,
Class<?> clazz,
String referenceType)
protected String getReferenceKey(ClassedModel classedModel)
protected long getUserId(AuditedModel auditedModel)
protected void initXStream()
protected boolean isResourceMain(ClassedModel classedModel)
|
Liferay 6.2.0-ce-rc2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||