Liferay 6.2-ce-ga5

com.liferay.portal.lar
Class PortletDataContextImpl

java.lang.Object
  extended by com.liferay.portal.lar.PortletDataContextImpl
All Implemented Interfaces:
PortletDataContext, Serializable

public class PortletDataContextImpl
extends Object
implements PortletDataContext

Holds context information that is used during exporting and importing portlet data.

See Also:
Serialized Form

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()
           
 
Method Summary
 void addAssetCategories(Class<?> clazz, long classPK)
           
 void addAssetCategories(String className, long classPK, long[] assetCategoryIds)
           
 void addAssetLinks(Class<?> clazz, long classPK)
           
 void addAssetTags(Class<?> clazz, long classPK)
           
 void addAssetTags(String className, long classPK, String[] assetTagNames)
           
 void addClassedModel(Element element, String path, ClassedModel classedModel)
           
 void addClassedModel(Element element, String path, ClassedModel classedModel, Class<?> clazz)
           
 void addClassedModel(Element element, String path, ClassedModel classedModel, Class<?> clazz, String namespace)
          Deprecated. As of 6.2.0, replaced by addClassedModel(Element, String, ClassedModel, Class)
 void addClassedModel(Element element, String path, ClassedModel classedModel, String namespace)
          Deprecated. As of 6.2.0, replaced by addClassedModel(Element, String, ClassedModel)
 void addComments(Class<?> clazz, long classPK)
           
 void addComments(String className, long classPK, List<MBMessage> messages)
           
 void addDateRangeCriteria(DynamicQuery dynamicQuery, String propertyName)
           
 void addDeletionSystemEventStagedModelTypes(StagedModelType... stagedModelTypes)
           
 void addExpando(Element element, String path, ClassedModel classedModel)
           
protected  void addExpando(Element element, String path, ClassedModel classedModel, Class<?> clazz)
           
 void addLocks(Class<?> clazz, String key)
           
 void addLocks(String className, String key, Lock lock)
           
 void addPermissions(Class<?> clazz, long classPK)
           
 void addPermissions(String resourceName, long resourcePK)
           
 void addPermissions(String resourceName, long resourcePK, List<KeyValuePair> permissions)
           
 void addPortalPermissions()
           
 void addPortletPermissions(String resourceName)
           
 boolean addPrimaryKey(Class<?> clazz, String primaryKey)
           
 void addRatingsEntries(Class<?> clazz, long classPK)
           
 void addRatingsEntries(String className, long classPK, List<RatingsEntry> ratingsEntries)
           
 Element addReferenceElement(ClassedModel referrerClassedModel, Element element, ClassedModel classedModel, Class<?> clazz, String referenceType, boolean missing)
          Deprecated. As of 7.0.0, with no direct replacement
 Element addReferenceElement(ClassedModel referrerClassedModel, Element element, ClassedModel classedModel, String referenceType, boolean missing)
           
 Element addReferenceElement(ClassedModel referrerClassedModel, Element element, ClassedModel classedModel, String binPath, String referenceType, boolean missing)
           
 Element addReferenceElement(ClassedModel referrerClassedModel, Element element, ClassedModel classedModel, String className, String binPath, String referenceType, boolean missing)
           
 boolean addScopedPrimaryKey(Class<?> clazz, String primaryKey)
           
 void addZipEntry(String path, byte[] bytes)
           
 void addZipEntry(String path, InputStream is)
           
 void addZipEntry(String path, Object object)
           
 void addZipEntry(String path, String s)
           
 void addZipEntry(String path, StringBuilder sb)
           
 void cleanUpMissingReferences(ClassedModel classedModel)
           
 void clearScopedPrimaryKeys()
           
 ServiceContext createServiceContext(Element element, ClassedModel classedModel)
           
 ServiceContext createServiceContext(Element element, ClassedModel classedModel, String namespace)
          Deprecated. As of 6.2.0, replaced by createServiceContext(Element, ClassedModel)
protected  ServiceContext createServiceContext(Element element, String path, ClassedModel classedModel, Class<?> clazz)
           
 ServiceContext createServiceContext(StagedModel stagedModel)
           
 ServiceContext createServiceContext(StagedModel stagedModel, Class<?> clazz)
           
 ServiceContext createServiceContext(String path, ClassedModel classedModel)
           
 ServiceContext createServiceContext(String path, ClassedModel classedModel, String namespace)
          Deprecated. As of 6.2.0, replaced by createServiceContext(String, ClassedModel)
protected  Element doAddReferenceElement(ClassedModel referrerClassedModel, Element element, ClassedModel classedModel, String className, String binPath, String referenceType, boolean missing)
           
 Object fromXML(byte[] bytes)
           
 Object fromXML(String xml)
           
protected  Map<Long,Set<String>> getActionIds(long companyId, long[] roleIds, String className, long primKey, List<String> actionIds)
           
 long[] getAssetCategoryIds(Class<?> clazz, long classPK)
           
 Map<String,long[]> getAssetCategoryIdsMap()
          Deprecated. As of 7.0.0
 Map<String,String[]> getAssetCategoryUuidsMap()
           
 Map<String,List<AssetLink>> getAssetLinksMap()
           
 String[] getAssetTagNames(Class<?> clazz, long classPK)
           
 String[] getAssetTagNames(String className, long classPK)
           
 Map<String,String[]> getAssetTagNamesMap()
           
 boolean getBooleanParameter(String namespace, String name)
           
 boolean getBooleanParameter(String namespace, String name, boolean useDefaultValue)
           
 ClassLoader getClassLoader()
           
protected  long getClassPK(ClassedModel classedModel)
           
 Map<String,List<MBMessage>> getComments()
           
 long getCompanyGroupId()
           
 long getCompanyId()
           
protected  Element getDataElement(Element parentElement, String attribute, String value)
           
 String getDataStrategy()
           
 DateRange getDateRange()
           
 Criterion getDateRangeCriteria(String propertyName)
           
 Set<StagedModelType> getDeletionSystemEventStagedModelTypes()
           
 Date getEndDate()
           
 Map<String,List<ExpandoColumn>> getExpandoColumns()
           
protected  String getExpandoPath(String path)
           
 Element getExportDataElement(ClassedModel classedModel)
           
 Element getExportDataElement(ClassedModel classedModel, Class<?> modelClass)
          Deprecated. As of 7.0.0, replaced by getExportDataElement(ClassedModel, String)
 Element getExportDataElement(ClassedModel classedModel, String modelClassSimpleName)
           
 Element getExportDataGroupElement(Class<? extends StagedModel> clazz)
           
protected  Element getExportDataGroupElement(String name)
           
 Element getExportDataRootElement()
           
 long getGroupId()
           
 Element getImportDataElement(StagedModel stagedModel)
           
 Element getImportDataElement(String name, String attribute, String value)
           
 Element getImportDataGroupElement(Class<? extends StagedModel> clazz)
           
protected  Element getImportDataGroupElement(String name)
           
 Element getImportDataRootElement()
           
 Element getImportDataStagedModelElement(StagedModel stagedModel)
           
 String getLayoutPath(long plid)
           
 Map<String,Lock> getLocks()
           
 ManifestSummary getManifestSummary()
           
protected  Element getMissingReferenceElement(ClassedModel classedModel)
           
 Element getMissingReferencesElement()
           
 List<Layout> getNewLayouts()
           
 Map<?,?> getNewPrimaryKeysMap(Class<?> clazz)
           
 Map<?,?> getNewPrimaryKeysMap(String className)
           
 Map<String,Map<?,?>> getNewPrimaryKeysMaps()
           
 long getOldPlid()
          Deprecated. As of 7.0.0
 Map<String,String[]> getParameterMap()
           
 Map<String,List<KeyValuePair>> getPermissions()
           
 long getPlid()
           
 String getPortletPath(String portletId)
           
 Set<String> getPrimaryKeys()
           
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)
           
 Map<String,List<RatingsEntry>> getRatingsEntries()
           
 Element getReferenceDataElement(Element parentElement, Class<?> clazz, long classPK)
           
 Element getReferenceDataElement(Element parentElement, Class<?> clazz, long groupId, String uuid)
           
 Element getReferenceDataElement(StagedModel parentStagedModel, Class<?> clazz, long classPK)
           
 Element getReferenceDataElement(StagedModel parentStagedModel, Class<?> clazz, long groupId, String uuid)
           
 List<Element> getReferenceDataElements(Element parentElement, Class<?> clazz)
          Deprecated. As of 7.0.0
 List<Element> getReferenceDataElements(Element parentElement, Class<?> clazz, String referenceType)
           
protected  List<Element> getReferenceDataElements(List<Element> referenceElements, Class<?> clazz)
           
 List<Element> getReferenceDataElements(StagedModel parentStagedModel, Class<?> clazz)
           
 List<Element> getReferenceDataElements(StagedModel parentStagedModel, Class<?> clazz, String referenceType)
           
 Element getReferenceElement(Element parentElement, Class<?> clazz, long groupId, String uuid, String referenceType)
           
 Element getReferenceElement(StagedModel parentStagedModel, Class<?> clazz, long classPK)
           
protected  List<Element> getReferenceElements(Element parentElement, Class<?> clazz, long groupId, String uuid, long classPK, String referenceType)
           
 List<Element> getReferenceElements(StagedModel parentStagedModel, Class<?> clazz)
           
protected  List<Element> getReferenceElements(StagedModel parentStagedModel, Class<?> clazz, long classPK, String referenceType)
           
protected  String getReferenceKey(ClassedModel classedModel)
           
protected  String getReferenceKey(String className, String classPK)
           
 String getRootPath()
           
 String getRootPortletId()
           
 Set<String> getScopedPrimaryKeys()
          Deprecated. As of 7.0.0
 long getScopeGroupId()
           
 String getScopeLayoutUuid()
           
 String getScopeType()
           
 long getSourceCompanyGroupId()
           
 long getSourceCompanyId()
           
 long getSourceGroupId()
           
 String getSourceLayoutPath(long layoutId)
           
 String getSourcePortletPath(String portletId)
           
 String getSourceRootPath()
           
 long getSourceUserPersonalSiteGroupId()
           
 Date getStartDate()
           
protected  long getUserId(AuditedModel auditedModel)
           
 long getUserId(String userUuid)
           
 UserIdStrategy getUserIdStrategy()
           
 long getUserPersonalSiteGroupId()
           
 List<String> getZipEntries()
          Deprecated. As of 7.0.0
 byte[] getZipEntryAsByteArray(String path)
           
 InputStream getZipEntryAsInputStream(String path)
           
 Object getZipEntryAsObject(Element element, String path)
           
 Object getZipEntryAsObject(String path)
           
 String getZipEntryAsString(String path)
           
 List<String> getZipFolderEntries()
          Deprecated. As of 7.0.0
 List<String> getZipFolderEntries(String path)
           
 ZipReader getZipReader()
           
 ZipWriter getZipWriter()
           
 boolean hasDateRange()
           
 boolean hasNotUniquePerLayout(String dataKey)
           
 boolean hasPrimaryKey(Class<?> clazz, String primaryKey)
           
 boolean hasScopedPrimaryKey(Class<?> clazz, String primaryKey)
           
 void importClassedModel(ClassedModel classedModel, ClassedModel newClassedModel)
           
 void importClassedModel(ClassedModel classedModel, ClassedModel newClassedModel, Class<?> clazz)
           
 void importClassedModel(ClassedModel classedModel, ClassedModel newClassedModel, Class<?> clazz, String namespace)
          Deprecated. As of 6.2.0, replaced by importClassedModel(ClassedModel, ClassedModel, Class)
 void importClassedModel(ClassedModel classedModel, ClassedModel newClassedModel, String namespace)
          Deprecated. As of 6.2.0, replaced by importClassedModel(ClassedModel, ClassedModel)
 void importComments(Class<?> clazz, long classPK, long newClassPK, long groupId)
           
 void importLocks(Class<?> clazz, String key, String newKey)
           
 void importPermissions(Class<?> clazz, long classPK, long newClassPK)
           
 void importPermissions(String resourceName, long resourcePK, long newResourcePK)
           
 void importPortalPermissions()
           
 void importPortletPermissions(String resourceName)
           
 void importRatingsEntries(Class<?> clazz, long classPK, long newClassPK)
           
protected  void initXStream()
           
 boolean isCompanyStagedGroupedModel(StagedGroupedModel stagedGroupedModel)
           
 boolean isDataStrategyMirror()
           
 boolean isDataStrategyMirrorWithOverwriting()
           
 boolean isInitialPublication()
           
 boolean isMissingReference(Element referenceElement)
           
 boolean isModelCounted(String className, long classPK)
           
 boolean isPathExportedInScope(String path)
           
 boolean isPathNotExportedInScope(String path)
          Deprecated. As of 7.0.0
 boolean isPathNotProcessed(String path)
           
 boolean isPathProcessed(String path)
           
 boolean isPerformDirectBinaryImport()
           
 boolean isPrivateLayout()
           
protected  boolean isResourceMain(ClassedModel classedModel)
           
 boolean isStagedModelCounted(StagedModel stagedModel)
           
 boolean isWithinDateRange(Date modifiedDate)
           
 void putNotUniquePerLayout(String dataKey)
           
 void setClassLoader(ClassLoader classLoader)
           
 void setCompanyGroupId(long companyGroupId)
           
 void setCompanyId(long companyId)
           
 void setDataStrategy(String dataStrategy)
           
 void setEndDate(Date endDate)
           
 void setExportDataRootElement(Element exportDataRootElement)
           
 void setGroupId(long groupId)
           
 void setImportDataRootElement(Element importDataRootElement)
           
 void setManifestSummary(ManifestSummary manifestSummary)
           
 void setMissingReferencesElement(Element missingReferencesElement)
           
 void setNewLayouts(List<Layout> newLayouts)
           
 void setNewPrimaryKeysMaps(Map<String,Map<?,?>> newPrimaryKeysMaps)
           
 void setOldPlid(long oldPlid)
           
 void setParameterMap(Map<String,String[]> parameterMap)
           
 void setPlid(long plid)
           
 void setPortetDataContextListener(PortletDataContextListener portletDataContextListener)
           
 void setPrivateLayout(boolean privateLayout)
           
 void setRootPortletId(String rootPortletId)
           
 void setScopeGroupId(long scopeGroupId)
           
 void setScopeLayoutUuid(String scopeLayoutUuid)
           
 void setScopeType(String scopeType)
           
 void setSourceCompanyGroupId(long sourceCompanyGroupId)
           
 void setSourceCompanyId(long sourceCompanyId)
           
 void setSourceGroupId(long sourceGroupId)
           
 void setSourceUserPersonalSiteGroupId(long sourceUserPersonalSiteGroupId)
           
 void setStartDate(Date startDate)
           
 void setUserIdStrategy(UserIdStrategy userIdStrategy)
           
 void setUserPersonalSiteGroupId(long userPersonalSiteGroupId)
           
 void setZipReader(ZipReader zipReader)
           
 void setZipWriter(ZipWriter zipWriter)
           
 String toXML(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletDataContextImpl

public PortletDataContextImpl()
Method Detail

addAssetCategories

public void addAssetCategories(Class<?> clazz,
                               long classPK)
                        throws SystemException
Specified by:
addAssetCategories in interface PortletDataContext
Throws:
SystemException

addAssetCategories

public void addAssetCategories(String className,
                               long classPK,
                               long[] assetCategoryIds)
Specified by:
addAssetCategories in interface PortletDataContext

addAssetLinks

public void addAssetLinks(Class<?> clazz,
                          long classPK)
                   throws SystemException
Throws:
SystemException

addAssetTags

public void addAssetTags(Class<?> clazz,
                         long classPK)
                  throws SystemException
Specified by:
addAssetTags in interface PortletDataContext
Throws:
SystemException

addAssetTags

public void addAssetTags(String className,
                         long classPK,
                         String[] assetTagNames)
Specified by:
addAssetTags in interface PortletDataContext

addClassedModel

public void addClassedModel(Element element,
                            String path,
                            ClassedModel classedModel)
                     throws PortalException,
                            SystemException
Specified by:
addClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

addClassedModel

public void addClassedModel(Element element,
                            String path,
                            ClassedModel classedModel,
                            Class<?> clazz)
                     throws PortalException,
                            SystemException
Specified by:
addClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

addClassedModel

public void addClassedModel(Element element,
                            String path,
                            ClassedModel classedModel,
                            Class<?> clazz,
                            String namespace)
                     throws PortalException,
                            SystemException
Deprecated. As of 6.2.0, replaced by addClassedModel(Element, String, ClassedModel, Class)

Specified by:
addClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

addClassedModel

public void addClassedModel(Element element,
                            String path,
                            ClassedModel classedModel,
                            String namespace)
                     throws PortalException,
                            SystemException
Deprecated. As of 6.2.0, replaced by addClassedModel(Element, String, ClassedModel)

Specified by:
addClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

addComments

public void addComments(Class<?> clazz,
                        long classPK)
                 throws SystemException
Specified by:
addComments in interface PortletDataContext
Throws:
SystemException

addComments

public void addComments(String className,
                        long classPK,
                        List<MBMessage> messages)
Specified by:
addComments in interface PortletDataContext

addDateRangeCriteria

public void addDateRangeCriteria(DynamicQuery dynamicQuery,
                                 String propertyName)
Specified by:
addDateRangeCriteria in interface PortletDataContext
See Also:
isWithinDateRange(Date)

addDeletionSystemEventStagedModelTypes

public void addDeletionSystemEventStagedModelTypes(StagedModelType... stagedModelTypes)
Specified by:
addDeletionSystemEventStagedModelTypes in interface PortletDataContext

addExpando

public void addExpando(Element element,
                       String path,
                       ClassedModel classedModel)
                throws PortalException,
                       SystemException
Specified by:
addExpando in interface PortletDataContext
Throws:
PortalException
SystemException

addLocks

public void addLocks(Class<?> clazz,
                     String key)
              throws PortalException,
                     SystemException
Specified by:
addLocks in interface PortletDataContext
Throws:
PortalException
SystemException

addLocks

public void addLocks(String className,
                     String key,
                     Lock lock)
Specified by:
addLocks in interface PortletDataContext

addPermissions

public void addPermissions(Class<?> clazz,
                           long classPK)
                    throws PortalException,
                           SystemException
Specified by:
addPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

addPermissions

public void addPermissions(String resourceName,
                           long resourcePK)
                    throws PortalException,
                           SystemException
Specified by:
addPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

addPermissions

public void addPermissions(String resourceName,
                           long resourcePK,
                           List<KeyValuePair> permissions)
Specified by:
addPermissions in interface PortletDataContext

addPortalPermissions

public void addPortalPermissions()
                          throws PortalException,
                                 SystemException
Specified by:
addPortalPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

addPortletPermissions

public void addPortletPermissions(String resourceName)
                           throws PortalException,
                                  SystemException
Specified by:
addPortletPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

addPrimaryKey

public boolean addPrimaryKey(Class<?> clazz,
                             String primaryKey)
Specified by:
addPrimaryKey in interface PortletDataContext

addRatingsEntries

public void addRatingsEntries(Class<?> clazz,
                              long classPK)
                       throws SystemException
Specified by:
addRatingsEntries in interface PortletDataContext
Throws:
SystemException

addRatingsEntries

public void addRatingsEntries(String className,
                              long classPK,
                              List<RatingsEntry> ratingsEntries)
Specified by:
addRatingsEntries in interface PortletDataContext

addReferenceElement

@Deprecated
public Element addReferenceElement(ClassedModel referrerClassedModel,
                                              Element element,
                                              ClassedModel classedModel,
                                              Class<?> clazz,
                                              String referenceType,
                                              boolean missing)
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
addReferenceElement in interface PortletDataContext

addReferenceElement

public Element addReferenceElement(ClassedModel referrerClassedModel,
                                   Element element,
                                   ClassedModel classedModel,
                                   String referenceType,
                                   boolean missing)
Specified by:
addReferenceElement in interface PortletDataContext

addReferenceElement

public Element addReferenceElement(ClassedModel referrerClassedModel,
                                   Element element,
                                   ClassedModel classedModel,
                                   String binPath,
                                   String referenceType,
                                   boolean missing)
Specified by:
addReferenceElement in interface PortletDataContext

addReferenceElement

public Element addReferenceElement(ClassedModel referrerClassedModel,
                                   Element element,
                                   ClassedModel classedModel,
                                   String className,
                                   String binPath,
                                   String referenceType,
                                   boolean missing)
Specified by:
addReferenceElement in interface PortletDataContext

addScopedPrimaryKey

public boolean addScopedPrimaryKey(Class<?> clazz,
                                   String primaryKey)
Specified by:
addScopedPrimaryKey in interface PortletDataContext

addZipEntry

public void addZipEntry(String path,
                        byte[] bytes)
                 throws SystemException
Specified by:
addZipEntry in interface PortletDataContext
Throws:
SystemException

addZipEntry

public void addZipEntry(String path,
                        InputStream is)
                 throws SystemException
Specified by:
addZipEntry in interface PortletDataContext
Throws:
SystemException

addZipEntry

public void addZipEntry(String path,
                        Object object)
                 throws SystemException
Specified by:
addZipEntry in interface PortletDataContext
Throws:
SystemException

addZipEntry

public void addZipEntry(String path,
                        String s)
                 throws SystemException
Specified by:
addZipEntry in interface PortletDataContext
Throws:
SystemException

addZipEntry

public void addZipEntry(String path,
                        StringBuilder sb)
                 throws SystemException
Specified by:
addZipEntry in interface PortletDataContext
Throws:
SystemException

cleanUpMissingReferences

public void cleanUpMissingReferences(ClassedModel classedModel)
Specified by:
cleanUpMissingReferences in interface PortletDataContext

clearScopedPrimaryKeys

public void clearScopedPrimaryKeys()
Specified by:
clearScopedPrimaryKeys in interface PortletDataContext

createServiceContext

public ServiceContext createServiceContext(Element element,
                                           ClassedModel classedModel)
Specified by:
createServiceContext in interface PortletDataContext

createServiceContext

public ServiceContext createServiceContext(Element element,
                                           ClassedModel classedModel,
                                           String namespace)
Deprecated. As of 6.2.0, replaced by createServiceContext(Element, ClassedModel)

Specified by:
createServiceContext in interface PortletDataContext

createServiceContext

public ServiceContext createServiceContext(StagedModel stagedModel)
Specified by:
createServiceContext in interface PortletDataContext

createServiceContext

public ServiceContext createServiceContext(StagedModel stagedModel,
                                           Class<?> clazz)
Specified by:
createServiceContext in interface PortletDataContext

createServiceContext

public ServiceContext createServiceContext(String path,
                                           ClassedModel classedModel)
Specified by:
createServiceContext in interface PortletDataContext

createServiceContext

public ServiceContext createServiceContext(String path,
                                           ClassedModel classedModel,
                                           String namespace)
Deprecated. As of 6.2.0, replaced by createServiceContext(String, ClassedModel)

Specified by:
createServiceContext in interface PortletDataContext

fromXML

public Object fromXML(byte[] bytes)
Specified by:
fromXML in interface PortletDataContext

fromXML

public Object fromXML(String xml)
Specified by:
fromXML in interface PortletDataContext

getAssetCategoryIds

public long[] getAssetCategoryIds(Class<?> clazz,
                                  long classPK)
Specified by:
getAssetCategoryIds in interface PortletDataContext

getAssetCategoryIdsMap

@Deprecated
public Map<String,long[]> getAssetCategoryIdsMap()
Deprecated. As of 7.0.0

Specified by:
getAssetCategoryIdsMap in interface PortletDataContext

getAssetCategoryUuidsMap

public Map<String,String[]> getAssetCategoryUuidsMap()
Specified by:
getAssetCategoryUuidsMap in interface PortletDataContext

getAssetLinksMap

public Map<String,List<AssetLink>> getAssetLinksMap()
Specified by:
getAssetLinksMap in interface PortletDataContext

getAssetTagNames

public String[] getAssetTagNames(Class<?> clazz,
                                 long classPK)
Specified by:
getAssetTagNames in interface PortletDataContext

getAssetTagNames

public String[] getAssetTagNames(String className,
                                 long classPK)
Specified by:
getAssetTagNames in interface PortletDataContext

getAssetTagNamesMap

public Map<String,String[]> getAssetTagNamesMap()
Specified by:
getAssetTagNamesMap in interface PortletDataContext

getBooleanParameter

public boolean getBooleanParameter(String namespace,
                                   String name)
Specified by:
getBooleanParameter in interface PortletDataContext

getBooleanParameter

public boolean getBooleanParameter(String namespace,
                                   String name,
                                   boolean useDefaultValue)
Specified by:
getBooleanParameter in interface PortletDataContext

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface PortletDataContext

getComments

public Map<String,List<MBMessage>> getComments()
Specified by:
getComments in interface PortletDataContext

getCompanyGroupId

public long getCompanyGroupId()
Specified by:
getCompanyGroupId in interface PortletDataContext

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface PortletDataContext

getDataStrategy

public String getDataStrategy()
Specified by:
getDataStrategy in interface PortletDataContext

getDateRange

public DateRange getDateRange()
Specified by:
getDateRange in interface PortletDataContext

getDateRangeCriteria

public Criterion getDateRangeCriteria(String propertyName)
Specified by:
getDateRangeCriteria in interface PortletDataContext

getDeletionSystemEventStagedModelTypes

public Set<StagedModelType> getDeletionSystemEventStagedModelTypes()
Specified by:
getDeletionSystemEventStagedModelTypes in interface PortletDataContext

getEndDate

public Date getEndDate()
Specified by:
getEndDate in interface PortletDataContext

getExpandoColumns

public Map<String,List<ExpandoColumn>> getExpandoColumns()
Specified by:
getExpandoColumns in interface PortletDataContext

getExportDataElement

public Element getExportDataElement(ClassedModel classedModel)
Specified by:
getExportDataElement in interface PortletDataContext

getExportDataElement

@Deprecated
public Element getExportDataElement(ClassedModel classedModel,
                                               Class<?> modelClass)
Deprecated. As of 7.0.0, replaced by getExportDataElement(ClassedModel, String)

Specified by:
getExportDataElement in interface PortletDataContext

getExportDataElement

public Element getExportDataElement(ClassedModel classedModel,
                                    String modelClassSimpleName)
Specified by:
getExportDataElement in interface PortletDataContext

getExportDataGroupElement

public Element getExportDataGroupElement(Class<? extends StagedModel> clazz)
Specified by:
getExportDataGroupElement in interface PortletDataContext

getExportDataRootElement

public Element getExportDataRootElement()
Specified by:
getExportDataRootElement in interface PortletDataContext

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface PortletDataContext

getImportDataElement

public Element getImportDataElement(StagedModel stagedModel)
Specified by:
getImportDataElement in interface PortletDataContext

getImportDataElement

public Element getImportDataElement(String name,
                                    String attribute,
                                    String value)
Specified by:
getImportDataElement in interface PortletDataContext

getImportDataGroupElement

public Element getImportDataGroupElement(Class<? extends StagedModel> clazz)
Specified by:
getImportDataGroupElement in interface PortletDataContext

getImportDataRootElement

public Element getImportDataRootElement()
Specified by:
getImportDataRootElement in interface PortletDataContext

getImportDataStagedModelElement

public Element getImportDataStagedModelElement(StagedModel stagedModel)
Specified by:
getImportDataStagedModelElement in interface PortletDataContext

getLayoutPath

public String getLayoutPath(long plid)
Specified by:
getLayoutPath in interface PortletDataContext

getLocks

public Map<String,Lock> getLocks()
Specified by:
getLocks in interface PortletDataContext

getManifestSummary

public ManifestSummary getManifestSummary()
Specified by:
getManifestSummary in interface PortletDataContext

getMissingReferencesElement

public Element getMissingReferencesElement()
Specified by:
getMissingReferencesElement in interface PortletDataContext

getNewLayouts

public List<Layout> getNewLayouts()
Specified by:
getNewLayouts in interface PortletDataContext

getNewPrimaryKeysMap

public Map<?,?> getNewPrimaryKeysMap(Class<?> clazz)
Specified by:
getNewPrimaryKeysMap in interface PortletDataContext

getNewPrimaryKeysMaps

public Map<String,Map<?,?>> getNewPrimaryKeysMaps()
Specified by:
getNewPrimaryKeysMaps in interface PortletDataContext

getNewPrimaryKeysMap

public Map<?,?> getNewPrimaryKeysMap(String className)
Specified by:
getNewPrimaryKeysMap in interface PortletDataContext

getOldPlid

@Deprecated
public long getOldPlid()
Deprecated. As of 7.0.0

Specified by:
getOldPlid in interface PortletDataContext

getParameterMap

public Map<String,String[]> getParameterMap()
Specified by:
getParameterMap in interface PortletDataContext

getPermissions

public Map<String,List<KeyValuePair>> getPermissions()
Specified by:
getPermissions in interface PortletDataContext

getPlid

public long getPlid()
Specified by:
getPlid in interface PortletDataContext

getRootPortletId

public String getRootPortletId()
Specified by:
getRootPortletId in interface PortletDataContext

getPortletPath

public String getPortletPath(String portletId)
Specified by:
getPortletPath in interface PortletDataContext

getPrimaryKeys

public Set<String> getPrimaryKeys()
Specified by:
getPrimaryKeys in interface PortletDataContext

getRatingsEntries

public Map<String,List<RatingsEntry>> getRatingsEntries()
Specified by:
getRatingsEntries in interface PortletDataContext

getReferenceDataElement

public Element getReferenceDataElement(Element parentElement,
                                       Class<?> clazz,
                                       long classPK)
Specified by:
getReferenceDataElement in interface PortletDataContext

getReferenceDataElement

public Element getReferenceDataElement(Element parentElement,
                                       Class<?> clazz,
                                       long groupId,
                                       String uuid)
Specified by:
getReferenceDataElement in interface PortletDataContext

getReferenceDataElement

public Element getReferenceDataElement(StagedModel parentStagedModel,
                                       Class<?> clazz,
                                       long classPK)
Specified by:
getReferenceDataElement in interface PortletDataContext

getReferenceDataElement

public Element getReferenceDataElement(StagedModel parentStagedModel,
                                       Class<?> clazz,
                                       long groupId,
                                       String uuid)
Specified by:
getReferenceDataElement in interface PortletDataContext

getReferenceDataElements

@Deprecated
public List<Element> getReferenceDataElements(Element parentElement,
                                                         Class<?> clazz)
Deprecated. As of 7.0.0

Specified by:
getReferenceDataElements in interface PortletDataContext

getReferenceDataElements

public List<Element> getReferenceDataElements(Element parentElement,
                                              Class<?> clazz,
                                              String referenceType)
Specified by:
getReferenceDataElements in interface PortletDataContext

getReferenceDataElements

public List<Element> getReferenceDataElements(StagedModel parentStagedModel,
                                              Class<?> clazz)
Specified by:
getReferenceDataElements in interface PortletDataContext

getReferenceDataElements

public List<Element> getReferenceDataElements(StagedModel parentStagedModel,
                                              Class<?> clazz,
                                              String referenceType)
Specified by:
getReferenceDataElements in interface PortletDataContext

getReferenceElement

public Element getReferenceElement(Element parentElement,
                                   Class<?> clazz,
                                   long groupId,
                                   String uuid,
                                   String referenceType)
Specified by:
getReferenceElement in interface PortletDataContext

getReferenceElement

public Element getReferenceElement(StagedModel parentStagedModel,
                                   Class<?> clazz,
                                   long classPK)
Specified by:
getReferenceElement in interface PortletDataContext

getReferenceElements

public List<Element> getReferenceElements(StagedModel parentStagedModel,
                                          Class<?> clazz)
Specified by:
getReferenceElements in interface PortletDataContext

getRootPath

public String getRootPath()
Specified by:
getRootPath in interface PortletDataContext

getScopedPrimaryKeys

@Deprecated
public Set<String> getScopedPrimaryKeys()
Deprecated. As of 7.0.0

Specified by:
getScopedPrimaryKeys in interface PortletDataContext

getScopeGroupId

public long getScopeGroupId()
Specified by:
getScopeGroupId in interface PortletDataContext

getScopeLayoutUuid

public String getScopeLayoutUuid()
Specified by:
getScopeLayoutUuid in interface PortletDataContext

getScopeType

public String getScopeType()
Specified by:
getScopeType in interface PortletDataContext

getSourceCompanyGroupId

public long getSourceCompanyGroupId()
Specified by:
getSourceCompanyGroupId in interface PortletDataContext

getSourceCompanyId

public long getSourceCompanyId()
Specified by:
getSourceCompanyId in interface PortletDataContext

getSourceGroupId

public long getSourceGroupId()
Specified by:
getSourceGroupId in interface PortletDataContext

getSourceLayoutPath

public String getSourceLayoutPath(long layoutId)
Specified by:
getSourceLayoutPath in interface PortletDataContext

getSourcePortletPath

public String getSourcePortletPath(String portletId)
Specified by:
getSourcePortletPath in interface PortletDataContext

getSourceRootPath

public String getSourceRootPath()
Specified by:
getSourceRootPath in interface PortletDataContext

getSourceUserPersonalSiteGroupId

public long getSourceUserPersonalSiteGroupId()
Specified by:
getSourceUserPersonalSiteGroupId in interface PortletDataContext

getStartDate

public Date getStartDate()
Specified by:
getStartDate in interface PortletDataContext

getUserId

public long getUserId(String userUuid)
Specified by:
getUserId in interface PortletDataContext

getUserIdStrategy

public UserIdStrategy getUserIdStrategy()
Specified by:
getUserIdStrategy in interface PortletDataContext

getUserPersonalSiteGroupId

public long getUserPersonalSiteGroupId()
Specified by:
getUserPersonalSiteGroupId in interface PortletDataContext

getZipEntries

@Deprecated
public List<String> getZipEntries()
Deprecated. As of 7.0.0

Specified by:
getZipEntries in interface PortletDataContext

getZipEntryAsByteArray

public byte[] getZipEntryAsByteArray(String path)
Specified by:
getZipEntryAsByteArray in interface PortletDataContext

getZipEntryAsInputStream

public InputStream getZipEntryAsInputStream(String path)
Specified by:
getZipEntryAsInputStream in interface PortletDataContext

getZipEntryAsObject

public Object getZipEntryAsObject(Element element,
                                  String path)
Specified by:
getZipEntryAsObject in interface PortletDataContext

getZipEntryAsObject

public Object getZipEntryAsObject(String path)
Specified by:
getZipEntryAsObject in interface PortletDataContext

getZipEntryAsString

public String getZipEntryAsString(String path)
Specified by:
getZipEntryAsString in interface PortletDataContext

getZipFolderEntries

@Deprecated
public List<String> getZipFolderEntries()
Deprecated. As of 7.0.0

Specified by:
getZipFolderEntries in interface PortletDataContext

getZipFolderEntries

public List<String> getZipFolderEntries(String path)
Specified by:
getZipFolderEntries in interface PortletDataContext

getZipReader

public ZipReader getZipReader()
Specified by:
getZipReader in interface PortletDataContext

getZipWriter

public ZipWriter getZipWriter()
Specified by:
getZipWriter in interface PortletDataContext

hasDateRange

public boolean hasDateRange()
Specified by:
hasDateRange in interface PortletDataContext

hasNotUniquePerLayout

public boolean hasNotUniquePerLayout(String dataKey)
Specified by:
hasNotUniquePerLayout in interface PortletDataContext

hasPrimaryKey

public boolean hasPrimaryKey(Class<?> clazz,
                             String primaryKey)
Specified by:
hasPrimaryKey in interface PortletDataContext

hasScopedPrimaryKey

public boolean hasScopedPrimaryKey(Class<?> clazz,
                                   String primaryKey)
Specified by:
hasScopedPrimaryKey in interface PortletDataContext

importClassedModel

public void importClassedModel(ClassedModel classedModel,
                               ClassedModel newClassedModel)
                        throws PortalException,
                               SystemException
Specified by:
importClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

importClassedModel

public void importClassedModel(ClassedModel classedModel,
                               ClassedModel newClassedModel,
                               Class<?> clazz)
                        throws PortalException,
                               SystemException
Specified by:
importClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

importClassedModel

public void importClassedModel(ClassedModel classedModel,
                               ClassedModel newClassedModel,
                               Class<?> clazz,
                               String namespace)
                        throws PortalException,
                               SystemException
Deprecated. As of 6.2.0, replaced by importClassedModel(ClassedModel, ClassedModel, Class)

Specified by:
importClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

importClassedModel

public void importClassedModel(ClassedModel classedModel,
                               ClassedModel newClassedModel,
                               String namespace)
                        throws PortalException,
                               SystemException
Deprecated. As of 6.2.0, replaced by importClassedModel(ClassedModel, ClassedModel)

Specified by:
importClassedModel in interface PortletDataContext
Throws:
PortalException
SystemException

importComments

public void importComments(Class<?> clazz,
                           long classPK,
                           long newClassPK,
                           long groupId)
                    throws PortalException,
                           SystemException
Specified by:
importComments in interface PortletDataContext
Throws:
PortalException
SystemException

importLocks

public void importLocks(Class<?> clazz,
                        String key,
                        String newKey)
                 throws PortalException,
                        SystemException
Specified by:
importLocks in interface PortletDataContext
Throws:
PortalException
SystemException

importPermissions

public void importPermissions(Class<?> clazz,
                              long classPK,
                              long newClassPK)
                       throws PortalException,
                              SystemException
Specified by:
importPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

importPermissions

public void importPermissions(String resourceName,
                              long resourcePK,
                              long newResourcePK)
                       throws PortalException,
                              SystemException
Specified by:
importPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

importPortalPermissions

public void importPortalPermissions()
                             throws PortalException,
                                    SystemException
Specified by:
importPortalPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

importPortletPermissions

public void importPortletPermissions(String resourceName)
                              throws PortalException,
                                     SystemException
Specified by:
importPortletPermissions in interface PortletDataContext
Throws:
PortalException
SystemException

importRatingsEntries

public void importRatingsEntries(Class<?> clazz,
                                 long classPK,
                                 long newClassPK)
                          throws PortalException,
                                 SystemException
Specified by:
importRatingsEntries in interface PortletDataContext
Throws:
PortalException
SystemException

isCompanyStagedGroupedModel

public boolean isCompanyStagedGroupedModel(StagedGroupedModel stagedGroupedModel)
Specified by:
isCompanyStagedGroupedModel in interface PortletDataContext

isDataStrategyMirror

public boolean isDataStrategyMirror()
Specified by:
isDataStrategyMirror in interface PortletDataContext

isDataStrategyMirrorWithOverwriting

public boolean isDataStrategyMirrorWithOverwriting()
Specified by:
isDataStrategyMirrorWithOverwriting in interface PortletDataContext

isInitialPublication

public boolean isInitialPublication()
Specified by:
isInitialPublication in interface PortletDataContext

isMissingReference

public boolean isMissingReference(Element referenceElement)
Specified by:
isMissingReference in interface PortletDataContext

isModelCounted

public boolean isModelCounted(String className,
                              long classPK)
Specified by:
isModelCounted in interface PortletDataContext

isPathExportedInScope

public boolean isPathExportedInScope(String path)
Specified by:
isPathExportedInScope in interface PortletDataContext

isPathNotExportedInScope

@Deprecated
public boolean isPathNotExportedInScope(String path)
Deprecated. As of 7.0.0

Specified by:
isPathNotExportedInScope in interface PortletDataContext

isPathNotProcessed

public boolean isPathNotProcessed(String path)
Specified by:
isPathNotProcessed in interface PortletDataContext

isPathProcessed

public boolean isPathProcessed(String path)
Specified by:
isPathProcessed in interface PortletDataContext

isPerformDirectBinaryImport

public boolean isPerformDirectBinaryImport()
Specified by:
isPerformDirectBinaryImport in interface PortletDataContext

isPrivateLayout

public boolean isPrivateLayout()
Specified by:
isPrivateLayout in interface PortletDataContext

isStagedModelCounted

public boolean isStagedModelCounted(StagedModel stagedModel)
Specified by:
isStagedModelCounted in interface PortletDataContext

isWithinDateRange

public boolean isWithinDateRange(Date modifiedDate)
Specified by:
isWithinDateRange in interface PortletDataContext
See Also:
addDateRangeCriteria(DynamicQuery, String)

putNotUniquePerLayout

public void putNotUniquePerLayout(String dataKey)
Specified by:
putNotUniquePerLayout in interface PortletDataContext

setClassLoader

public void setClassLoader(ClassLoader classLoader)
Specified by:
setClassLoader in interface PortletDataContext

setCompanyGroupId

public void setCompanyGroupId(long companyGroupId)
Specified by:
setCompanyGroupId in interface PortletDataContext

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface PortletDataContext

setDataStrategy

public void setDataStrategy(String dataStrategy)
Specified by:
setDataStrategy in interface PortletDataContext

setEndDate

public void setEndDate(Date endDate)
Specified by:
setEndDate in interface PortletDataContext

setExportDataRootElement

public void setExportDataRootElement(Element exportDataRootElement)
Specified by:
setExportDataRootElement in interface PortletDataContext

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface PortletDataContext

setImportDataRootElement

public void setImportDataRootElement(Element importDataRootElement)
Specified by:
setImportDataRootElement in interface PortletDataContext

setManifestSummary

public void setManifestSummary(ManifestSummary manifestSummary)
Specified by:
setManifestSummary in interface PortletDataContext

setMissingReferencesElement

public void setMissingReferencesElement(Element missingReferencesElement)
Specified by:
setMissingReferencesElement in interface PortletDataContext

setNewLayouts

public void setNewLayouts(List<Layout> newLayouts)
Specified by:
setNewLayouts in interface PortletDataContext

setNewPrimaryKeysMaps

public void setNewPrimaryKeysMaps(Map<String,Map<?,?>> newPrimaryKeysMaps)
Specified by:
setNewPrimaryKeysMaps in interface PortletDataContext

setOldPlid

public void setOldPlid(long oldPlid)
Specified by:
setOldPlid in interface PortletDataContext

setParameterMap

public void setParameterMap(Map<String,String[]> parameterMap)
Specified by:
setParameterMap in interface PortletDataContext

setPlid

public void setPlid(long plid)
Specified by:
setPlid in interface PortletDataContext

setPortetDataContextListener

public void setPortetDataContextListener(PortletDataContextListener portletDataContextListener)
Specified by:
setPortetDataContextListener in interface PortletDataContext

setPrivateLayout

public void setPrivateLayout(boolean privateLayout)
Specified by:
setPrivateLayout in interface PortletDataContext

setRootPortletId

public void setRootPortletId(String rootPortletId)
Specified by:
setRootPortletId in interface PortletDataContext

setScopeGroupId

public void setScopeGroupId(long scopeGroupId)
Specified by:
setScopeGroupId in interface PortletDataContext

setScopeLayoutUuid

public void setScopeLayoutUuid(String scopeLayoutUuid)
Specified by:
setScopeLayoutUuid in interface PortletDataContext

setScopeType

public void setScopeType(String scopeType)
Specified by:
setScopeType in interface PortletDataContext

setSourceCompanyGroupId

public void setSourceCompanyGroupId(long sourceCompanyGroupId)
Specified by:
setSourceCompanyGroupId in interface PortletDataContext

setSourceCompanyId

public void setSourceCompanyId(long sourceCompanyId)
Specified by:
setSourceCompanyId in interface PortletDataContext

setSourceGroupId

public void setSourceGroupId(long sourceGroupId)
Specified by:
setSourceGroupId in interface PortletDataContext

setSourceUserPersonalSiteGroupId

public void setSourceUserPersonalSiteGroupId(long sourceUserPersonalSiteGroupId)
Specified by:
setSourceUserPersonalSiteGroupId in interface PortletDataContext

setStartDate

public void setStartDate(Date startDate)
Specified by:
setStartDate in interface PortletDataContext

setUserIdStrategy

public void setUserIdStrategy(UserIdStrategy userIdStrategy)
Specified by:
setUserIdStrategy in interface PortletDataContext

setUserPersonalSiteGroupId

public void setUserPersonalSiteGroupId(long userPersonalSiteGroupId)
Specified by:
setUserPersonalSiteGroupId in interface PortletDataContext

setZipReader

public void setZipReader(ZipReader zipReader)
Specified by:
setZipReader in interface PortletDataContext

setZipWriter

public void setZipWriter(ZipWriter zipWriter)
Specified by:
setZipWriter in interface PortletDataContext

toXML

public String toXML(Object object)
Specified by:
toXML in interface PortletDataContext

addExpando

protected void addExpando(Element element,
                          String path,
                          ClassedModel classedModel,
                          Class<?> clazz)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

createServiceContext

protected ServiceContext createServiceContext(Element element,
                                              String path,
                                              ClassedModel classedModel,
                                              Class<?> clazz)

doAddReferenceElement

protected Element doAddReferenceElement(ClassedModel referrerClassedModel,
                                        Element element,
                                        ClassedModel classedModel,
                                        String className,
                                        String binPath,
                                        String referenceType,
                                        boolean missing)

getActionIds

protected Map<Long,Set<String>> getActionIds(long companyId,
                                             long[] roleIds,
                                             String className,
                                             long primKey,
                                             List<String> actionIds)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getClassPK

protected long getClassPK(ClassedModel classedModel)

getDataElement

protected Element getDataElement(Element parentElement,
                                 String attribute,
                                 String value)

getExpandoPath

protected String getExpandoPath(String path)

getExportDataGroupElement

protected Element getExportDataGroupElement(String name)

getImportDataGroupElement

protected Element getImportDataGroupElement(String name)

getMissingReferenceElement

protected Element getMissingReferenceElement(ClassedModel classedModel)

getPrimaryKeyString

protected String getPrimaryKeyString(Class<?> clazz,
                                     long classPK)

getPrimaryKeyString

protected String getPrimaryKeyString(Class<?> clazz,
                                     String primaryKey)

getPrimaryKeyString

protected String getPrimaryKeyString(String className,
                                     long classPK)

getPrimaryKeyString

protected String getPrimaryKeyString(String className,
                                     String primaryKey)

getReferenceDataElements

protected List<Element> getReferenceDataElements(List<Element> referenceElements,
                                                 Class<?> clazz)

getReferenceElements

protected List<Element> getReferenceElements(Element parentElement,
                                             Class<?> clazz,
                                             long groupId,
                                             String uuid,
                                             long classPK,
                                             String referenceType)

getReferenceElements

protected List<Element> getReferenceElements(StagedModel parentStagedModel,
                                             Class<?> clazz,
                                             long classPK,
                                             String referenceType)

getReferenceKey

protected String getReferenceKey(ClassedModel classedModel)

getReferenceKey

protected String getReferenceKey(String className,
                                 String classPK)

getUserId

protected long getUserId(AuditedModel auditedModel)

initXStream

protected void initXStream()

isResourceMain

protected boolean isResourceMain(ClassedModel classedModel)

Liferay 6.2-ce-ga5