Package com.im.ijcs.api.ddl.dto
Class AbstractItemInfo
- java.lang.Object
-
- com.im.ijcs.api.ddl.dto.AbstractItemInfo
-
- All Implemented Interfaces:
ImplTypeInfo
,ItemAuditInfo
,ItemPersistentInfo
,OwnablePersistentInfo
,UserItemInfo
,java.io.Serializable
- Direct Known Subclasses:
AbstractItemConfigInfo
,ViewInfo
public abstract class AbstractItemInfo extends java.lang.Object implements UserItemInfo, ItemAuditInfo
Common superclass for all user item infos. The custom items are all represented in one DB table, so they should have one type of DTO. Some subclasses provide utility methods e.g. for manipulating serialized configuration.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractItemInfo.AbstractBuilder<T extends AbstractItemInfo.AbstractBuilder<T>>
Builder for the item info.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractItemInfo(AbstractItemInfo.AbstractBuilder<?> builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getChangedBy()
Username of user who modified the row.java.util.Date
getChangedOn()
Time when the row was modified.java.lang.String
getCreatedBy()
Username of user who created the row.java.util.Date
getCreatedOn()
Time when the row was created.java.lang.String
getDescription()
abstract java.lang.String
getGenericType()
java.lang.String
getId()
java.lang.String
getImplType()
java.lang.String
getName()
java.lang.String
getOwner()
java.lang.String
getParentItemId()
The views should return data tree ID, lists should return field ID and so on.java.lang.String
getSchemaId()
Gets the IJC schema ID where this item belongs to.int
getSharing()
abstract AbstractItemInfo.AbstractBuilder<?>
updateBuilder()
-
-
-
Constructor Detail
-
AbstractItemInfo
protected AbstractItemInfo(AbstractItemInfo.AbstractBuilder<?> builder)
-
-
Method Detail
-
getSchemaId
public final java.lang.String getSchemaId()
Description copied from interface:UserItemInfo
Gets the IJC schema ID where this item belongs to.- Specified by:
getSchemaId
in interfaceUserItemInfo
- Returns:
- An IJC schema ID.
-
getId
public final java.lang.String getId()
- Specified by:
getId
in interfaceItemPersistentInfo
-
getName
public final java.lang.String getName()
- Specified by:
getName
in interfaceItemPersistentInfo
-
getDescription
public final java.lang.String getDescription()
- Specified by:
getDescription
in interfaceItemPersistentInfo
-
getSharing
public final int getSharing()
- Specified by:
getSharing
in interfaceOwnablePersistentInfo
- Returns:
- The sharing status of the item
-
getOwner
public final java.lang.String getOwner()
- Specified by:
getOwner
in interfaceOwnablePersistentInfo
- Returns:
- The username of the owner of the item
-
getCreatedOn
public java.util.Date getCreatedOn()
Description copied from interface:ItemAuditInfo
Time when the row was created.- Specified by:
getCreatedOn
in interfaceItemAuditInfo
- Returns:
- creation time
-
getChangedOn
public java.util.Date getChangedOn()
Description copied from interface:ItemAuditInfo
Time when the row was modified.- Specified by:
getChangedOn
in interfaceItemAuditInfo
- Returns:
- modification time
-
getCreatedBy
public java.lang.String getCreatedBy()
Description copied from interface:ItemAuditInfo
Username of user who created the row.- Specified by:
getCreatedBy
in interfaceItemAuditInfo
- Returns:
- username
-
getChangedBy
public java.lang.String getChangedBy()
Description copied from interface:ItemAuditInfo
Username of user who modified the row.- Specified by:
getChangedBy
in interfaceItemAuditInfo
- Returns:
- username
-
getParentItemId
public final java.lang.String getParentItemId()
Description copied from interface:UserItemInfo
The views should return data tree ID, lists should return field ID and so on.- Specified by:
getParentItemId
in interfaceUserItemInfo
- Returns:
- id of the item to which this item belongs
-
getImplType
public final java.lang.String getImplType()
- Specified by:
getImplType
in interfaceImplTypeInfo
-
getGenericType
public abstract java.lang.String getGenericType()
- Specified by:
getGenericType
in interfaceItemPersistentInfo
-
updateBuilder
public abstract AbstractItemInfo.AbstractBuilder<?> updateBuilder()
- Returns:
- builder initialized with this item's data
-
-