Class MasterRegistrationControlEntry

  • All Implemented Interfaces:
    JoynrType, Serializable

    public class MasterRegistrationControlEntry
    extends MasterControlEntry
    implements Serializable, JoynrType
    The Master Registration Control Entry (Master RCE) stores default provider permissions of users for a domain/interface combination. Additionally, it contains possible provider permissions to be used to override default provider permissions in Owner Registration Control Entries (Owner RCEs). Master RCEs are stored by the Master Registration Control List (Master RCL) and the optional Mediator Registration Control List (Mediator RCL).
    See Also:
    Serialized Form
    • Constructor Detail

      • MasterRegistrationControlEntry

        public MasterRegistrationControlEntry()
        Default Constructor
      • MasterRegistrationControlEntry

        public MasterRegistrationControlEntry​(MasterRegistrationControlEntry masterRegistrationControlEntryObj)
        Copy constructor
        Parameters:
        masterRegistrationControlEntryObj - reference to the object to be copied
      • MasterRegistrationControlEntry

        public MasterRegistrationControlEntry​(String uid,
                                              String domain,
                                              String interfaceName,
                                              TrustLevel defaultRequiredTrustLevel,
                                              TrustLevel[] possibleRequiredTrustLevels,
                                              TrustLevel defaultRequiredControlEntryChangeTrustLevel,
                                              TrustLevel[] possibleRequiredControlEntryChangeTrustLevels,
                                              Permission defaultProviderPermission,
                                              Permission[] possibleProviderPermissions)
        Parameterized constructor
        Parameters:
        uid - A unique user ID (UID) this Control Entry (CE) applies to or the wildcard character (asterisk sign) if this CE applies to all users. CEs that use the wildcard character are overruled by specific ones (if they exist).
        domain - The domain this Control Entry (CE) applies to.
        interfaceName - The interface this Control Entry (CE) applies to.
        defaultRequiredTrustLevel - The default required trusted level (TL). TL depends on used device and Authentication mechanism.
        possibleRequiredTrustLevels - A list of all possible Trust Levels that may be used in an owner CE to overwrite the default required TL.
        defaultRequiredControlEntryChangeTrustLevel - The default Trust Level (TL) that is needed by the requester in order to create, edit or delete a corresponding owner CE.
        possibleRequiredControlEntryChangeTrustLevels - A list of all possible Trust Levels (TLs) that may be used in an owner CE to override the default required CE change TL.
        defaultProviderPermission - The default provider permission that applies to the specified domain and interface combination if there does not exist a corresponding RCE in the Owner Registration Control List (Owner RCL).
        possibleProviderPermissions - A list of all possible provider permissions that may be used in an owner RCE to overwrite the default provider permission.
    • Method Detail

      • getDefaultProviderPermission

        public Permission getDefaultProviderPermission()
        Gets DefaultProviderPermission
        Returns:
        The default provider permission that applies to the specified domain and interface combination if there does not exist a corresponding RCE in the Owner Registration Control List (Owner RCL).
      • setDefaultProviderPermission

        public void setDefaultProviderPermission​(Permission defaultProviderPermission)
        Sets DefaultProviderPermission
        Parameters:
        defaultProviderPermission - The default provider permission that applies to the specified domain and interface combination if there does not exist a corresponding RCE in the Owner Registration Control List (Owner RCL).
      • getPossibleProviderPermissions

        public Permission[] getPossibleProviderPermissions()
        Gets PossibleProviderPermissions
        Returns:
        A list of all possible provider permissions that may be used in an owner RCE to overwrite the default provider permission.
      • setPossibleProviderPermissions

        public void setPossibleProviderPermissions​(Permission[] possibleProviderPermissions)
        Sets PossibleProviderPermissions
        Parameters:
        possibleProviderPermissions - A list of all possible provider permissions that may be used in an owner RCE to overwrite the default provider permission.
      • equals

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class MasterControlEntry
        Parameters:
        obj - Reference to the object to compare to
        Returns:
        true, if objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Calculate code for hashing based on member contents
        Overrides:
        hashCode in class MasterControlEntry
        Returns:
        The calculated hash code