public class OwMultipleObjectsProcessCollector extends Object
This is an utility class which holds the elements affected by a multiple objects operation. This class holds the names of correct processed objects, their DMSIDs, the names of objects who fail to be processed, and the localized error messages in case of failure.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Class and Description |
---|---|
static class |
OwMultipleObjectsProcessCollector.OwObjectCollectData
Object data caching class.
|
Constructor and Description |
---|
OwMultipleObjectsProcessCollector()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFailedObjectData(OwMultipleObjectsProcessCollector.OwObjectCollectData collectData_p) |
void |
addProcessedObjectData(OwMultipleObjectsProcessCollector.OwObjectCollectData collectData_p) |
void |
addProcessedObjectFailureMessages(String localizedMessage_p)
Add the reason why an object cannot be deleted.
|
void |
addUnprocessedObjectData(OwMultipleObjectsProcessCollector.OwObjectCollectData collectData_p) |
void |
clear()
Clear all lists for this instance.
|
OwMultipleObjectsProcessCollector.OwObjectCollectData |
createCollectData(OwObject object_p) |
String |
getAllErrorMessages()
Get all error messages as a unified string.
|
List |
getAllErrorNames()
Get the list with all object names that fail to be processed.
|
List |
getAllErrorObjects()
Get the list with all objects that fail to be processed.
|
List |
getDisabledObjectNames()
The list of disabled objects names.
|
List |
getDisabledObjects()
The list with disabled objects.
|
List |
getFailedObjectsData()
Returns the list of
OwMultipleObjectsProcessCollector.OwObjectCollectData objects that are not processed. |
String |
getFailToProcessErrorMessages()
Get the reason why the objects cannot be processed.
|
List |
getFailToProcessNames()
Get the list with names of objects that fail to be processed.
|
Set |
getProcessedDmsIds()
Get the list of processed DMSIDs.
|
List |
getProcessedNames()
Get the names of processed objects.
|
List |
getProcessedObjects()
Get the list with successfully processed objects
|
boolean |
hasErrors()
Check if the process operation has errors.
|
boolean |
hasProcessedObjects()
Check if some of the objects were successfully processed.
|
boolean |
hasProcessErrors()
Check if the process operation has errors
|
public OwMultipleObjectsProcessCollector()
public OwMultipleObjectsProcessCollector.OwObjectCollectData createCollectData(OwObject object_p) throws Exception
Exception
public void addUnprocessedObjectData(OwMultipleObjectsProcessCollector.OwObjectCollectData collectData_p)
public void addProcessedObjectData(OwMultipleObjectsProcessCollector.OwObjectCollectData collectData_p)
public void addFailedObjectData(OwMultipleObjectsProcessCollector.OwObjectCollectData collectData_p)
public void clear()
public void addProcessedObjectFailureMessages(String localizedMessage_p)
localizedMessage_p
- - the message.public String getFailToProcessErrorMessages()
public boolean hasProcessedObjects()
true
- if some of the objects were successfully deleted.public boolean hasProcessErrors()
true
- delete operation has errors.public Set getProcessedDmsIds()
public List getProcessedNames()
public List getProcessedObjects()
java.util.List
the list of objects.public List getFailToProcessNames()
public boolean hasErrors()
true
if the process operation has errors.public List getAllErrorNames()
public List getAllErrorObjects()
public String getAllErrorMessages()
public List getDisabledObjects()
public List getDisabledObjectNames()
public List getFailedObjectsData()
OwMultipleObjectsProcessCollector.OwObjectCollectData
objects that are not processed.List
of OwMultipleObjectsProcessCollector.OwObjectCollectData
objects that are not processed.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.