public class MapReferencesTask extends SessionedTask<java.util.Set<Ref>>
| Constructor and Description |
|---|
MapReferencesTask(java.util.Collection<Ref> refs, java.util.Map<Ref,Ref> refMap)
COnstructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Ref> |
_execute()
Subclasses implement this method
|
static java.util.Set<Ref> |
mapReferences(ConfigService configService, java.lang.String session, java.util.Collection<Ref> refs, java.util.Map<Ref,Ref> refMap) |
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransactionpublic MapReferencesTask(java.util.Collection<Ref> refs, java.util.Map<Ref,Ref> refMap)
refs - list of resources to be modified with the new referencesrefMap - map of references. key is the old ref and value is the new ref. refMap is validated first for any invalid or cyclic references. resourcesToConsider can also contain Project or Folder, in which case all the resources in that project or folder are modified with the new set of references passed in the refMap.public static java.util.Set<Ref> mapReferences(ConfigService configService, java.lang.String session, java.util.Collection<Ref> refs, java.util.Map<Ref,Ref> refMap) throws NotFoundException, UpdateException
NotFoundExceptionUpdateExceptionpublic java.util.Set<Ref> _execute() throws NotFoundException, UpdateException
SessionedTask_execute in class SessionedTask<java.util.Set<Ref>>NotFoundExceptionUpdateException