Checks configuration in checkin manager for conflicts in array

Namespace:  Aras.IOME
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public ArrayList CheckForConflicts(
	ArrayList rulesArray
)
Visual Basic (Declaration)
Public Function CheckForConflicts ( _
	rulesArray As ArrayList _
) As ArrayList
J#
public ArrayList CheckForConflicts(
	ArrayList rulesArray
)
JScript
public function CheckForConflicts(
	rulesArray : ArrayList
) : ArrayList

Parameters

rulesArray
Type: System.Collections..::.ArrayList
Array of IConflictDetectionRule for which check operation should be performed.

Return Value

ArrayList of ConflictDetectionResult

Examples

CopyC#
...
HttpServerConnection connection = CreateHttpServerConnection("innovatorServerUrl");
Innovator innovator = IomFactory.CreateInnovator(connection);
Item itm = innovator.newItem();
itm.loadAML("<AML/>");
CheckinManager checkin = factory.CreateCheckinManager(itm);
ConflictDetectionRuleFactory conflictFactory = checkin.GetConflictDetectionRuleFactory();
ArrayList rules = new ArrayList();
rules.Add(conflictFactory.FileNotAccessible);
ArrayList result = checkin.CheckForConflicts(rules);
...
CopyC++
...
IOM::IHttpServerConnectionComIncomingPtr connection = iomFactory->CreateHttpServerConnection(innovatorServerUrl, database, userName, password);
connection->Login();
IOM::IInnovatorComIncomingPtr innovator = iomFactory->CreateInnovator(connection);
IOM::IItemComIncomingPtr configuration = innovator->newItem("CAD", "add");
configuration->loadAML(aml);
IOM::ICheckinManagerComIncomingPtr checkinManager = iomFactory->CreateCheckinManager(configuration);
IOM::IConflictDetectionRuleFactoryComIncomingPtr ruleFactory = checkinManager->GetConflictDetectionRuleFactory();
IOM::ILocalConflictDetectionRuleComIncomingPtr customRule = ruleFactory->CreateCustomConflictDetectionRule(innovator->getConnection(), "test");
mscorlib::_ArrayListPtr myAL = iomFactory->CreateArrayList();
mscorlib::IListPtr myList = myAL;
VARIANT v;
v.vt = VT_DISPATCH;
v.pdispVal = customRule;
myList->Add(v);
mscorlib::_ArrayListPtr result = checkinManager->CheckForConflicts(myAL);
...

See Also