Package org.teamapps.model.controlcenter
Class UdbGroup
java.lang.Object
org.teamapps.universaldb.pojo.AbstractUdbEntity<Group>
org.teamapps.model.controlcenter.UdbGroup
- All Implemented Interfaces:
Group,org.teamapps.universaldb.pojo.Entity<Group>,org.teamapps.universaldb.pojo.Identifiable,org.teamapps.universaldb.record.EntityBuilder<Group>
public class UdbGroup extends org.teamapps.universaldb.pojo.AbstractUdbEntity<Group> implements Group
-
Field Summary
Fields Modifier and Type Field Description protected static org.teamapps.universaldb.index.text.TextIndexdescriptionprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexgroupFoldersprotected static org.teamapps.universaldb.index.numeric.ShortIndexgroupTypeprotected static org.teamapps.universaldb.index.text.TextIndexlanguageprotected static org.teamapps.universaldb.index.numeric.IntegerIndexlastMessageDateprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexmembershipDefinitionsprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexmentorsprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaCreatedByprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaCreationDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaDeletedByprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaDeletionDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaModificationDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaModifiedByprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaRestoreDateprotected static org.teamapps.universaldb.index.numeric.IntegerIndexmetaRestoredByprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexmoderatorsprotected static org.teamapps.universaldb.index.text.TextIndexnameprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexorganizationFieldprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexorganizationUnitprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexownerprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexregistrationAllowedForDefinitionsprotected static org.teamapps.universaldb.index.TableIndextableprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexuserMembershipsprotected static org.teamapps.universaldb.index.bool.BooleanIndexvalidFields inherited from interface org.teamapps.model.controlcenter.Group
FIELD_DESCRIPTION, FIELD_GROUP_FOLDERS, FIELD_GROUP_TYPE, FIELD_LANGUAGE, FIELD_LAST_MESSAGE_DATE, FIELD_MEMBERSHIP_DEFINITIONS, FIELD_MENTORS, FIELD_META_CREATED_BY, FIELD_META_CREATION_DATE, FIELD_META_DELETED_BY, FIELD_META_DELETION_DATE, FIELD_META_MODIFICATION_DATE, FIELD_META_MODIFIED_BY, FIELD_META_RESTORE_DATE, FIELD_META_RESTORED_BY, FIELD_MODERATORS, FIELD_NAME, FIELD_ORGANIZATION_FIELD, FIELD_ORGANIZATION_UNIT, FIELD_OWNER, FIELD_REGISTRATION_ALLOWED_FOR_DEFINITIONS, FIELD_USER_MEMBERSHIPS, FIELD_VALID -
Constructor Summary
-
Method Summary
Methods inherited from class org.teamapps.universaldb.pojo.AbstractUdbEntity
addMultiReferenceValue, clearChanges, createEntityList, createEntityList, createEntityList, deleteRecord, deleteRecord, equals, getBooleanValue, getChangedValue, getChangeValue, getCorrelationId, getDateAsEpochMilli, getDateTimeAsEpochMilli, getDateTimeValue, getDateValue, getDoubleValue, getEntityId, getEntityValue, getEnumValue, getFloatValue, getId, getIntValue, getLocalDateValue, getLongValue, getMultiReferenceValue, getMultiReferenceValueAsBitSet, getMultiReferenceValueCount, getQualifiedName, getReferenceChangeValue, getShortValue, getTableIndex, getTextValue, getTimestampAsEpochMilli, getTimestampAsEpochSecond, getTimestampValue, getTimeValue, getTransaction, getTranslatableTextValue, hashCode, isChanged, isDeleted, isModified, isRestorable, isStored, removeAllMultiReferenceValue, removeMultiReferenceValue, restoreDeletedRecord, saveAsynchronously, saveRecord, saveRecord, saveRecord, setBooleanValue, setChangeValue, setDateAsEpochMilli, setDateTimeAsEpochMilli, setDateTimeValue, setDateValue, setDoubleValue, setEntityValue, setEnumValue, setFloatValue, setIntValue, setLocalDateAsEpochMilli, setLocalDateValue, setLongValue, setMultiReferenceValue, setShortValue, setSingleReferenceValue, setTextValue, setTimestampAsEpochMilli, setTimestampAsEpochSecond, setTimestampValue, setTimeValue, setTranslatableTextValue, sort, sort, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.universaldb.pojo.Entity
clearChanges, getEntityValue, getId, isDeleted, isModified, isRestorable, isStored, save, saveTransactional, setEntityValueMethods inherited from interface org.teamapps.universaldb.pojo.Identifiable
getQualifiedName
-
Field Details
-
table
protected static org.teamapps.universaldb.index.TableIndex table -
metaCreationDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaCreationDate -
metaCreatedBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaCreatedBy -
metaModificationDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaModificationDate -
metaModifiedBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaModifiedBy -
metaDeletionDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaDeletionDate -
metaDeletedBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaDeletedBy -
metaRestoreDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaRestoreDate -
metaRestoredBy
protected static org.teamapps.universaldb.index.numeric.IntegerIndex metaRestoredBy -
groupType
protected static org.teamapps.universaldb.index.numeric.ShortIndex groupType -
name
protected static org.teamapps.universaldb.index.text.TextIndex name -
description
protected static org.teamapps.universaldb.index.text.TextIndex description -
language
protected static org.teamapps.universaldb.index.text.TextIndex language -
organizationField
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex organizationField -
organizationUnit
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex organizationUnit -
owner
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex owner -
moderators
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex moderators -
mentors
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex mentors -
valid
protected static org.teamapps.universaldb.index.bool.BooleanIndex valid -
membershipDefinitions
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex membershipDefinitions -
registrationAllowedForDefinitions
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex registrationAllowedForDefinitions -
userMemberships
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex userMemberships -
lastMessageDate
protected static org.teamapps.universaldb.index.numeric.IntegerIndex lastMessageDate -
groupFolders
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex groupFolders
-
-
Constructor Details
-
UdbGroup
public UdbGroup() -
UdbGroup
public UdbGroup(int id, boolean createEntity)
-
-
Method Details
-
getAll
-
getDeletedRecords
-
sort
-
sort
public static java.util.List<Group> sort(java.util.BitSet recordIds, java.lang.String sortFieldName, boolean ascending, org.teamapps.universaldb.context.UserContext userContext, java.lang.String... path) -
getCount
public static int getCount() -
build
- Specified by:
buildin interfaceorg.teamapps.universaldb.record.EntityBuilder<Group>
-
build
- Specified by:
buildin interfaceorg.teamapps.universaldb.record.EntityBuilder<Group>
-
getMetaCreationDate
public java.time.Instant getMetaCreationDate()- Specified by:
getMetaCreationDatein interfaceGroup
-
setMetaCreationDate
- Specified by:
setMetaCreationDatein interfaceGroup
-
getMetaCreationDateAsEpochSecond
public int getMetaCreationDateAsEpochSecond()- Specified by:
getMetaCreationDateAsEpochSecondin interfaceGroup
-
setMetaCreationDateAsEpochSecond
- Specified by:
setMetaCreationDateAsEpochSecondin interfaceGroup
-
getMetaCreationDateAsEpochMilli
public long getMetaCreationDateAsEpochMilli()- Specified by:
getMetaCreationDateAsEpochMilliin interfaceGroup
-
setMetaCreationDateAsEpochMilli
- Specified by:
setMetaCreationDateAsEpochMilliin interfaceGroup
-
getMetaCreatedBy
public int getMetaCreatedBy()- Specified by:
getMetaCreatedByin interfaceGroup
-
setMetaCreatedBy
- Specified by:
setMetaCreatedByin interfaceGroup
-
getMetaModificationDate
public java.time.Instant getMetaModificationDate()- Specified by:
getMetaModificationDatein interfaceGroup
-
setMetaModificationDate
- Specified by:
setMetaModificationDatein interfaceGroup
-
getMetaModificationDateAsEpochSecond
public int getMetaModificationDateAsEpochSecond()- Specified by:
getMetaModificationDateAsEpochSecondin interfaceGroup
-
setMetaModificationDateAsEpochSecond
- Specified by:
setMetaModificationDateAsEpochSecondin interfaceGroup
-
getMetaModificationDateAsEpochMilli
public long getMetaModificationDateAsEpochMilli()- Specified by:
getMetaModificationDateAsEpochMilliin interfaceGroup
-
setMetaModificationDateAsEpochMilli
- Specified by:
setMetaModificationDateAsEpochMilliin interfaceGroup
-
getMetaModifiedBy
public int getMetaModifiedBy()- Specified by:
getMetaModifiedByin interfaceGroup
-
setMetaModifiedBy
- Specified by:
setMetaModifiedByin interfaceGroup
-
getMetaDeletionDate
public java.time.Instant getMetaDeletionDate()- Specified by:
getMetaDeletionDatein interfaceGroup
-
setMetaDeletionDate
- Specified by:
setMetaDeletionDatein interfaceGroup
-
getMetaDeletionDateAsEpochSecond
public int getMetaDeletionDateAsEpochSecond()- Specified by:
getMetaDeletionDateAsEpochSecondin interfaceGroup
-
setMetaDeletionDateAsEpochSecond
- Specified by:
setMetaDeletionDateAsEpochSecondin interfaceGroup
-
getMetaDeletionDateAsEpochMilli
public long getMetaDeletionDateAsEpochMilli()- Specified by:
getMetaDeletionDateAsEpochMilliin interfaceGroup
-
setMetaDeletionDateAsEpochMilli
- Specified by:
setMetaDeletionDateAsEpochMilliin interfaceGroup
-
getMetaDeletedBy
public int getMetaDeletedBy()- Specified by:
getMetaDeletedByin interfaceGroup
-
setMetaDeletedBy
- Specified by:
setMetaDeletedByin interfaceGroup
-
getMetaRestoreDate
public java.time.Instant getMetaRestoreDate()- Specified by:
getMetaRestoreDatein interfaceGroup
-
setMetaRestoreDate
- Specified by:
setMetaRestoreDatein interfaceGroup
-
getMetaRestoreDateAsEpochSecond
public int getMetaRestoreDateAsEpochSecond()- Specified by:
getMetaRestoreDateAsEpochSecondin interfaceGroup
-
setMetaRestoreDateAsEpochSecond
- Specified by:
setMetaRestoreDateAsEpochSecondin interfaceGroup
-
getMetaRestoreDateAsEpochMilli
public long getMetaRestoreDateAsEpochMilli()- Specified by:
getMetaRestoreDateAsEpochMilliin interfaceGroup
-
setMetaRestoreDateAsEpochMilli
- Specified by:
setMetaRestoreDateAsEpochMilliin interfaceGroup
-
getMetaRestoredBy
public int getMetaRestoredBy()- Specified by:
getMetaRestoredByin interfaceGroup
-
setMetaRestoredBy
- Specified by:
setMetaRestoredByin interfaceGroup
-
getGroupType
- Specified by:
getGroupTypein interfaceGroup
-
setGroupType
- Specified by:
setGroupTypein interfaceGroup
-
getName
public java.lang.String getName() -
setName
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceGroup
-
setDescription
- Specified by:
setDescriptionin interfaceGroup
-
getLanguage
public java.lang.String getLanguage()- Specified by:
getLanguagein interfaceGroup
-
setLanguage
- Specified by:
setLanguagein interfaceGroup
-
getOrganizationField
- Specified by:
getOrganizationFieldin interfaceGroup
-
setOrganizationField
- Specified by:
setOrganizationFieldin interfaceGroup
-
getOrganizationUnit
- Specified by:
getOrganizationUnitin interfaceGroup
-
setOrganizationUnit
- Specified by:
setOrganizationUnitin interfaceGroup
-
getOwner
-
setOwner
-
getModerators
- Specified by:
getModeratorsin interfaceGroup
-
setModerators
- Specified by:
setModeratorsin interfaceGroup
-
getModeratorsCount
public int getModeratorsCount()- Specified by:
getModeratorsCountin interfaceGroup
-
setModerators
- Specified by:
setModeratorsin interfaceGroup
-
getModeratorsAsBitSet
public java.util.BitSet getModeratorsAsBitSet()- Specified by:
getModeratorsAsBitSetin interfaceGroup
-
addModerators
- Specified by:
addModeratorsin interfaceGroup
-
addModerators
- Specified by:
addModeratorsin interfaceGroup
-
removeModerators
- Specified by:
removeModeratorsin interfaceGroup
-
removeModerators
- Specified by:
removeModeratorsin interfaceGroup
-
removeAllModerators
- Specified by:
removeAllModeratorsin interfaceGroup
-
getMentors
- Specified by:
getMentorsin interfaceGroup
-
setMentors
- Specified by:
setMentorsin interfaceGroup
-
getMentorsCount
public int getMentorsCount()- Specified by:
getMentorsCountin interfaceGroup
-
setMentors
- Specified by:
setMentorsin interfaceGroup
-
getMentorsAsBitSet
public java.util.BitSet getMentorsAsBitSet()- Specified by:
getMentorsAsBitSetin interfaceGroup
-
addMentors
- Specified by:
addMentorsin interfaceGroup
-
addMentors
- Specified by:
addMentorsin interfaceGroup
-
removeMentors
- Specified by:
removeMentorsin interfaceGroup
-
removeMentors
- Specified by:
removeMentorsin interfaceGroup
-
removeAllMentors
- Specified by:
removeAllMentorsin interfaceGroup
-
getValid
public boolean getValid() -
setValid
-
isValid
public boolean isValid() -
getMembershipDefinitions
- Specified by:
getMembershipDefinitionsin interfaceGroup
-
setMembershipDefinitions
- Specified by:
setMembershipDefinitionsin interfaceGroup
-
getMembershipDefinitionsCount
public int getMembershipDefinitionsCount()- Specified by:
getMembershipDefinitionsCountin interfaceGroup
-
setMembershipDefinitions
- Specified by:
setMembershipDefinitionsin interfaceGroup
-
getMembershipDefinitionsAsBitSet
public java.util.BitSet getMembershipDefinitionsAsBitSet()- Specified by:
getMembershipDefinitionsAsBitSetin interfaceGroup
-
addMembershipDefinitions
- Specified by:
addMembershipDefinitionsin interfaceGroup
-
addMembershipDefinitions
- Specified by:
addMembershipDefinitionsin interfaceGroup
-
removeMembershipDefinitions
- Specified by:
removeMembershipDefinitionsin interfaceGroup
-
removeMembershipDefinitions
- Specified by:
removeMembershipDefinitionsin interfaceGroup
-
removeAllMembershipDefinitions
- Specified by:
removeAllMembershipDefinitionsin interfaceGroup
-
getRegistrationAllowedForDefinitions
- Specified by:
getRegistrationAllowedForDefinitionsin interfaceGroup
-
setRegistrationAllowedForDefinitions
- Specified by:
setRegistrationAllowedForDefinitionsin interfaceGroup
-
getRegistrationAllowedForDefinitionsCount
public int getRegistrationAllowedForDefinitionsCount()- Specified by:
getRegistrationAllowedForDefinitionsCountin interfaceGroup
-
setRegistrationAllowedForDefinitions
- Specified by:
setRegistrationAllowedForDefinitionsin interfaceGroup
-
getRegistrationAllowedForDefinitionsAsBitSet
public java.util.BitSet getRegistrationAllowedForDefinitionsAsBitSet()- Specified by:
getRegistrationAllowedForDefinitionsAsBitSetin interfaceGroup
-
addRegistrationAllowedForDefinitions
- Specified by:
addRegistrationAllowedForDefinitionsin interfaceGroup
-
addRegistrationAllowedForDefinitions
- Specified by:
addRegistrationAllowedForDefinitionsin interfaceGroup
-
removeRegistrationAllowedForDefinitions
public Group removeRegistrationAllowedForDefinitions(java.util.List<GroupMembershipDefinition> value)- Specified by:
removeRegistrationAllowedForDefinitionsin interfaceGroup
-
removeRegistrationAllowedForDefinitions
- Specified by:
removeRegistrationAllowedForDefinitionsin interfaceGroup
-
removeAllRegistrationAllowedForDefinitions
- Specified by:
removeAllRegistrationAllowedForDefinitionsin interfaceGroup
-
getUserMemberships
- Specified by:
getUserMembershipsin interfaceGroup
-
setUserMemberships
- Specified by:
setUserMembershipsin interfaceGroup
-
getUserMembershipsCount
public int getUserMembershipsCount()- Specified by:
getUserMembershipsCountin interfaceGroup
-
setUserMemberships
- Specified by:
setUserMembershipsin interfaceGroup
-
getUserMembershipsAsBitSet
public java.util.BitSet getUserMembershipsAsBitSet()- Specified by:
getUserMembershipsAsBitSetin interfaceGroup
-
addUserMemberships
- Specified by:
addUserMembershipsin interfaceGroup
-
addUserMemberships
- Specified by:
addUserMembershipsin interfaceGroup
-
removeUserMemberships
- Specified by:
removeUserMembershipsin interfaceGroup
-
removeUserMemberships
- Specified by:
removeUserMembershipsin interfaceGroup
-
removeAllUserMemberships
- Specified by:
removeAllUserMembershipsin interfaceGroup
-
getLastMessageDate
public java.time.Instant getLastMessageDate()- Specified by:
getLastMessageDatein interfaceGroup
-
setLastMessageDate
- Specified by:
setLastMessageDatein interfaceGroup
-
getLastMessageDateAsEpochSecond
public int getLastMessageDateAsEpochSecond()- Specified by:
getLastMessageDateAsEpochSecondin interfaceGroup
-
setLastMessageDateAsEpochSecond
- Specified by:
setLastMessageDateAsEpochSecondin interfaceGroup
-
getLastMessageDateAsEpochMilli
public long getLastMessageDateAsEpochMilli()- Specified by:
getLastMessageDateAsEpochMilliin interfaceGroup
-
setLastMessageDateAsEpochMilli
- Specified by:
setLastMessageDateAsEpochMilliin interfaceGroup
-
getGroupFolders
- Specified by:
getGroupFoldersin interfaceGroup
-
setGroupFolders
- Specified by:
setGroupFoldersin interfaceGroup
-
getGroupFoldersCount
public int getGroupFoldersCount()- Specified by:
getGroupFoldersCountin interfaceGroup
-
setGroupFolders
- Specified by:
setGroupFoldersin interfaceGroup
-
getGroupFoldersAsBitSet
public java.util.BitSet getGroupFoldersAsBitSet()- Specified by:
getGroupFoldersAsBitSetin interfaceGroup
-
addGroupFolders
- Specified by:
addGroupFoldersin interfaceGroup
-
addGroupFolders
- Specified by:
addGroupFoldersin interfaceGroup
-
removeGroupFolders
- Specified by:
removeGroupFoldersin interfaceGroup
-
removeGroupFolders
- Specified by:
removeGroupFoldersin interfaceGroup
-
removeAllGroupFolders
- Specified by:
removeAllGroupFoldersin interfaceGroup
-
save
public UdbGroup save(org.teamapps.universaldb.transaction.Transaction transaction, boolean strictChangeVerification)- Specified by:
savein interfaceorg.teamapps.universaldb.pojo.Entity<Group>
-
saveTransactional
- Specified by:
saveTransactionalin interfaceorg.teamapps.universaldb.pojo.Entity<Group>
-
save
- Specified by:
savein interfaceorg.teamapps.universaldb.pojo.Entity<Group>
-
delete
public void delete(org.teamapps.universaldb.transaction.Transaction transaction)- Specified by:
deletein interfaceorg.teamapps.universaldb.pojo.Entity<Group>
-
delete
public void delete()- Specified by:
deletein interfaceorg.teamapps.universaldb.pojo.Entity<Group>
-
restoreDeleted
public void restoreDeleted()- Specified by:
restoreDeletedin interfaceorg.teamapps.universaldb.pojo.Entity<Group>
-