public class CollectionBindingManager
extends java.lang.Object
Constructor and Description |
---|
CollectionBindingManager() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addDataSet(long projectId,
java.lang.String databaseName,
java.lang.String nativeCollectionName,
RequestIds requestIds,
boolean isNewProject)
Add a data set into a project.
|
static void |
cleanupProjectBindings(long projectId)
Clean up bindings after a project is removed.
|
static java.util.List<CollectionBinding> |
getAllCollectionBindings()
Get all the collection bindings.
|
static java.lang.String |
getLogicalName(long projectId,
java.lang.String stableCollectionName) |
static void |
removeDataSet(long projectId,
java.lang.String stableCollectionName,
RequestIds requestIds)
Remove a dataset from a project
|
static void |
switchCollection(long projectId,
java.lang.String stableCollectionName,
java.lang.String newDatabaseName,
java.lang.String newCollectionName,
RequestIds requestIds)
Switch a stable collection name (logical name) in a project to another native collection.
|
public static java.lang.String addDataSet(long projectId, java.lang.String databaseName, java.lang.String nativeCollectionName, RequestIds requestIds, boolean isNewProject) throws com.liferay.portal.SystemException
projectId
- databaseName
- collectionName
- com.liferay.portal.SystemException
public static void removeDataSet(long projectId, java.lang.String stableCollectionName, RequestIds requestIds) throws com.liferay.portal.SystemException
projectId
- stableCollectionName
- request
- com.liferay.portal.SystemException
public static void cleanupProjectBindings(long projectId) throws com.liferay.portal.SystemException
projectId
- com.liferay.portal.SystemException
public static void switchCollection(long projectId, java.lang.String stableCollectionName, java.lang.String newDatabaseName, java.lang.String newCollectionName, RequestIds requestIds) throws com.liferay.portal.SystemException
projectId
- stableCollectionName
- newDatabaseName
- newCollectionName
- com.liferay.portal.SystemException
public static java.util.List<CollectionBinding> getAllCollectionBindings() throws DataSourceException
DataSourceException
public static java.lang.String getLogicalName(long projectId, java.lang.String stableCollectionName)
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.