public interface Item extends AuditableObject
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Attribute attribute) |
void |
addStamp(Stamp stamp)
Add stamp to Item
|
void |
addTicket(Ticket ticket) |
Item |
copy() |
Attribute |
getAttribute(QName qname)
Get attribute with qualified name.
|
Attribute |
getAttribute(String name)
Get attribute in default namespace with local name.
|
Map<QName,Attribute> |
getAttributes()
Get all Attributes of Item.
|
Map<String,Attribute> |
getAttributes(String namespace)
Return Attributes for a given namespace.
|
Object |
getAttributeValue(QName qname)
Get attribute value with qualified name
|
Object |
getAttributeValue(String name)
Get attribute value with local name in default namespace
|
Date |
getClientCreationDate() |
Date |
getClientModifiedDate() |
String |
getDisplayName() |
Boolean |
getIsActive()
Transient attribute used to mark item for deletion.
|
String |
getName() |
User |
getOwner() |
CollectionItem |
getParent()
Gets the parent of this item.
|
CollectionItemDetails |
getParentDetails(CollectionItem parent)
Each collection an item belongs to contains additional
attributes, and is represented as a CollectionItemDetails object.
|
Set<CollectionItem> |
getParents() |
Stamp |
getStamp(Class<?> clazz)
Get the stamp that corresponds to the specified class
|
Stamp |
getStamp(String type)
Get the stamp that corresponds to the specified type
|
Map<String,Stamp> |
getStampMap() |
Set<Stamp> |
getStamps()
Return all stamps associated with Item.
|
Set<Ticket> |
getTickets()
Get all Tickets on Item.
|
Set<Tombstone> |
getTombstones() |
String |
getUid() |
void |
removeAttribute(QName qname)
Remove attribute.
|
void |
removeAttribute(String name)
Remove attribute in default namespace with local name.
|
void |
removeAttributes(String namespace)
Remove all attributes in a namespace.
|
void |
removeStamp(Stamp stamp)
Remove stamp from Item.
|
void |
removeTicket(Ticket ticket) |
void |
setAttribute(QName key,
Object value)
Set attribute value attribute with qualified name
|
void |
setAttribute(String name,
Object value)
Set attribute value of attribute with local name in default
namespace.
|
void |
setClientCreationDate(Date clientCreationDate) |
void |
setClientModifiedDate(Date clientModifiedDate) |
void |
setDisplayName(String displayName) |
void |
setIsActive(Boolean isActive)
Transient attribute used to mark item for deletion.
|
void |
setName(String name) |
void |
setOwner(User owner) |
void |
setUid(String uid) |
getCreationDate, getEntityTag, getFactory, getModifiedDate, updateTimestampSet<Stamp> getStamps()
void addStamp(Stamp stamp)
stamp - stamp to addvoid removeStamp(Stamp stamp)
stamp - stamp to removeStamp getStamp(String type)
type - stamp type to returnStamp getStamp(Class<?> clazz)
clazz - class of stamp to returnMap<QName,Attribute> getAttributes()
void addTicket(Ticket ticket)
void removeTicket(Ticket ticket)
void addAttribute(Attribute attribute)
void removeAttribute(String name)
name - local name of attribute to removevoid removeAttribute(QName qname)
qname - qualifed name of attribute to remove.void removeAttributes(String namespace)
namespace - namespace of attributes to removeAttribute getAttribute(String name)
name - local name of attributeAttribute getAttribute(QName qname)
qname - qualified name of attribute to retrieveObject getAttributeValue(String name)
name - local name of attributeObject getAttributeValue(QName qname)
qname - qualified name of attributevoid setAttribute(String name, Object value)
name - local name of attributevalue - value to update attributevoid setAttribute(QName key, Object value)
key - qualified name of attributevalue - value to update attributeMap<String,Attribute> getAttributes(String namespace)
namespace - namespace of the Attributes to returnDate getClientCreationDate()
void setClientCreationDate(Date clientCreationDate)
Date getClientModifiedDate()
void setClientModifiedDate(Date clientModifiedDate)
String getName()
void setName(String name)
String getDisplayName()
void setDisplayName(String displayName)
displayName - Item's human readable nameUser getOwner()
void setOwner(User owner)
String getUid()
void setUid(String uid)
Set<CollectionItem> getParents()
CollectionItemDetails getParentDetails(CollectionItem parent)
parent - parent collectionCollectionItem getParent()
Boolean getIsActive()
void setIsActive(Boolean isActive)
isActive - true if item should be deletedItem copy()
Copyright © 2012–2018 1&1. All rights reserved.