Package joynr.infrastructure.DacTypes
Class OwnerRegistrationControlEntry
- java.lang.Object
-
- joynr.infrastructure.DacTypes.ControlEntry
-
- joynr.infrastructure.DacTypes.OwnerControlEntry
-
- joynr.infrastructure.DacTypes.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
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description OwnerRegistrationControlEntry()Default ConstructorOwnerRegistrationControlEntry(String uid, String domain, String interfaceName, TrustLevel requiredTrustLevel, TrustLevel requiredAceChangeTrustLevel, Permission providerPermission)Parameterized constructorOwnerRegistrationControlEntry(OwnerRegistrationControlEntry ownerRegistrationControlEntryObj)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityPermissiongetProviderPermission()Gets ProviderPermissioninthashCode()Calculate code for hashing based on member contentsvoidsetProviderPermission(Permission providerPermission)Sets ProviderPermissionStringtoString()Stringifies the class-
Methods inherited from class joynr.infrastructure.DacTypes.OwnerControlEntry
getRequiredAceChangeTrustLevel, getRequiredTrustLevel, setRequiredAceChangeTrustLevel, setRequiredTrustLevel
-
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
-
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.
-
toString
public String toString()
Stringifies the class- Overrides:
toStringin classOwnerControlEntry- Returns:
- stringified class content
-
equals
public boolean equals(Object obj)
Check for equality- Overrides:
equalsin classOwnerControlEntry- 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 classOwnerControlEntry- Returns:
- The calculated hash code
-
-