|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.eff.EffGroupAssistant
Assistant for getting EffGroup
s, converting EffRange
s
to and from String
s, and adding the Eff
s associated
to EffManagedVersion
s to EffGroup
s.
Provides client- and server-side APIs to assign Eff
s to
EffManagedVersion
s. This assistant provides a client/customization-friendly
API to work with Eff
s without interacting with the data
model directly.
Supported API: true
Extendable: false
EffGroupAssistantEvent
,
EffGroupRangeDelegate
,
Serialized FormNested Class Summary | |
private class |
EffGroupAssistant.EffRangePredicate
|
private static class |
EffGroupAssistant.Key
This implementation class implements a hashable key for an Eff or EffGroup object, based on the intersection of version branch id, context object id, and effectivity type. |
Field Summary | |
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static EffGroupAssistant |
factory
|
private static String |
FC_RESOURCE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) static boolean |
SERVER
|
private static ManagerService |
service
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
EffGroupAssistant()
|
Method Summary | |
protected static EffManagedVersion[] |
_appendEffGroups(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups)
Adds the EffGroups to each of the EffManagedVersions. |
protected static EffManagedVersion[] |
_appendEffGroups(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups,
ChangeActivityIfc authorizedBy)
Adds the EffGroups to each of the EffManagedVersions. |
protected static EffManagedVersion[] |
_appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups)
Adds the EffGroups to each of the EffManagedVersions. |
protected static EffManagedVersion[] |
_appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups,
ChangeActivityIfc authorizedBy)
Adds the EffGroups to each of the EffManagedVersions. |
protected static EffManagedVersion |
_appendEffVector(EffManagedVersion effManagedVersion)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersion. |
protected static EffManagedVersion[] |
_appendEffVector(EffManagedVersion[] effManagedVersions)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
protected static EffManagedVersion[] |
_appendEffVector(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
protected static EffManagedVersion |
_appendEffVector(EffManagedVersion effManagedVersion,
ChangeActivityIfc authorizedBy)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersion. |
protected static EffManagedVersion[] |
_appendEffVectorQuietly(EffManagedVersion[] effManagedVersions)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
protected static EffManagedVersion[] |
_appendEffVectorQuietly(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
protected static EffManagedVersion |
_populateEffVector(EffManagedVersion effManagedVersion)
Populate the effVector of the EffManagedVersion by querying the database for all the version's effectivities and converting them to EffGroups. |
protected static EffManagedVersion[] |
_populateEffVector(EffManagedVersion[] effManagedVersions)
Populate the effVectors of the EffManagedVersions by querying the database for all the version's effectivities and converting them to EffGroups. |
protected static EffManagedVersion[] |
_populateEffVectorWithoutRefreshing(EffManagedVersion[] effManagedVersions)
Populate the effVectors of the EffManagedVersions by querying the database for all the version's effectivities and converting them to EffGroups. |
protected static EffManagedVersion |
_replaceEffVector(EffManagedVersion effManagedVersion)
Replaces the current effectivities stored in the DB for this EffManagedVersion with the effectivities represented in the EffGroups in the effVector. |
protected static EffManagedVersion[] |
_replaceEffVector(EffManagedVersion[] effManagedVersions)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
protected static EffManagedVersion[] |
_replaceEffVector(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
protected static EffManagedVersion |
_replaceEffVector(EffManagedVersion effManagedVersion,
ChangeActivityIfc authorizedBy)
Replaces the current effectivities stored in the DB for this EffManagedVersion with the effectivities represented in the EffGroups in the effVector. |
protected static EffManagedVersion[] |
_replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
protected static EffManagedVersion[] |
_replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
private static EffManagedVersion[] |
_updateEffVectorQuietly(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy,
boolean isReplace)
Updates the effectivity vectors of the specified EffManagedVersion objects without dispatching any persistence or effectivity service events. |
static EffManagedVersion[] |
appendEffGroups(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups)
Adds the EffGroups to each of the EffManagedVersions. |
static EffManagedVersion[] |
appendEffGroups(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups,
ChangeActivityIfc authorizedBy)
Adds the EffGroups to each of the EffManagedVersions. |
static EffManagedVersion[] |
appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups)
Adds the EffGroups to each of the EffManagedVersions. |
static EffManagedVersion[] |
appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups,
ChangeActivityIfc authorizedBy)
Adds the EffGroups to each of the EffManagedVersions. |
static EffManagedVersion |
appendEffVector(EffManagedVersion effManagedVersion)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersion. |
static EffManagedVersion[] |
appendEffVector(EffManagedVersion[] effManagedVersions)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
static EffManagedVersion[] |
appendEffVector(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
static EffManagedVersion |
appendEffVector(EffManagedVersion effManagedVersion,
ChangeActivityIfc authorizedBy)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersion. |
static EffManagedVersion[] |
appendEffVectorQuietly(EffManagedVersion[] effManagedVersions)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
static EffManagedVersion[] |
appendEffVectorQuietly(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Adds the effectivities represented by the EffGroups in the effVector to the EffManagedVersions. |
private static long[][] |
chunkIds(Set idSet)
Chunks the specified set of IDs (instances of Long objects) into blocks of 254, suitable for use in an SQL IN clause. |
private static void |
dispatchVetoableEvent(String eventType,
EffManagedVersion[] effManagedVersions)
|
private static void |
dispatchVetoableEvent(String eventType,
EffManagedVersion[] effManagedVersions,
EffGroup[] effGroups)
|
static String |
effRangesToRange(EffRange[] effRanges)
Converts an array of EffRanges to a string representation of them. |
private static QueryResult |
findEffsQuietly(long[][] bids,
long[][] oids)
Retrieves from the database the Eff objects whose 'target' branch IDs and 'effContext' OIDs match those specified. |
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: applicationContext. |
static String |
getDash()
Gets the value of the attribute: dash; The string value representing the dash for the range. |
private static EffGroupRangeDelegate |
getEffGroupRangeDelegate(Class rangeType)
|
private static Map |
getPredHistorySizeMap(Set bidSet)
Constructs a map relating Key objects to Integer objects representing the cardinalities of effectivity histories. |
private static Set |
getPrivateBidSet(EffManagedVersion[] versions)
Constructs a set of the branch identifiers of the specified EffManagedVersion objects that are private (refer to the definition of the isPrivate() method). |
static String |
getSeparator()
Gets the value of the attribute: separator; The string value representing the separator for the range. |
static EffGroup[] |
getValidEffGroups(EffContext effContext)
Gets all the EffGroups (based on the valid Effs) for this context, and assigns the contex to it. |
static EffGroup[] |
getValidEffGroups(EffManagedVersion target,
EffContext effContext)
Gets all the EffGroups (based on the valid Effs) for this context, and assigns the context and the version to it. |
private static QueryResult |
inflateObjectReferences(QueryResult qr,
EffManagedVersion[] versions,
boolean inflateContexts,
boolean inflateAudits,
boolean inflatePrincipals,
boolean inflateChangeActivities)
Inflates the specified object references in the given QueryResult of Eff objects. |
private static Map |
inflateOids(Class target,
Set oidSet,
boolean ac)
Inflates the specified set of OIDs for the specified target class, enforcing access control as specified. |
(package private) static boolean |
isPrivate(EffManagedVersion emv)
Returns true if and only if the specified EffManagedVersion is a private object. |
static EffManagedVersion |
populateEffVector(EffManagedVersion effManagedVersion)
Populate the effVector of the EffManagedVersion by querying the database for all the version's effectivities and converting them to EffGroups. |
static EffManagedVersion[] |
populateEffVector(EffManagedVersion[] effManagedVersions)
Populate the effVectors of the EffManagedVersions by querying the database for all the version's effectivities and converting them to EffGroups. |
static EffManagedVersion[] |
populateEffVectorWithoutRefreshing(EffManagedVersion[] effManagedVersions)
Populate the effVectors of the EffManagedVersions by querying the database for all the version's effectivities and converting them to EffGroups. |
static EffRange[] |
rangeToEffRanges(Class effRange,
String range)
Converts a range to an array of EffRanges. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(EffGroupAssistant thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private static void |
refreshVersions(EffManagedVersion[] effManagedVersions)
|
static EffManagedVersion |
replaceEffVector(EffManagedVersion effManagedVersion)
Replaces the current effectivities stored in the DB for this EffManagedVersion with the effectivities represented in the EffGroups in the effVector. |
static EffManagedVersion[] |
replaceEffVector(EffManagedVersion[] effManagedVersions)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
static EffManagedVersion[] |
replaceEffVector(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
static EffManagedVersion |
replaceEffVector(EffManagedVersion effManagedVersion,
ChangeActivityIfc authorizedBy)
Replaces the current effectivities stored in the DB for this EffManagedVersion with the effectivities represented in the EffGroups in the effVector. |
static EffManagedVersion[] |
replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
static EffManagedVersion[] |
replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions,
ChangeActivityIfc authorizedBy)
Replaces the current effectivities stored in the DB for these EffManagedVersions with the effectivities represented in the EffGroups in the effVector. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: applicationContext. |
private static EffRange[] |
truncateEffRanges(EffRange[] effRanges)
|
static void |
validateRange(Class effRange,
String range)
Validates the range. |
private static void |
validateVersions(EffManagedVersion[] versions)
Validates the specified EffManagedVersion objects for suitability as targets in Eff operations. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final boolean SERVER
private static final String FC_RESOURCE
private ApplicationContext applicationContext
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static EffGroupAssistant factory
private static ManagerService service
Constructor Detail |
public EffGroupAssistant()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EffGroupAssistant thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static String getSeparator()
effResource
public static String getDash()
effResource
public static EffGroup[] getValidEffGroups(EffManagedVersion target, EffContext effContext)
target
- effContext
-
public static EffGroup[] getValidEffGroups(EffContext effContext)
effContext
-
public static EffRange[] rangeToEffRanges(Class effRange, String range) throws WTPropertyVetoException
effRange
- range
-
WTPropertyVetoException
EffGroupRangeDelegate
public static String effRangesToRange(EffRange[] effRanges) throws WTPropertyVetoException
effRanges
-
WTPropertyVetoException
EffGroupRangeDelegate
public static void validateRange(Class effRange, String range) throws WTPropertyVetoException
effRange
- range
-
WTPropertyVetoException
EffGroupRangeDelegate
public static EffManagedVersion populateEffVector(EffManagedVersion effManagedVersion) throws WTException
effManagedVersion
-
WTException
protected static EffManagedVersion _populateEffVector(EffManagedVersion effManagedVersion) throws WTException
effManagedVersion
-
WTException
public static EffManagedVersion[] populateEffVector(EffManagedVersion[] effManagedVersions) throws WTException
effManagedVersions
-
WTException
protected static EffManagedVersion[] _populateEffVector(EffManagedVersion[] effManagedVersions) throws WTException
effManagedVersions
-
WTException
public static EffManagedVersion replaceEffVector(EffManagedVersion effManagedVersion, ChangeActivityIfc authorizedBy) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersion
- authorizedBy
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion _replaceEffVector(EffManagedVersion effManagedVersion, ChangeActivityIfc authorizedBy) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersion
- authorizedBy
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] replaceEffVector(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersions
- authorizedBy
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion[] _replaceEffVector(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersions
- authorizedBy
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion appendEffVector(EffManagedVersion effManagedVersion, ChangeActivityIfc authorizedBy) throws WTException
Dispatches EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersion
- authorizedBy
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion _appendEffVector(EffManagedVersion effManagedVersion, ChangeActivityIfc authorizedBy) throws WTException
Dispatches EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersion
- authorizedBy
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] appendEffVector(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersions
- authorizedBy
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion[] _appendEffVector(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersions
- authorizedBy
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] appendEffGroups(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups, ChangeActivityIfc authorizedBy) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_GROUPS and POST_APPEND_EFF_GROUPS.
effManagedVersions
- effGroups
- authorizedBy
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion[] _appendEffGroups(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups, ChangeActivityIfc authorizedBy) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_GROUPS and POST_APPEND_EFF_GROUPS.
effManagedVersions
- effGroups
- authorizedBy
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] populateEffVectorWithoutRefreshing(EffManagedVersion[] effManagedVersions) throws WTException
effManagedVersions
-
WTException
protected static EffManagedVersion[] _populateEffVectorWithoutRefreshing(EffManagedVersion[] effManagedVersions) throws WTException
effManagedVersions
-
WTException
public static EffManagedVersion[] replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
No events are emitted by this call.
effManagedVersions
- authorizedBy
-
WTException
protected static EffManagedVersion[] _replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
No events are emitted by this call.
effManagedVersions
- authorizedBy
-
WTException
public static EffManagedVersion[] appendEffVectorQuietly(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
No events are emitted by this call.
effManagedVersions
- authorizedBy
-
WTException
protected static EffManagedVersion[] _appendEffVectorQuietly(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy) throws WTException
No events are emitted by this call.
effManagedVersions
- authorizedBy
-
WTException
public static EffManagedVersion[] appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups, ChangeActivityIfc authorizedBy) throws WTException
No events are emitted by this call.
effManagedVersions
- effGroups
- authorizedBy
-
WTException
protected static EffManagedVersion[] _appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups, ChangeActivityIfc authorizedBy) throws WTException
No events are emitted by this call.
effManagedVersions
- effGroups
- authorizedBy
-
WTException
public static EffManagedVersion replaceEffVector(EffManagedVersion effManagedVersion) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersion
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion _replaceEffVector(EffManagedVersion effManagedVersion) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersion
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] replaceEffVector(EffManagedVersion[] effManagedVersions) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersions
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion[] _replaceEffVector(EffManagedVersion[] effManagedVersions) throws WTException
Dispatches EffGroupAssistantEvent's PRE_REPLACE_EFF_VECTOR and POST_REPLACE_EFF_VECTOR.
effManagedVersions
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion appendEffVector(EffManagedVersion effManagedVersion) throws WTException
Dispatches EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersion
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion _appendEffVector(EffManagedVersion effManagedVersion) throws WTException
Dispatches EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersion
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] appendEffVector(EffManagedVersion[] effManagedVersions) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersions
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion[] _appendEffVector(EffManagedVersion[] effManagedVersions) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_VECTOR and POST_APPEND_EFF_VECTOR.
effManagedVersions
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] appendEffGroups(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_GROUPS and POST_APPEND_EFF_GROUPS.
effManagedVersions
- effGroups
-
WTException
EffGroupAssistantEvent
protected static EffManagedVersion[] _appendEffGroups(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups) throws WTException
Emits EffGroupAssistantEvent's PRE_APPEND_EFF_GROUPS and POST_APPEND_EFF_GROUPS.
effManagedVersions
- effGroups
-
WTException
EffGroupAssistantEvent
public static EffManagedVersion[] replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions) throws WTException
No events are emitted by this call.
effManagedVersions
-
WTException
protected static EffManagedVersion[] _replaceEffVectorQuietly(EffManagedVersion[] effManagedVersions) throws WTException
No events are emitted by this call.
effManagedVersions
-
WTException
public static EffManagedVersion[] appendEffVectorQuietly(EffManagedVersion[] effManagedVersions) throws WTException
No events are emitted by this call.
effManagedVersions
-
WTException
protected static EffManagedVersion[] _appendEffVectorQuietly(EffManagedVersion[] effManagedVersions) throws WTException
No events are emitted by this call.
effManagedVersions
-
WTException
public static EffManagedVersion[] appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups) throws WTException
No events are emitted by this call.
effManagedVersions
- effGroups
-
WTException
protected static EffManagedVersion[] _appendEffGroupsQuietly(EffManagedVersion[] effManagedVersions, EffGroup[] effGroups) throws WTException
No events are emitted by this call.
effManagedVersions
- effGroups
-
WTException
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
private static EffGroupRangeDelegate getEffGroupRangeDelegate(Class rangeType)
private static EffRange[] truncateEffRanges(EffRange[] effRanges) throws WTPropertyVetoException
WTPropertyVetoException
private static void refreshVersions(EffManagedVersion[] effManagedVersions) throws WTException
WTException
private static void dispatchVetoableEvent(String eventType, EffManagedVersion[] effManagedVersions) throws WTException
WTException
private static void dispatchVetoableEvent(String eventType, EffManagedVersion[] effManagedVersions, EffGroup[] effGroups) throws WTException
WTException
private static QueryResult inflateObjectReferences(QueryResult qr, EffManagedVersion[] versions, boolean inflateContexts, boolean inflateAudits, boolean inflatePrincipals, boolean inflateChangeActivities) throws WTException, WTPropertyVetoException
qr
- QueryResult whose (Eff) elements' object references are to be inflated
versions array of EffManagedVersion objects that are the 'target' references of the Eff objects in the QueryResult (included to avoid unnecessary re-retrieval from the database)
inflateContexts boolean specifying whether or not to inflate 'effContext' references
inflateAudits boolean specifying whether to inflate references to EffChangeAudit objects
inflatePrincipals boolean specifying whether to inflate references to WTPrincipal objects
inflateChangeActivities boolean specifying whether to inflate references to ChangeActivityIfc objects (via EffChangeAudit objects)
WTException
WTPropertyVetoException
private static Map inflateOids(Class target, Set oidSet, boolean ac) throws WTException
target
- Class of the objects whose OIDs are to be inflated
oidSet Set of OIDs to be inflated
ac boolean specifying whether or not to enforce access control for the inflation
WTException
private static void validateVersions(EffManagedVersion[] versions) throws WTException, WTPropertyVetoException
versions
- array of EffManagedVersion objects to be validated
WTException
WTPropertyVetoException
private static long[][] chunkIds(Set idSet)
idSet
- Set of Long objects
private static QueryResult findEffsQuietly(long[][] bids, long[][] oids) throws WTException
bids
- array of arrays of long values representing the 'target' branch identifiers
oids array of arrays of long values representing the 'effContext' OIDs
WTException
private static Set getPrivateBidSet(EffManagedVersion[] versions) throws WTException
versions
- array of EffManagedVersion objects from which the branch identifiers of private versions are to be collected
WTException
private static Map getPredHistorySizeMap(Set bidSet) throws WTException
bidSet
- Set of Long objects representing the branch identifiers of EffManagedVersion objects to be mapped to their respective predecessor's effectivity histories' sizes
WTException
private static EffManagedVersion[] _updateEffVectorQuietly(EffManagedVersion[] effManagedVersions, ChangeActivityIfc authorizedBy, boolean isReplace) throws WTException, WTPropertyVetoException
effManagedVersions
- array of EffManagedVersion objects whose effectivity vectors are to be updated
authorizedBy change activity via which the effectivity updated is being effected
isReplace boolean specifying whether the operation is an effectivity replacement or not (i.e., effectivity is being appended)
WTException
WTPropertyVetoException
static boolean isPrivate(EffManagedVersion emv) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |