Package joynr.infrastructure.DacTypes
Class MasterRegistrationControlEntry
- java.lang.Object
-
- joynr.infrastructure.DacTypes.ControlEntry
-
- joynr.infrastructure.DacTypes.MasterControlEntry
-
- joynr.infrastructure.DacTypes.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
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description MasterRegistrationControlEntry()Default ConstructorMasterRegistrationControlEntry(String uid, String domain, String interfaceName, TrustLevel defaultRequiredTrustLevel, TrustLevel[] possibleRequiredTrustLevels, TrustLevel defaultRequiredControlEntryChangeTrustLevel, TrustLevel[] possibleRequiredControlEntryChangeTrustLevels, Permission defaultProviderPermission, Permission[] possibleProviderPermissions)Parameterized constructorMasterRegistrationControlEntry(MasterRegistrationControlEntry masterRegistrationControlEntryObj)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityPermissiongetDefaultProviderPermission()Gets DefaultProviderPermissionPermission[]getPossibleProviderPermissions()Gets PossibleProviderPermissionsinthashCode()Calculate code for hashing based on member contentsvoidsetDefaultProviderPermission(Permission defaultProviderPermission)Sets DefaultProviderPermissionvoidsetPossibleProviderPermissions(Permission[] possibleProviderPermissions)Sets PossibleProviderPermissionsStringtoString()Stringifies the class-
Methods inherited from class joynr.infrastructure.DacTypes.MasterControlEntry
getDefaultRequiredControlEntryChangeTrustLevel, getDefaultRequiredTrustLevel, getPossibleRequiredControlEntryChangeTrustLevels, getPossibleRequiredTrustLevels, setDefaultRequiredControlEntryChangeTrustLevel, setDefaultRequiredTrustLevel, setPossibleRequiredControlEntryChangeTrustLevels, setPossibleRequiredTrustLevels
-
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
-
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.
-
toString
public String toString()
Stringifies the class- Overrides:
toStringin classMasterControlEntry- Returns:
- stringified class content
-
equals
public boolean equals(Object obj)
Check for equality- Overrides:
equalsin classMasterControlEntry- 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 classMasterControlEntry- Returns:
- The calculated hash code
-
-