Class OwnerRegistrationControlEntry

  • All Implemented Interfaces:
    JoynrType, Serializable

    public class OwnerRegistrationControlEntry
    extends OwnerControlEntry
    implements Serializable, JoynrType
    The Owner Registration Control Entry (Owner RCE) stores provider permissions of users for a domain/interface combination. Owner RCEs are stored by the Owner Registration Control List (Owner RCL). If UIDs, domain and interface values of an Owner RCE match the values of an Master RCE, default provider permissions and TLs of the Master RCE get overwritten by the permissions and TLs of the Owner RCE unless the permissions or TLs conflict with their respective possible permissions and TLs.
    See Also:
    Serialized Form
    • Constructor Detail

      • OwnerRegistrationControlEntry

        public OwnerRegistrationControlEntry()
        Default Constructor
      • OwnerRegistrationControlEntry

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

        public OwnerRegistrationControlEntry​(String uid,
                                             String domain,
                                             String interfaceName,
                                             TrustLevel requiredTrustLevel,
                                             TrustLevel requiredAceChangeTrustLevel,
                                             Permission providerPermission)
        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.
        requiredTrustLevel - The Trust Level (TL) that is needed by the requester in order to get the permission defined in this CE. The TL must be listed in the possible required TLs of the corresponding Master CE. Otherwise this constitutes a conflict.
        requiredAceChangeTrustLevel - The Trust Level (TL) that is needed by the requester in order to create, edit or delete an Owner ACE. The TL must be listed in the possible required CE Change TLs of the corresponding Master CE. Otherwise this constitutes a conflict.
        providerPermission - The provider permission that applies to the specified domain/interface/operations combination. The permission must be listed in possible provider permissions of the corresponding Master ACE. Otherwise this constitutes a conflict.
    • Method Detail

      • getProviderPermission

        public Permission getProviderPermission()
        Gets ProviderPermission
        Returns:
        The provider permission that applies to the specified domain/interface/operations combination. The permission must be listed in possible provider permissions of the corresponding Master ACE. Otherwise this constitutes a conflict.
      • setProviderPermission

        public void setProviderPermission​(Permission providerPermission)
        Sets ProviderPermission
        Parameters:
        providerPermission - The provider permission that applies to the specified domain/interface/operations combination. The permission must be listed in possible provider permissions of the corresponding Master ACE. Otherwise this constitutes a conflict.
      • equals

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class OwnerControlEntry
        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 OwnerControlEntry
        Returns:
        The calculated hash code