Package com.isode.dsapi.config
Class FailoverGroups.ErrorInfo
java.lang.Object
com.isode.dsapi.config.FailoverGroups.ErrorInfo
- Enclosing class:
- FailoverGroups
Contains information about something that's not right. Various
factory methods are used to create ErrorInfo objects describing
different types of error
-
Method Summary
Modifier and TypeMethodDescriptionstatic FailoverGroups.ErrorInfo
dsaInMultipleGroups
(DN dsaDN) Create an ErrorInfo object for SAME_DSA_IN_MULTIPLE_GROUPSDetermine what type of error it isGet the error type as a label.Return the DN of the group which this error relates to.Return the DN of the member which this error relates to.static FailoverGroups.ErrorInfo
groupWithNoMembers
(DN groupDN) Create an ErrorInfo object for GROUP_HAS_NO_MEMBERSstatic FailoverGroups.ErrorInfo
groupWithNonMemberMaster
(DN groupDN, DN masterDN) Create an ErrorInfo object for GROUP_HAS_MASTER_WHICH_IS_NOT_MEMBERstatic FailoverGroups.ErrorInfo
groupWithoutMaster
(DN groupDN) Create an ErrorInfo object for GROUP_HAS_NO_MASTERstatic FailoverGroups.ErrorInfo
inconsistentMemberShip
(DN groupDN) Create an ErrorInfo object for GROUP_HAS_INCONSISTENT_MEMBERSHIPstatic FailoverGroups.ErrorInfo
memberHasMasterWhichIsNotMember
(DN memberDN, DN masterDN) Create an ErrorInfo object for MEMBER_HAS_MASTER_WHICH_IS_NOT_MEMBERstatic FailoverGroups.ErrorInfo
memberReportsWrongMaster
(DN memberDN, DN masterDN) Create an ErrorInfo object for MEMBER_REPORTS_WRONG_MASTERstatic FailoverGroups.ErrorInfo
membershipDisputed
(DN groupDN, DN dsaDN) Create an ErrorInfo object for MEMBERSHIP_DISPUTEDstatic FailoverGroups.ErrorInfo
memberWithIncorrectMemberList
(DN groupDN, DN memberDN) Create an ErrorInfo object for MEMBER_HAS_INCORRECT_MEMBERLISTstatic FailoverGroups.ErrorInfo
multipleMasters
(DN groupDN, Set<DN> masters) Create an ErrorInfo object for GROUP_HAS_MULTIPLE_MASTERStoString()
Return string representation of this object, for debugging
-
Method Details
-
getErrorType
Determine what type of error it is- Returns:
- an ErrorType
-
getErrorTypeString
Get the error type as a label.- Returns:
- User friendly label representing error type.
- Since:
- 16.3
-
dsaInMultipleGroups
Create an ErrorInfo object for SAME_DSA_IN_MULTIPLE_GROUPS- Parameters:
dsaDN
- the DSA- Returns:
- the ErrorInfo object
-
membershipDisputed
Create an ErrorInfo object for MEMBERSHIP_DISPUTED- Parameters:
groupDN
- the group DNdsaDN
- the DSA- Returns:
- the ErrorInfo object
-
multipleMasters
Create an ErrorInfo object for GROUP_HAS_MULTIPLE_MASTERS- Parameters:
groupDN
- the group in questionmasters
- the DSAs that people are claiming are masters- Returns:
- the ErrorInfo object
-
inconsistentMemberShip
Create an ErrorInfo object for GROUP_HAS_INCONSISTENT_MEMBERSHIP- Parameters:
groupDN
- the group in question- Returns:
- the ErrorInfo object
-
groupWithoutMaster
Create an ErrorInfo object for GROUP_HAS_NO_MASTER- Parameters:
groupDN
- the group in question- Returns:
- the ErrorInfo object
-
groupWithNoMembers
Create an ErrorInfo object for GROUP_HAS_NO_MEMBERS- Parameters:
groupDN
- the group in question- Returns:
- the ErrorInfo object
-
groupWithNonMemberMaster
Create an ErrorInfo object for GROUP_HAS_MASTER_WHICH_IS_NOT_MEMBER- Parameters:
groupDN
- the group in questionmasterDN
- the supposed master of the group- Returns:
- the ErrorInfo object
-
memberWithIncorrectMemberList
Create an ErrorInfo object for MEMBER_HAS_INCORRECT_MEMBERLIST- Parameters:
groupDN
- the group DNmemberDN
- the member in question- Returns:
- the ErrorInfo object
-
memberHasMasterWhichIsNotMember
Create an ErrorInfo object for MEMBER_HAS_MASTER_WHICH_IS_NOT_MEMBER- Parameters:
memberDN
- the member with the problemmasterDN
- the master which the member names- Returns:
- the ErrorInfo object
-
memberReportsWrongMaster
Create an ErrorInfo object for MEMBER_REPORTS_WRONG_MASTER- Parameters:
memberDN
- the member with the problemmasterDN
- the person who it thinks is the master- Returns:
- the ErrorInfo object
-
getGroupWithError
Return the DN of the group which this error relates to.- Returns:
- a DN, which will be null for an error that isn't about a group (e.g. SAME_DSA_IN_MULTIPLE_GROUPS)
-
getMemberWithError
Return the DN of the member which this error relates to.- Returns:
- a DN, which will be null for an error that isn't about a member (e.g. GROUP_HAS_NO_MASTER)
-
toString
Return string representation of this object, for debugging
-