Class OwnerControlEntry

    • Constructor Detail

      • OwnerControlEntry

        public OwnerControlEntry()
        Default Constructor
      • OwnerControlEntry

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

        public OwnerControlEntry​(String uid,
                                 String domain,
                                 String interfaceName,
                                 TrustLevel requiredTrustLevel,
                                 TrustLevel requiredAceChangeTrustLevel)
        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.
    • Method Detail

      • getRequiredTrustLevel

        public TrustLevel getRequiredTrustLevel()
        Gets RequiredTrustLevel
        Returns:
        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.
      • setRequiredTrustLevel

        public void setRequiredTrustLevel​(TrustLevel requiredTrustLevel)
        Sets RequiredTrustLevel
        Parameters:
        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.
      • getRequiredAceChangeTrustLevel

        public TrustLevel getRequiredAceChangeTrustLevel()
        Gets RequiredAceChangeTrustLevel
        Returns:
        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.
      • setRequiredAceChangeTrustLevel

        public void setRequiredAceChangeTrustLevel​(TrustLevel requiredAceChangeTrustLevel)
        Sets RequiredAceChangeTrustLevel
        Parameters:
        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.
      • toString

        public String toString()
        Stringifies the class
        Overrides:
        toString in class ControlEntry
        Returns:
        stringified class content
      • equals

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