Package com.avoka.fc.core.entity
Class UserProfile
java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
com.avoka.core.entity.BaseEntity
com.avoka.fc.core.entity.auto._UserProfile
com.avoka.fc.core.entity.UserProfile
- All Implemented Interfaces:
IEntity
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
Provides a user profile containing a set of user properties and their values (e.g. name, email address). Users can define multiple user profiles that are used to prefill forms and switch between them.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The description of the profile that is automatically generated when a user is createdstatic final String
The name of the profile that is automatically generated when a user is createdFields inherited from class com.avoka.fc.core.entity.auto._UserProfile
CURRENT_FLAG, CURRENT_FLAG_PROPERTY, PROFILE_DESCRIPTION, PROFILE_DESCRIPTION_PROPERTY, PROFILE_NAME, PROFILE_NAME_PROPERTY, PROFILE_OID_PK_COLUMN, REQUESTS, REQUESTS_PROPERTY, SUBMISSIONS, SUBMISSIONS_PROPERTY, USER, USER_PROPERTIES, USER_PROPERTIES_PROPERTY, USER_PROPERTY
Fields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTY
Fields inherited from class org.apache.cayenne.CayenneDataObject
values
Fields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersion
Fields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceState
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether the profile is the default one for the user (alias for_UserProfile.isCurrentFlag()
Methods inherited from class com.avoka.fc.core.entity.auto._UserProfile
addToRequests, addToSubmissions, addToUserProperties, getProfileDescription, getProfileName, getRequests, getSubmissions, getUser, getUserProperties, isCurrentFlag, removeFromRequests, removeFromSubmissions, removeFromUserProperties, setCurrentFlag, setProfileDescription, setProfileName, setUser
Methods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toString
Methods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeState
Methods inherited from class org.apache.cayenne.BaseDataObject
addToManyTarget, beforePropertyRead, beforePropertyWrite, getSnapshotVersion, readNestedProperty, readProperty, readSerialized, removeToManyTarget, setObjectContext, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writeSerialized
Methods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
-
Field Details
-
DEFAULT_PROFILE_NAME
The name of the profile that is automatically generated when a user is created- See Also:
-
DEFAULT_PROFILE_DESCRIPTION
The description of the profile that is automatically generated when a user is created- See Also:
-
-
Constructor Details
-
UserProfile
public UserProfile()
-
-
Method Details
-
isDefaultProfile
public boolean isDefaultProfile()Return whether the profile is the default one for the user (alias for_UserProfile.isCurrentFlag()
- Returns:
- true if the user profile is the default
-
getPropertyValues
- Returns:
- a map of the profile values, keyed on property type name.
-