|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StoreAttributable
Provides methods for associating attributes with subsegments and authorities. The attributes are String key/value pairs and can include information such as registration date, username etc.
Nested Class Summary | |
---|---|
static interface |
StoreAttributable.Selector
An interface that can select subsegments and authorities by their attributes. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAuthorityAttributes(Authority authority)
Gets attributes from an authority. |
java.lang.String |
getAuthorityIndex(Authority authority)
Gets the index of the authority. |
java.util.Map<java.lang.String,java.lang.String> |
getStoreAttributes()
Gets attributes from the store. |
java.util.Map<java.lang.String,java.lang.String> |
getSubSegmentAttributes(SubSegment subSegment)
Gets attributes from a subsegment. |
java.lang.String |
getSubSegmentIndex(SubSegment subSegment)
Gets the index of the subsegment. |
Authority[] |
listAuthoritiesByAttributes(StoreAttributable.Selector selector)
Returns all authorities whose attributes satisfy certain conditions. |
Authority[] |
listAuthoritiesByAttributeValue(java.lang.String key,
java.lang.String value)
Returns all authorities with a certain attribute key/value pair. |
Authority[] |
listAuthoritiesByIndex(java.lang.String indx)
Returns all authorities with a certain index. |
SubSegment[] |
listSubSegmentsByAttributes(StoreAttributable.Selector selector)
Returns all subsegments whose attributes satisfy certain conditions. |
SubSegment[] |
listSubSegmentsByAttributeValue(java.lang.String key,
java.lang.String value)
Returns all subsegments whose attributes satisfy certain conditions. |
SubSegment[] |
listSubSegmentsByIndex(java.lang.String indx)
Returns all subsegments with a certain index. |
void |
setAuthorityAttributes(Authority authority,
java.util.Map<java.lang.String,java.lang.String> attributes)
Associates attributes with an authority. |
void |
setAuthorityIndex(Authority authority,
java.lang.String indx)
Associates an index with an authority. |
void |
setStoreAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Associates attributes with the store. |
void |
setSubSegmentAttributes(SubSegment subSegment,
java.util.Map<java.lang.String,java.lang.String> attributes)
Associates attributes with a subsegment. |
void |
setSubSegmentIndex(SubSegment subSegment,
java.lang.String indx)
Associates an index with a subsegment. |
Method Detail |
---|
void setStoreAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) throws StoreException
attributes
- The attributes.
StoreException
java.util.Map<java.lang.String,java.lang.String> getStoreAttributes() throws StoreException
StoreException
void setAuthorityAttributes(Authority authority, java.util.Map<java.lang.String,java.lang.String> attributes) throws StoreException
authority
- The authority.attributes
- The attributes.
StoreException
java.util.Map<java.lang.String,java.lang.String> getAuthorityAttributes(Authority authority) throws StoreException
authority
- The authority.
StoreException
void setAuthorityIndex(Authority authority, java.lang.String indx) throws StoreException
authority
- The authority.indx
- The index for the authority.
StoreException
java.lang.String getAuthorityIndex(Authority authority) throws StoreException
subSegment
- The authority.
StoreException
void setSubSegmentAttributes(SubSegment subSegment, java.util.Map<java.lang.String,java.lang.String> attributes) throws StoreException
subSegment
- The subsegment.attributes
- The attributes.
StoreException
java.util.Map<java.lang.String,java.lang.String> getSubSegmentAttributes(SubSegment subSegment) throws StoreException
subSegment
- The subsegment.
StoreException
void setSubSegmentIndex(SubSegment subSegment, java.lang.String indx) throws StoreException
subSegment
- The subsegment.indx
- The index for the subsegment.
StoreException
java.lang.String getSubSegmentIndex(SubSegment subSegment) throws StoreException
subSegment
- The subsegment.
StoreException
Authority[] listAuthoritiesByAttributes(StoreAttributable.Selector selector) throws StoreException
selector
- An object that can select authorities based on their attributes.
StoreException
SubSegment[] listSubSegmentsByAttributes(StoreAttributable.Selector selector) throws StoreException
selector
- An object that can select authorities based on their attributes.
StoreException
Authority[] listAuthoritiesByAttributeValue(java.lang.String key, java.lang.String value) throws StoreException
key
- An attribute key.value
- An attribute value.
StoreException
SubSegment[] listSubSegmentsByAttributeValue(java.lang.String key, java.lang.String value) throws StoreException
key
- An attribute key.value
- An attribute value.
StoreException
Authority[] listAuthoritiesByIndex(java.lang.String indx) throws StoreException
indx
- The index to look for.
StoreException
SubSegment[] listSubSegmentsByIndex(java.lang.String indx) throws StoreException
indx
- The index to look for.
StoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |