Record Class MirrorPassReport
- Record Components:
userIdentityId- identity of the user the pass ran forusername- the login of that user, or null when it could not be resolvedfullName- the display name of that user, or null when it could not be resolvedat- when the pass endedverification- what the comparison of the copies found and repairedrelocation- what the move of the copies to a new destination did — adeferredone on the ordinary pass, which owes no move at all
What the last pass over one user's copies found and moved.
The two tallies together, never one of them: the destination setting of EXO-89762 is applied by a relocation and then judged by a verification, and an administrator asking "did my change take effect" is asking about both. Split across two screens they would be two facts nobody joins up.
Why this exists at all. Before it, the only way to know whether a change of destination had landed was to read the server log — which puts the measurement gate this add-on asks for ("choose the account's main calendar only once copies synchronise cleanly on this server") behind a permission no product owner has. A tally on screen is what turns "measured" into something the person who has to make the decision can check.
-
Constructor Summary
ConstructorsConstructorDescriptionMirrorPassReport(long userIdentityId, String username, String fullName, Date at, org.exoplatform.caldav.model.MirrorVerification verification, MirrorRelocation relocation) Creates an instance of aMirrorPassReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.final booleanIndicates whether some other object is "equal to" this one.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.The same report, with the identity of its user filled in.booleanWhether this pass actually moved copies between calendars.Returns the value of therelocationrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theuserIdentityIdrecord component.username()Returns the value of theusernamerecord component.org.exoplatform.caldav.model.MirrorVerificationReturns the value of theverificationrecord component.
-
Constructor Details
-
MirrorPassReport
public MirrorPassReport(long userIdentityId, String username, String fullName, Date at, org.exoplatform.caldav.model.MirrorVerification verification, MirrorRelocation relocation) Creates an instance of aMirrorPassReportrecord class.- Parameters:
userIdentityId- the value for theuserIdentityIdrecord componentusername- the value for theusernamerecord componentfullName- the value for thefullNamerecord componentat- the value for theatrecord componentverification- the value for theverificationrecord componentrelocation- the value for therelocationrecord component
-
-
Method Details
-
named
The same report, with the identity of its user filled in.Resolved when the report is READ rather than when it is recorded: the pass runs on every synchronisation of every connected account, the screen is opened by an administrator once in a while, and a lookup per pass would be a cost paid forever for a fact almost nobody looks at.
- Parameters:
resolvedUsername- the login, or nullresolvedFullName- the display name, or null- Returns:
- a copy carrying the identity
-
relocated
public boolean relocated()Whether this pass actually moved copies between calendars.The ordinary pass owes no move, so its relocation is deferred and every count is zero; saying "0 moved" on those would bury the accounts where a destination change is genuinely still working itself out.
- Returns:
- true when the pass tried to move at least one copy
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
userIdentityId
public long userIdentityId()Returns the value of theuserIdentityIdrecord component.- Returns:
- the value of the
userIdentityIdrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
fullName
Returns the value of thefullNamerecord component.- Returns:
- the value of the
fullNamerecord component
-
at
Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-
verification
public org.exoplatform.caldav.model.MirrorVerification verification()Returns the value of theverificationrecord component.- Returns:
- the value of the
verificationrecord component
-
relocation
Returns the value of therelocationrecord component.- Returns:
- the value of the
relocationrecord component
-