Package de.xima.fc.entities
Class MandantRessource
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.ALockableEntity
-
- de.xima.fc.entities.AClientDependentEntity
-
- de.xima.fc.entities.MandantRessource
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>,de.xima.cmn.dao.interfaces.ILockableEntity<Long>,ILocalizedScopedFilesProviding<MandantRessource,TenantResourceLocalizedFile,TenantResourceLocalizedFileData>,ILocalizationProviding<MandantRessource,TenantResourceLocalization>,IUserPortalContentLocalizationSource<MandantRessource,TenantResourceLocalization>,IDescriptionProviding,IFileProviding<MandantRessourceDatei,MandantRessourceDateiData>,ILockingVersionProviding,IMandantDependent,INameHolding,INameProviding,ITransferable,ITransferableEntity,ITransferableLockableEntity,IUUIDEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class MandantRessource extends AClientDependentEntity implements IFileProviding<MandantRessourceDatei,MandantRessourceDateiData>, IDescriptionProviding, INameProviding, INameHolding, IUUIDEntity, ILocalizationProviding<MandantRessource,TenantResourceLocalization>, IUserPortalContentLocalizationSource<MandantRessource,TenantResourceLocalization>, ILocalizedScopedFilesProviding<MandantRessource,TenantResourceLocalizedFile,TenantResourceLocalizedFileData>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_DEFAULT_LOCALEstatic StringATTR_FILESstatic StringATTR_LOCALIZATIONSstatic StringATTR_MANDNATstatic StringCOL_DEFAULT_LOCALEstatic StringCOL_UUID-
Fields inherited from class de.xima.fc.entities.AClientDependentEntity
COL_CLIENTID, mandant
-
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
-
Fields inherited from interface de.xima.fc.entities.interfaces.IFileProviding
ATTR_DATEI, ATTR_FILE
-
Fields inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
ATTR_CLIENT, ATTR_MANDANT, COL_CLIENT_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description MandantRessource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBeschreibung()LocalegetDefaultLocale()LocalegetFileDefaultLocale()Gets the default locale for this providing entity.MandantRessourceDateigetFileEntity()List<TenantResourceLocalizedFile>getFiles()Gets the file entities.LonggetId()List<TenantResourceLocalization>getLocalizations()Gets the localized database objects.LocalegetLocalizationsDefaultLocale()Gets the default locale for this providing object.StringgetName()TenantResourceLocalizedFilegetThumbnailImage(Locale locale)Returns the file for the client resource thumbnail image for the locale.UserPortalResourceContentgetUserPortalContentByPortalUuid(UUID portalUuid)Gets the user portal content that links this entity to the user portal with the given UUID.Set<UserPortalResourceContent>getUserPortalFileContents()StringgetUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUIDgetUUIDObject()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.TenantResourceLocalizationnewLocalization()Creates a new localization object.voidsetBeschreibung(String beschreibung)voidsetDefaultLocale(Locale defaultLocale)voidsetFileEntity(MandantRessourceDatei fileEntity)voidsetFiles(List<TenantResourceLocalizedFile> files)Sets the file entities.voidsetId(Long id)!!!voidsetLocalizations(List<TenantResourceLocalization> localizations)voidsetName(String name)Sets the new name for this object.voidsetUserPortalFileContents(Set<UserPortalResourceContent> userPortalResourceContents)voidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid)-
Methods inherited from class de.xima.fc.entities.AClientDependentEntity
getMandant, setMandant
-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
getDescription
-
Methods inherited from interface de.xima.fc.entities.interfaces.IFileProviding
getDatei, setDatei
-
Methods inherited from interface de.xima.fc.entities.interfaces.i18n.ILocalizationProviding
getKeys, getLocales, getLocalization, getLocalizationData, setLocalization
-
Methods inherited from interface de.xima.fc.entities.interfaces.file.i18n.ILocalizedScopedFilesProviding
addFile, getFile, getFileData, getFileKeys, getFileLocales, removeFile
-
Methods inherited from interface de.xima.fc.entities.interfaces.i18n.IUserPortalContentLocalizationSource
displayNameFallback
-
-
-
-
Field Detail
-
ATTR_MANDNAT
public static final String ATTR_MANDNAT
- See Also:
- Constant Field Values
-
ATTR_LOCALIZATIONS
public static final String ATTR_LOCALIZATIONS
- See Also:
- Constant Field Values
-
ATTR_FILES
public static final String ATTR_FILES
- See Also:
- Constant Field Values
-
ATTR_DEFAULT_LOCALE
public static final String ATTR_DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
- See Also:
- Constant Field Values
-
COL_DEFAULT_LOCALE
public static final String COL_DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(Long id)
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
getUUID
public String getUUID()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
getFileEntity
public MandantRessourceDatei getFileEntity()
- Specified by:
getFileEntityin interfaceIFileProviding<MandantRessourceDatei,MandantRessourceDateiData>
-
setFileEntity
public void setFileEntity(MandantRessourceDatei fileEntity)
- Specified by:
setFileEntityin interfaceIFileProviding<MandantRessourceDatei,MandantRessourceDateiData>
-
setName
public void setName(String name)
Description copied from interface:INameHoldingSets the new name for this object.- Specified by:
setNamein interfaceINameHolding- Parameters:
name- The name of this object.
-
getName
public String getName()
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
getBeschreibung
public String getBeschreibung()
- Specified by:
getBeschreibungin interfaceIDescriptionProviding
-
setBeschreibung
public void setBeschreibung(String beschreibung)
-
getLocalizations
public List<TenantResourceLocalization> getLocalizations()
Description copied from interface:ILocalizationProvidingGets the localized database objects.- Specified by:
getLocalizationsin interfaceILocalizationProviding<MandantRessource,TenantResourceLocalization>- Returns:
- the localized database objects
-
setLocalizations
public void setLocalizations(List<TenantResourceLocalization> localizations)
-
getLocalizationsDefaultLocale
public Locale getLocalizationsDefaultLocale()
Description copied from interface:ILocalizationProvidingGets the default locale for this providing object.- Specified by:
getLocalizationsDefaultLocalein interfaceILocalizationProviding<MandantRessource,TenantResourceLocalization>- Returns:
- the default locale for this providing object
-
newLocalization
public TenantResourceLocalization newLocalization()
Description copied from interface:ILocalizationProvidingCreates a new localization object.- Specified by:
newLocalizationin interfaceILocalizationProviding<MandantRessource,TenantResourceLocalization>- Returns:
- a new localization object
-
getDefaultLocale
public Locale getDefaultLocale()
-
setDefaultLocale
public void setDefaultLocale(Locale defaultLocale)
-
getFileDefaultLocale
public Locale getFileDefaultLocale()
Description copied from interface:ILocalizedScopedFilesProvidingGets the default locale for this providing entity.- Specified by:
getFileDefaultLocalein interfaceILocalizedScopedFilesProviding<MandantRessource,TenantResourceLocalizedFile,TenantResourceLocalizedFileData>- Returns:
- the default locale for this providing entity.
-
getFiles
public List<TenantResourceLocalizedFile> getFiles()
Description copied from interface:ILocalizedScopedFilesProvidingGets the file entities.- Specified by:
getFilesin interfaceILocalizedScopedFilesProviding<MandantRessource,TenantResourceLocalizedFile,TenantResourceLocalizedFileData>- Returns:
- the file entities
-
setFiles
public void setFiles(List<TenantResourceLocalizedFile> files)
Description copied from interface:ILocalizedScopedFilesProvidingSets the file entities.- Specified by:
setFilesin interfaceILocalizedScopedFilesProviding<MandantRessource,TenantResourceLocalizedFile,TenantResourceLocalizedFileData>- Parameters:
files- the file entities to set.
-
getThumbnailImage
public TenantResourceLocalizedFile getThumbnailImage(Locale locale)
Returns the file for the client resource thumbnail image for the locale.- Parameters:
locale- The locale to get the thumbnail image for.- Returns:
- The thumbnail image file for the given locale.
-
getUserPortalFileContents
public Set<UserPortalResourceContent> getUserPortalFileContents()
-
getUserPortalContentByPortalUuid
public UserPortalResourceContent getUserPortalContentByPortalUuid(UUID portalUuid)
Description copied from interface:IUserPortalContentLocalizationSourceGets the user portal content that links this entity to the user portal with the given UUID.- Specified by:
getUserPortalContentByPortalUuidin interfaceIUserPortalContentLocalizationSource<MandantRessource,TenantResourceLocalization>- Parameters:
portalUuid- The UUID of the user portal.- Returns:
- The user portal content for the given portal, or
nullif none exists.
-
setUserPortalFileContents
public void setUserPortalFileContents(Set<UserPortalResourceContent> userPortalResourceContents)
-
-