Package de.xima.fc.entities
Class UserPortalContent
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.UserPortalContent
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>,de.xima.cmn.dao.interfaces.ILockableEntity<Long>,ILockingVersionProviding,ITransferable,ITransferableEntity,ITransferableLockableEntity,IUUIDEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
UserPortalFormContent,UserPortalResourceContent,UserPortalTemplateContent
@Entity public class UserPortalContent extends AbstractLockableEntity implements IUUIDEntity
Entity model for content portal config.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ACTIVEstatic StringATTR_CONTENT_TYPEstatic StringATTR_TAGSstatic StringATTR_USER_PORTALstatic StringCOL_CONTENT_TYPEstatic StringCOL_FLAG_ACTIVEstatic StringCOL_PORTAL_ID-
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.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description UserPortalContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTags(UserPortalContentTag... tags)LonggetId()Set<UserPortalContentTag>getTags()List<UserPortalContentTag>getTags(Locale locale)UserPortalgetUserPortal()EUserPortalContentTypegetUserPortalContentType()EUserPortalContentTypegetUserPortalContentTypeByInstanceOf()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.booleanisActive()voidsetActive(boolean active)voidsetId(Long id)!!!voidsetTags(Set<UserPortalContentTag> tags)voidsetUserPortal(UserPortal userPortal)voidsetUserPortalContentType(EUserPortalContentType userPortalContentType)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.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
-
-
-
-
Field Detail
-
ATTR_ACTIVE
public static final String ATTR_ACTIVE
- See Also:
- Constant Field Values
-
ATTR_USER_PORTAL
public static final String ATTR_USER_PORTAL
- See Also:
- Constant Field Values
-
ATTR_TAGS
public static final String ATTR_TAGS
- See Also:
- Constant Field Values
-
ATTR_CONTENT_TYPE
public static final String ATTR_CONTENT_TYPE
- See Also:
- Constant Field Values
-
COL_FLAG_ACTIVE
public static final String COL_FLAG_ACTIVE
- See Also:
- Constant Field Values
-
COL_PORTAL_ID
public static final String COL_PORTAL_ID
- See Also:
- Constant Field Values
-
COL_CONTENT_TYPE
public static final String COL_CONTENT_TYPE
- 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
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean active)
-
getUserPortal
public UserPortal getUserPortal()
-
setUserPortal
public void setUserPortal(UserPortal userPortal)
-
getTags
public Set<UserPortalContentTag> getTags()
- Returns:
- A set of tags to be displayed to end users in the user portal.
-
getUserPortalContentType
public EUserPortalContentType getUserPortalContentType()
-
getUserPortalContentTypeByInstanceOf
public EUserPortalContentType getUserPortalContentTypeByInstanceOf()
-
setTags
public void setTags(Set<UserPortalContentTag> tags)
- Parameters:
tags- A set of tags to be displayed to end users in the user portal.
-
addTags
public void addTags(UserPortalContentTag... tags)
-
getTags
public List<UserPortalContentTag> getTags(Locale locale)
- Parameters:
locale- The locale to use for sorting the tags.- Returns:
- A list of all end user tags associated with this project ordered by their display name using the given locale.
-
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)
-
setUserPortalContentType
public void setUserPortalContentType(EUserPortalContentType userPortalContentType)
-
-