Package com._1c.g5.v8.derived
Class DerivedDataObjectStatus
- java.lang.Object
-
- com._1c.g5.v8.derived.DerivedDataObjectStatus
-
public class DerivedDataObjectStatus extends Object
Collection of derived data calculation states for predefined set of BM objects. Used to transfer DD status updates for DD object status change subscribers.
-
-
Constructor Summary
Constructors Constructor Description DerivedDataObjectStatus(long bmObjectId)
Creates a derived data status for the given BM object.DerivedDataObjectStatus(Object objectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInvalidSegment(String invalidSegment)
Adds invalid DD segment to the object status.
This method doesn't validates unique additions and/or contradicting additions (like both valid and invalid) due to performance reasons.void
addValidSegment(String validSegment)
Adds valid DD segment to the object status.
This method doesn't validates unique additions and/or contradicting additions (like both valid and invalid) due to performance reasons.long
getBmObjectId()
Gets the identifier of the context object.Set<String>
getInvalidSegments()
Gets the set of invalid DD segments for the context object.Object
getObjectId()
Set<String>
getValidSegments()
Gets the set of valid DD segments for the context object.
-
-
-
Constructor Detail
-
DerivedDataObjectStatus
public DerivedDataObjectStatus(long bmObjectId)
Creates a derived data status for the given BM object.- Parameters:
bmObjectId
- The identifier of the target BM object.
-
DerivedDataObjectStatus
public DerivedDataObjectStatus(Object objectId)
-
-
Method Detail
-
addInvalidSegment
public void addInvalidSegment(String invalidSegment)
Adds invalid DD segment to the object status.
This method doesn't validates unique additions and/or contradicting additions (like both valid and invalid) due to performance reasons.- Parameters:
invalidSegment
- The DD segment to add. Cannot benull
.
-
addValidSegment
public void addValidSegment(String validSegment)
Adds valid DD segment to the object status.
This method doesn't validates unique additions and/or contradicting additions (like both valid and invalid) due to performance reasons.- Parameters:
validSegment
- The DD segment to add. Cannot benull
.
-
getBmObjectId
public long getBmObjectId()
Gets the identifier of the context object.- Returns:
- The identifier of the BM object the DD status is being retrieved for.
-
getObjectId
public Object getObjectId()
-
getInvalidSegments
public Set<String> getInvalidSegments()
Gets the set of invalid DD segments for the context object.- Returns:
- The set of invalid segments. Cannot be
null
. The returned set is mutable, no protection due to performance reasons.
-
-