public interface PersistenceManager
Modifier and Type | Method and Description |
---|---|
void |
cleanUpPortalResource(PortalResource resource)
Deletes all the entities related to a portal in the core portal tables
|
<T extends PortalEntity> |
copy(T source,
PortalResource targetPortal,
java.lang.String targetNamespace,
java.lang.String targetName)
Make a copy of the supplied PortalEntity, giving the new object
the supplied owning portal, namespace and name.
|
<T extends PortalEntity> |
create(java.lang.Class<T> c)
Creates and persists a PortalEntity object of a given type.
|
<T extends PortalEntity> |
create(java.lang.Class<T> c,
java.lang.String id)
Create and persists a PortalEntity object of a given type with Id provided.
|
<T extends PortalEntity> |
create(java.lang.Class<T> c,
java.lang.String id,
java.lang.String versionId)
Create and persists a PortalEntity object of a given type with Id and version Id provided.
|
boolean |
createAllowed(java.lang.Class<? extends PortalEntity> type,
PortalResource portal)
Returns a flag indicating whether the current user has permission to create the supplied type within
the supplied portal.
|
Query<PortalEntity> |
createQuery()
Creates a query object which can be used to build up a query of portal
objects of any type.
|
<T extends PortalEntity> |
createQuery(java.lang.Class<T> type)
Creates a query object which can be used to build up a query of portal
objects of a given type.
|
<S extends PortalEntity,T extends PortalEntity> |
deepCopy(S source,
PortalResource targetPortal,
java.lang.String targetNamespace,
java.lang.String targetName,
java.lang.Class<T> targetType)
Make a deep copy of the supplied PortalEntity, giving the new object
the supplied owning portal, namespace, name, and type.
|
<S extends PortalEntity,T extends PortalEntity> |
deepCopy(S source,
PortalResource targetPortal,
java.lang.String targetNamespace,
java.lang.String targetName,
java.lang.Class<T> targetType,
PostCopy<T> postCopy,
java.lang.String[] excludedReferenceNames)
Make a deep copy of the supplied PortalEntity, giving the new object
the supplied owning portal, namespace, name, and type.
|
<S extends PortalEntity,T extends PortalEntity> |
deepCopy(S source,
T target)
Make a deep copy of the supplied source PortalEntity to the supplied target
PortalEntity.
|
<S extends PortalEntity,T extends PortalEntity> |
deepCopy(S source,
T target,
PostCopy<T> postCopy)
Make a deep copy of the supplied source PortalEntity to the supplied target
PortalEntity.
|
<T extends PortalEntity> |
deepCopy(T source,
PortalResource targetPortal,
java.lang.String targetNamespace,
java.lang.String targetName)
Make a deep copy of the supplied PortalEntity, giving the new object
the supplied owning portal, namespace and name.
|
<T extends PortalEntity> |
deepCopy(T source,
PortalResource targetPortal,
java.lang.String targetNamespace,
java.lang.String targetName,
PostCopy<T> postCopy)
Make a deep copy of the supplied PortalEntity, giving the new object
the supplied owning portal, namespace and name.
|
boolean |
delete(PortalEntity portalEntity)
Deletes the persisted PortalEntity object passed into the method.
|
boolean |
deleteById(java.lang.String id)
Delete a persisted PortalEntity by ID.
|
boolean |
deleteByName(PortalEntity portal,
java.lang.String namespace,
java.lang.String name)
Delete a persisted PortalEntity by portal, namespace and name.
|
boolean |
deleteByShortId(java.lang.String shortId)
Delete a persisted PortalEntity by short ID.
|
org.w3c.dom.Document |
exportXML(java.util.Set<? extends PortalEntity> entities,
boolean followRefs)
Deprecated.
Replaced by
exportXML(Set, ExportOptions) |
org.w3c.dom.Document |
exportXML(java.util.Set<? extends PortalEntity> entities,
ExportOptions options)
Exports a set of PortalEntity objects to an XML document.
|
PortalEntity |
findById(java.lang.String id)
Finds a persisted object by ID.
|
PortalEntity |
findById(java.lang.String id,
boolean loadGraph)
Finds a persisted object by ID.
|
<T extends PortalEntity> |
findById(java.lang.String id,
java.lang.Class<T> returnType)
Finds a persisted object of a given type by ID.
|
<T extends PortalEntity> |
findById(java.lang.String id,
java.lang.Class<T> returnType,
boolean loadGraph)
Finds a persisted object of a given type by ID.
|
PortalEntity |
findByName(PortalEntity portal,
java.lang.String namespace,
java.lang.String name)
Finds a persisted object by name.
|
PortalEntity |
findByName(PortalEntity portal,
java.lang.String namespace,
java.lang.String name,
boolean loadGraph)
Finds a persisted object by name.
|
<T extends PortalEntity> |
findByName(PortalEntity portal,
java.lang.String namespace,
java.lang.String name,
java.lang.Class<T> returnType)
Finds a persisted object of a given type by name.
|
<T extends PortalEntity> |
findByName(PortalEntity portal,
java.lang.String namespace,
java.lang.String name,
java.lang.Class<T> returnType,
boolean loadGraph)
Finds a persisted object of a given type by name.
|
PortalEntity |
findByName(java.lang.String portal,
java.lang.String namespace,
java.lang.String name)
Finds a persisted object by name.
|
PortalEntity |
findByName(java.lang.String portal,
java.lang.String namespace,
java.lang.String name,
boolean loadGraph)
Finds a persisted object by name.
|
<T extends PortalEntity> |
findByName(java.lang.String portal,
java.lang.String namespace,
java.lang.String name,
java.lang.Class<T> returnType)
Finds a persisted object of a given type by name.
|
<T extends PortalEntity> |
findByName(java.lang.String portal,
java.lang.String namespace,
java.lang.String name,
java.lang.Class<T> returnType,
boolean loadGraph)
Finds a persisted object of a given type by name.
|
PortalEntity |
findByShortId(java.lang.String shortId)
Finds a persisted object by short ID.
|
PortalEntity |
findByShortId(java.lang.String shortId,
boolean loadGraph)
Finds a persisted object by short ID.
|
<T extends PortalEntity> |
findByShortId(java.lang.String shortId,
java.lang.Class<T> returnType)
Finds a persisted object of a given type by short ID.
|
<T extends PortalEntity> |
findByShortId(java.lang.String shortId,
java.lang.Class<T> returnType,
boolean loadGraph)
Finds a persisted object of a given type by short ID.
|
java.util.List<java.lang.String> |
findSourceIdBySourceAndName(java.lang.String name,
java.util.List<java.lang.String> sources,
PaginationRule page)
Find ids of a list persisted objects that are the source of a particular reference
|
<T extends PortalEntity> |
getEntitiesForExport(PortalEntity entity)
Returns a list of PortalEntities that will be exported when the supplied entity is exported.
|
ImportReport |
getImportReport(org.w3c.dom.Document... exportData)
Generates a report on an export set.
|
PersistenceListener |
getPersistenceListener()
Gets the listener from the PersistenceManager.
|
java.util.Set<PortalEntity> |
importXML(org.w3c.dom.Document... exportData)
Imports a set of PortalEntity objects.
|
java.util.Set<PortalEntity> |
importXML(PortalEntity portal,
org.w3c.dom.Document... exportData)
Imports a set of PortalEntity objects.
|
void |
lock(PortalEntity entity,
LockMode lockMode)
Locks a PortalEntity object
|
void |
notifyExternallyModified()
Notifies PersistenceManager of changes to the database.
|
<T extends PortalEntity> |
queryByDocumentRefAndType(java.lang.String documentRef,
java.util.List<java.lang.Class<? extends PortalEntity>> types,
PaginationRule page)
Finds a list of portal objects with a type in the list of given types and the provided
document ref.
|
java.util.List<PortalEntity> |
queryByName(PortalEntity portal,
java.lang.String name,
PaginationRule page)
Finds a list of portal objects with a given name, within a given portal
|
<T extends PortalEntity> |
queryByNameAndType(java.lang.String name,
java.lang.Class<T> type,
PaginationRule page)
Finds a list of portal objects with a given type and name.
|
<T extends PortalEntity> |
queryByNameAndType(java.lang.String name,
java.util.List<java.lang.Class<? extends PortalEntity>> types,
PaginationRule page)
Finds a list of portal objects with a type in the list of given types and the provided
name.
|
<T extends PortalEntity> |
queryByType(java.lang.Class<T> type,
PaginationRule page)
Finds a list of portal objects with a given type.
|
<T extends PortalEntity> |
queryByType(java.util.List<java.lang.Class<? extends PortalEntity>> types,
PaginationRule page)
Finds a list of portal objects with a type in the list of given types.
|
<T extends PortalEntity> |
queryByType(PortalEntity portal,
java.lang.Class<T> type,
PaginationRule page)
Finds a list of portal objects with a given type, within a given portal.
|
<T extends PortalEntity> |
queryByType(PortalEntity portal,
java.util.List<java.lang.Class<? extends PortalEntity>> types,
PaginationRule page)
Finds a list of portal objects with a type in the list of given types, within a given
portal.
|
<T extends PortalEntity> |
queryByTypeAndModifiedDate(java.lang.Class<T> type,
java.util.Date fromDate,
java.util.Date toDate,
PaginationRule page)
Finds a list of portal objects with a given type and within a timestamp.
|
<T extends PortalEntity> |
queryByTypeAndModifiedDate(java.util.List<java.lang.Class<? extends PortalEntity>> types,
java.util.Date fromDate,
java.util.Date toDate,
PaginationRule page)
Finds a list of portal objects with a type in the list of given types and within a
timestamp.
|
<T extends PortalEntity> |
queryByTypeAndModifiedDate(PortalEntity portal,
java.lang.Class<T> type,
java.util.Date fromDate,
java.util.Date toDate,
PaginationRule page)
Finds a list of portal objects with a given type and within a timestamp, within a given portal.
|
<T extends PortalEntity> |
queryByTypeAndModifiedDate(PortalEntity portal,
java.util.List<java.lang.Class<? extends PortalEntity>> types,
java.util.Date fromDate,
java.util.Date toDate,
PaginationRule page)
Finds a list of portal objects with a type in the list of given types and within a timestamp, within a given
portal.
|
void |
registerPersistenceListener(PersistenceListener listener)
Register the listener with the PersistenceManager.
|
<T extends PortalEntity> T create(java.lang.Class<T> c)
c
- a Class representing the type of object to create and persistAbstractEntityException
- if the requested type is marked as abstract<T extends PortalEntity> T create(java.lang.Class<T> c, java.lang.String id)
c
- a Class representing the type of object to create and persistid
- the ID of the objectAbstractEntityException
- if the requested type is marked as abstract<T extends PortalEntity> T create(java.lang.Class<T> c, java.lang.String id, java.lang.String versionId)
c
- a Class representing the type of object to create and persistid
- the ID of the objectversionId
- the version ID of the objectAbstractEntityException
- if the requested type is marked as abstractPortalEntity findById(java.lang.String id)
id
- the ID of the object to findPortalEntity findById(java.lang.String id, boolean loadGraph)
id
- the ID of the object to findloadGraph
- whether to load the object graph (following the eager references)<T extends PortalEntity> T findById(java.lang.String id, java.lang.Class<T> returnType)
id
- the ID of the object to findreturnType
- the expected type of the object to be foundjava.lang.IllegalArgumentException
- if the object with the given id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this ID is marked as abstract<T extends PortalEntity> T findById(java.lang.String id, java.lang.Class<T> returnType, boolean loadGraph)
id
- the ID of the object to findreturnType
- the expected type of the object to be foundloadGraph
- whether to load the object graph (following the eager references)java.lang.IllegalArgumentException
- if the object with the given id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this ID is marked as abstractPortalEntity findByShortId(java.lang.String shortId) throws oracle.webcenter.portal.PortalOptimisticLockException
shortId
- the short ID of the object to findoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transactionPortalEntity findByShortId(java.lang.String shortId, boolean loadGraph) throws oracle.webcenter.portal.PortalOptimisticLockException
shortId
- the short ID of the object to findloadGraph
- whether to load the object graph (following the eager references)oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> T findByShortId(java.lang.String shortId, java.lang.Class<T> returnType) throws oracle.webcenter.portal.PortalOptimisticLockException
shortId
- the short ID of the object to findreturnType
- the expected type of the object to be foundjava.lang.IllegalArgumentException
- if the object with the given id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this ID is marked as abstractoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> T findByShortId(java.lang.String shortId, java.lang.Class<T> returnType, boolean loadGraph) throws oracle.webcenter.portal.PortalOptimisticLockException
shortId
- the short ID of the object to findreturnType
- the expected type of the object to be foundloadGraph
- whether to load the object graph (following the eager references)java.lang.IllegalArgumentException
- if the object with the giveni short id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this short ID is marked as abstractoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transactionPortalEntity findByName(PortalEntity portal, java.lang.String namespace, java.lang.String name) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchnamespace
- the namespace of the object to findname
- the name of the object to findoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> T findByName(PortalEntity portal, java.lang.String namespace, java.lang.String name, java.lang.Class<T> returnType) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchnamespace
- the namespace of the object to findname
- the name of the object to findreturnType
- the expected type of the object to be foundjava.lang.IllegalArgumentException
- if the object with the given id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this ID is marked as abstractoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transactionPortalEntity findByName(PortalEntity portal, java.lang.String namespace, java.lang.String name, boolean loadGraph) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchnamespace
- the namespace of the object to findname
- the name of the object to findloadGraph
- whether to load the object graph (following the eager references)oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> T findByName(PortalEntity portal, java.lang.String namespace, java.lang.String name, java.lang.Class<T> returnType, boolean loadGraph) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchnamespace
- the namespace of the object to findname
- the name of the object to findreturnType
- the expected type of the object to be foundloadGraph
- whether to load the object graph (following the eager references)java.lang.IllegalArgumentException
- if the object with the given id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this ID is marked as abstractoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transactionPortalEntity findByName(java.lang.String portal, java.lang.String namespace, java.lang.String name) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to search, specified by namenamespace
- the namespace of the object to findname
- the name of the object to findoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> T findByName(java.lang.String portal, java.lang.String namespace, java.lang.String name, java.lang.Class<T> returnType) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to search, specified by namenamespace
- the namespace of the object to findname
- the name of the object to findreturnType
- the expected type of the object to be foundjava.lang.IllegalArgumentException
- if the object with the given id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this ID is marked as abstractoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transactionPortalEntity findByName(java.lang.String portal, java.lang.String namespace, java.lang.String name, boolean loadGraph) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to search, specified by namenamespace
- the namespace of the object to findname
- the name of the object to findloadGraph
- whether to load the object graph (following the eager references)oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> T findByName(java.lang.String portal, java.lang.String namespace, java.lang.String name, java.lang.Class<T> returnType, boolean loadGraph) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to search, specified by namenamespace
- the namespace of the object to findname
- the name of the object to findreturnType
- the expected type of the object to be foundloadGraph
- whether to load the object graph (following the eager references)java.lang.IllegalArgumentException
- if the object with the given id is not of the requested type (returnType)AbstractEntityException
- if the type of the entity with this ID is marked as abstractoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transactionjava.util.List<PortalEntity> queryByName(PortalEntity portal, java.lang.String name, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchname
- the name of the objects to findpage
- the page of results to returnAbstractEntityException
- if the type of any of the entities are marked as abstractoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByType(PortalEntity portal, java.lang.Class<T> type, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchtype
- the type of the objects to findpage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByType(PortalEntity portal, java.util.List<java.lang.Class<? extends PortalEntity>> types, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchtypes
- a list of types of objects to findpage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByTypeAndModifiedDate(PortalEntity portal, java.lang.Class<T> type, java.util.Date fromDate, java.util.Date toDate, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchtype
- the type of the objects to findfromDate
- the start time for the modified datetoDate
- the end time for the modified datepage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByTypeAndModifiedDate(PortalEntity portal, java.util.List<java.lang.Class<? extends PortalEntity>> types, java.util.Date fromDate, java.util.Date toDate, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchtypes
- a list of types of objects to findfromDate
- the start time for the modified datetoDate
- the end time for the modified datepage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByType(java.lang.Class<T> type, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
type
- the type of the objects to findpage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByType(java.util.List<java.lang.Class<? extends PortalEntity>> types, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
types
- a list of types of objects to findpage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByTypeAndModifiedDate(java.lang.Class<T> type, java.util.Date fromDate, java.util.Date toDate, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
type
- the type of the objects to findfromDate
- the start time for the modified datetoDate
- the end time for the modified datepage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByTypeAndModifiedDate(java.util.List<java.lang.Class<? extends PortalEntity>> types, java.util.Date fromDate, java.util.Date toDate, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
types
- a list of types of objects to findfromDate
- the start time for the modified datetoDate
- the end time for the modified datepage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByNameAndType(java.lang.String name, java.lang.Class<T> type, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
name
- the object name to searchtype
- the type of the objects to findpage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByNameAndType(java.lang.String name, java.util.List<java.lang.Class<? extends PortalEntity>> types, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
name
- the name of the type to searchtypes
- a list of types of objects to findpage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction<T extends PortalEntity> java.util.List<T> queryByDocumentRefAndType(java.lang.String documentRef, java.util.List<java.lang.Class<? extends PortalEntity>> types, PaginationRule page) throws oracle.webcenter.portal.PortalOptimisticLockException
documentRef
- the documentRef of the type to searchtypes
- a list of types of objects to findpage
- the page of results to returnoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transactionQuery<PortalEntity> createQuery()
Note that object of all types will be queried unless the from-clause is
set using the Query.from(java.lang.Class<? extends T>...)
method.
<T extends PortalEntity> Query<T> createQuery(java.lang.Class<T> type)
Note that only objets of the specifed type will be queried (it will not
query objects that are a subtype of the specifed type) unless the
from-clause is set using the Query.from(java.lang.Class<? extends T>...)
method.
type
- the type being queriedboolean deleteById(java.lang.String id) throws oracle.webcenter.portal.PortalOptimisticLockException
id
- the ID of the PortalEntity to deletePersistenceAuthorizationException
- if entity with the given ID is secured and the current user does not
have permission to delete itoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.boolean deleteByName(PortalEntity portal, java.lang.String namespace, java.lang.String name) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- the portal to searchnamespace
- the namespace of the object to deletename
- the name of the object to deletePersistenceAuthorizationException
- if named entity is secured and the current user does not have permission
to delete itoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.boolean deleteByShortId(java.lang.String shortId) throws oracle.webcenter.portal.PortalOptimisticLockException
shortId
- the short ID of the PortalEntity to deletePersistenceAuthorizationException
- if entity with the given short ID is secured and the current user does
not have permission to delete itoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.boolean delete(PortalEntity portalEntity) throws oracle.webcenter.portal.PortalOptimisticLockException
portalEntity
- the PortalEntity to deletePersistenceAuthorizationException
- if entity is secured and the current user does not have permission to
delete itoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.<T extends PortalEntity> T copy(T source, PortalResource targetPortal, java.lang.String targetNamespace, java.lang.String targetName) throws DuplicateNameException
source
- The PortalEntity to copy.targetPortal
- Portal for the new PortalEntity.targetNamespace
- Namespace for the new PortalEntity.targetName
- Name for the new PortalEntity.DuplicateNameException
<T extends PortalEntity> T deepCopy(T source, PortalResource targetPortal, java.lang.String targetNamespace, java.lang.String targetName) throws DuplicateNameException, oracle.webcenter.portal.PortalOptimisticLockException
All strong references will be followed and copies made of the referenced entities. Weak references will be copied such that the new objects reference the same entities as the original object. Objects that are copied by following strong references will be given a temporary name unless the object is copied to a new portal, in which case the original name is retained.
The newly created entities will inherit security from the same entities as the corresponding source entities.
source
- The PortalEntity to copy.targetPortal
- Portal for the new PortalEntity.targetNamespace
- Namespace for the new PortalEntity.targetName
- Name for the new PortalEntity.oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.DuplicateNameException
<T extends PortalEntity> T deepCopy(T source, PortalResource targetPortal, java.lang.String targetNamespace, java.lang.String targetName, PostCopy<T> postCopy) throws DuplicateNameException, oracle.webcenter.portal.PortalOptimisticLockException
All strong references will be followed and copies made of the referenced entities. Weak references will be copied such that the new objects reference the same entities as the original object. Objects that are copied by following strong references will be given a temporary name unless the object is copied to a new portal, in which case the original name is retained.
The newly created entities will inherit security from the same entities as the corresponding source entities, if any.
source
- The PortalEntity to copy.targetPortal
- Portal for the new PortalEntity.targetNamespace
- Namespace for the new PortalEntity.targetName
- Name for the new PortalEntity.postCopy
- the PostCopy callback interfaceoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.DuplicateNameException
<S extends PortalEntity,T extends PortalEntity> T deepCopy(S source, PortalResource targetPortal, java.lang.String targetNamespace, java.lang.String targetName, java.lang.Class<T> targetType) throws DuplicateNameException, oracle.webcenter.portal.PortalOptimisticLockException
All strong references will be followed and copies made of the referenced entities. Weak references will be copied such that the new objects reference the same entities as the original object. Objects that are copied by following strong references will be given a temporary name unless the object is copied to a new portal, in which case the original name is retained. Note that only properties and references that the source type and target type have in common will be copied.
The newly created entities will inherit security from the same entities as the corresponding source entities, if any.
source
- The PortalEntity to copy.targetPortal
- Portal for the new PortalEntity.targetNamespace
- Namespace for the new PortalEntity.targetName
- Name for the new PortalEntity.targetType
- the type for the new PortalEntity.oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.DuplicateNameException
<S extends PortalEntity,T extends PortalEntity> T deepCopy(S source, PortalResource targetPortal, java.lang.String targetNamespace, java.lang.String targetName, java.lang.Class<T> targetType, PostCopy<T> postCopy, java.lang.String[] excludedReferenceNames) throws DuplicateNameException, oracle.webcenter.portal.PortalOptimisticLockException
All strong references will be followed and copies made of the referenced entities. Weak references will be copied such that the new objects reference the same entities as the original object. Objects that are copied by following strong references will be given a temporary name unless the object is copied to a new portal, in which case the original name is retained. Note that only properties and references that the source type and target type have in common will be copied.
The newly created entities will inherit security from the same entities as the corresponding source entities, if any.
source
- The PortalEntity to copy.targetPortal
- Portal for the new PortalEntity.targetNamespace
- Namespace for the new PortalEntity.targetName
- Name for the new PortalEntity.targetType
- the type for the new PortalEntity.postCopy
- the PostCopy callback interfaceexcludedReferenceNames
- array of reference names to nullify on the copied objectoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.DuplicateNameException
<S extends PortalEntity,T extends PortalEntity> T deepCopy(S source, T target)
All strong references will be followed and copies made of the referenced entities. Weak references will be copied such that the new objects reference the same entities as the original object. Objects that are copied by following strong references will be given a temporary name unless the object is copied to a new portal, in which case the original name is retained. Note that only properties and references that the source type and target type have in common will be copied.
The newly created entities will inherit security from the same entities as the corresponding source entities, if any.
source
- the source PortalEntity to copytarget
- the target PortalEntity to copy to<S extends PortalEntity,T extends PortalEntity> T deepCopy(S source, T target, PostCopy<T> postCopy)
All strong references will be followed and copies made of the referenced entities. Weak references will be copied such that the new objects reference the same entities as the original object. Objects that are copied by following strong references will be given a temporary name unless the object is copied to a new portal, in which case the original name is retained. Note that only properties and references that the source type and target type have in common will be copied.
The newly created entities will inherit security from the same entities as the corresponding source entities, if any.
source
- the source PortalEntity to copytarget
- the target PortalEntity to copy topostCopy
- the PostCopy callback interface<T extends PortalEntity> java.util.List<T> getEntitiesForExport(PortalEntity entity)
entity
- The entity to query.@Deprecated org.w3c.dom.Document exportXML(java.util.Set<? extends PortalEntity> entities, boolean followRefs) throws PersistenceExportException
exportXML(Set, ExportOptions)
PersistReference
annotations with the
export
element set to true
.entities
- the set of PortalEntity objects to include in the exported datafollowRefs
- whether or not objects that are referenced by those in the export set should
also be included in the exported dataPersistenceExportException
- if an error occurs during the creation of export dataorg.w3c.dom.Document exportXML(java.util.Set<? extends PortalEntity> entities, ExportOptions options) throws PersistenceExportException
PersistReference
annotations with the export
element
set to true
.entities
- the set of PortalEntity objects to include in the exported
dataoptions
- the export optionsPersistenceExportException
- if an error occurs during the creation
of export datajava.util.Set<PortalEntity> importXML(org.w3c.dom.Document... exportData) throws PersistenceImportException
exportData
- XML documents containing the data to be importedPersistenceImportException
- if an error occurs whilst importing the datajava.util.Set<PortalEntity> importXML(PortalEntity portal, org.w3c.dom.Document... exportData) throws PersistenceImportException
portal
- the target portal for importexportData
- XML documents containing the data to be importedPersistenceImportException
- if an error occurs whilst importing the dataImportReport getImportReport(org.w3c.dom.Document... exportData) throws PersistenceException
exportData
- The export set (or sets)PersistenceException
- if the import report could not be generatedvoid registerPersistenceListener(PersistenceListener listener)
listener
- the listenerPersistenceListener getPersistenceListener()
void lock(PortalEntity entity, LockMode lockMode)
entity
- the PortalEntity object to locklockMode
- the lock modeboolean createAllowed(java.lang.Class<? extends PortalEntity> type, PortalResource portal)
type
- The type the user wants to create and instance ofportal
- The portal the user wants to create the object within, if anyvoid notifyExternallyModified()
void cleanUpPortalResource(PortalResource resource) throws oracle.webcenter.portal.BasePortalRuntimeException
resource
- PortalResource instanceoracle.webcenter.portal.BasePortalRuntimeException
java.util.List<java.lang.String> findSourceIdBySourceAndName(java.lang.String name, java.util.List<java.lang.String> sources, PaginationRule page)
name
- the name of the referencesources
- list of acceptable source of the PortalEntityRefObject to findpage
- the pagination rule to apply to the results