Package joynr.infrastructure.DacTypes
Class OwnerControlEntry
- java.lang.Object
-
- joynr.infrastructure.DacTypes.ControlEntry
-
- joynr.infrastructure.DacTypes.OwnerControlEntry
-
- All Implemented Interfaces:
JoynrType,Serializable
- Direct Known Subclasses:
OwnerAccessControlEntry,OwnerRegistrationControlEntry
public class OwnerControlEntry extends ControlEntry implements Serializable, JoynrType
The Owner Control Entry (Owner CE) stores Trust Levels (TLs) of users that must be met to apply this CE or to change this CE. It is the base class forOwnerAccessControlEntryandOwnerRegistrationControlEntry.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description OwnerControlEntry()Default ConstructorOwnerControlEntry(String uid, String domain, String interfaceName, TrustLevel requiredTrustLevel, TrustLevel requiredAceChangeTrustLevel)Parameterized constructorOwnerControlEntry(OwnerControlEntry ownerControlEntryObj)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityTrustLevelgetRequiredAceChangeTrustLevel()Gets RequiredAceChangeTrustLevelTrustLevelgetRequiredTrustLevel()Gets RequiredTrustLevelinthashCode()Calculate code for hashing based on member contentsvoidsetRequiredAceChangeTrustLevel(TrustLevel requiredAceChangeTrustLevel)Sets RequiredAceChangeTrustLevelvoidsetRequiredTrustLevel(TrustLevel requiredTrustLevel)Sets RequiredTrustLevelStringtoString()Stringifies the class-
Methods inherited from class joynr.infrastructure.DacTypes.ControlEntry
getDomain, getInterfaceName, getUid, setDomain, setInterfaceName, setUid
-
-
-
-
Field Detail
-
MAJOR_VERSION
public static final int MAJOR_VERSION
- See Also:
- Constant Field Values
-
MINOR_VERSION
public static final int MINOR_VERSION
- See Also:
- Constant Field Values
-
-
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:
toStringin classControlEntry- Returns:
- stringified class content
-
equals
public boolean equals(Object obj)
Check for equality- Overrides:
equalsin classControlEntry- 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:
hashCodein classControlEntry- Returns:
- The calculated hash code
-
-