Class License
java.lang.Object
org.episteme.social.law.License
- All Implemented Interfaces:
Identified<Identification>, Property
Represents an official license or certificate issued by an authority that
grants specific rights to an owner. Examples include birth certificates,
driving licenses, IDs, and professional diplomas.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionLicense(EconomicAgent owner, Organization authority, Identification identification, String right) Creates a new License object with a single initial right.License(EconomicAgent owner, Organization authority, Identification identification, List<String> rights) Creates a new License object with multiple rights. -
Method Summary
-
Constructor Details
-
License
public License(EconomicAgent owner, Organization authority, Identification identification, String right) Creates a new License object with a single initial right.- Parameters:
owner- the agent who owns the licenseauthority- the organization that issued the licenseidentification- the unique identification of the license documentright- the initial right granted by this license- Throws:
IllegalArgumentException- if any argument is null or empty
-
License
public License(EconomicAgent owner, Organization authority, Identification identification, List<String> rights) Creates a new License object with multiple rights.- Parameters:
owner- the agent who owns the licenseauthority- the organization that issued the licenseidentification- the unique identification of the license documentrights- the list of rights granted by this license- Throws:
IllegalArgumentException- if any argument is null, empty, or contains non-String elements
-
-
Method Details
-
getOwners
Returns the set of owners of this license. Currently, only the primary owner is returned. -
getAuthority
Returns the authority that issued this license.- Returns:
- the issuing organization
-
getIdentification
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getRights
-
getValue
-