Package cz.metacentrum.perun.core.api
Class Consent
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.Consent
- All Implemented Interfaces:
Serializable
,Comparable<PerunBean>
Represents consent from a user to process their information
- Author:
- David Flor <493294@mail.muni.cz>
- See Also:
-
Constructor Summary
ConstructorDescriptionConsent()
Consent
(int id, int userId, ConsentHub consentHub, List<AttributeDefinition> attributes) Consent
(int id, String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid, int userId, ConsentHub consentHub, List<AttributeDefinition> attributes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
hashCode()
void
setAttributes
(List<AttributeDefinition> attributes) void
setConsentHub
(ConsentHub consentHub) void
setStatus
(ConsentStatus status) void
setUserId
(int userId) toString()
Methods inherited from class cz.metacentrum.perun.core.api.Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUid
Methods inherited from class cz.metacentrum.perun.core.api.PerunBean
compareTo, getBeanName, getId, setId
-
Constructor Details
-
Consent
public Consent() -
Consent
-
Consent
public Consent(int id, String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid, int userId, ConsentHub consentHub, List<AttributeDefinition> attributes)
-
-
Method Details
-
equals
-
getAttributes
-
setAttributes
-
getConsentHub
-
setConsentHub
-
getStatus
-
setStatus
-
getUserId
public int getUserId() -
setUserId
public void setUserId(int userId) -
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToString
in classAuditable
-
toString
-