public static class Item.Type.WebCacheItemType extends ViewMember.Type.WebCacheViewMemberType implements ArtifactCacheManager.Identifiable
Modifier and Type | Method and Description |
---|---|
static Item.Type.WebCacheItemType |
create(ArtifactCacheManager.Context cntxt,
java.lang.String name)
Create a new Type.
|
static Item.Type.WebCacheItemType |
fromXml(ArtifactCacheManager.Context cntxt,
java.lang.String xmlDefinition)
Create a Type from a specified xml definition.
|
Property.WebCacheProperty |
getAssignableProperty()
return a property that determines whether this type is one that can
be assigned to a user in the context of an ALM process
|
TextProperty.WebCacheTextProperty |
getDescriptionProperty()
return a description that determines whether this type is one that
provides description information in the context of an ALM process
|
int |
getID()
Returns the ID of its underlying object.
|
int |
getIdentifier()
returns the integer identifier value of the identifier property
|
IntegerProperty.WebCacheIntegerProperty |
getIdentifierProperty()
returns the identifier property for this item type
|
java.util.Map |
getMetaProperties()
returns a java.util.Map containing meta properties defined by the
client application This feature is new to the 12.0 server Will
return an empty Hashtable for 11.0 servers Meta Properties are
simply key value pairs.
|
Property.WebCacheProperty |
getPriorityProperty()
return a property that determines whether this type is one that
provides priority information in the context of an ALM process
|
EnumeratedProperty.WebCacheEnumeratedProperty |
getStatusProperty()
return a property that determines whether this type is one that
provides status information in the context of an ALM process
|
Property.WebCacheProperty |
getSubTypeProperty()
return a property that determines whether this type is one that
provides a sub type enumeration in the context of an ALM process
|
TextProperty.WebCacheTextProperty |
getSummaryProperty()
return a summary that determines whether this type is one that
provides summary information in the context of an ALM process
|
boolean |
isEnabled()
Returns true if this type is enabled
|
boolean |
isNew()
returns true if this is a new type, i.e.
|
void |
refresh()
replace the (possibly out-dated) instance of the contained type
with an appropriate read only instance from the ArtifactCache
|
void |
setDisplayName(java.lang.String displayName)
Set the display name for instances of Item Types
|
void |
setEnabled(boolean enabled)
Enables/disables the type This feature was introduced in the 12.0
server Note that the value of this property is simply a hint to
the client application Neither the SDK nor the server ascribe any
special meaning to it Only supported for custom components
|
void |
setMetaProperties(java.util.Map properties)
saves a java.util.Map containing meta properties defined by the
client application This feature is new to the 12.0 server.
|
void |
setProperties(Property.WebCacheProperty[] pp) |
java.lang.String |
toXml()
Returns an xml representation of this type The xml representation
is used to specify the type definition when creating custom
components
|
void |
update()
Save this dirty Type to the Repository Unlike the rest of the sdk
objects, types are created from a single parameter, namely an XML
string.
|
newBooleanProperty, newContentProperty, newDateProperty, newDateTimeProperty, newDoubleProperty, newEnumeratedProperty, newGroupArrayProperty, newGroupProperty, newIntegerProperty, newLongIntegerProperty, newMapProperty, newTextProperty, newTimeSpanProperty, newUserArrayProperty, newUserProperty
addFilterListener, addQueryListener, equals, findFilter, findFilter, findProperty, findProperty, findQuery, findQuery, getCatalog, getComponentGUID, getContext, getDisplayName, getDisplayNameTranslations, getFilters, getName, getNameProperty, getPrimaryDescriptor, getProperties, getQueries, getRights, getSecondaryDescriptor, getServer, hashCode, setRights
public static Item.Type.WebCacheItemType fromXml(ArtifactCacheManager.Context cntxt, java.lang.String xmlDefinition)
cntxt
- The context of the type and its property definitionsxmlDefinition
- an xml representation of the type, possibly created
using Type and Property objects, then serialized out
as an .xml file to diskpublic static Item.Type.WebCacheItemType create(ArtifactCacheManager.Context cntxt, java.lang.String name)
cntxt
- The context of the Web Sessionname
- the name of the typepublic void setProperties(Property.WebCacheProperty[] pp)
pp
- a collection of new property objects which will become
the properties of this type. The xml definition of
each property will be aggregated into a new type
definition which is then streamed to the serverpublic boolean isNew()
Server.createType(String, boolean)
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true to enable the type, false to disable itpublic void setMetaProperties(java.util.Map properties)
properties
- the metadata key value pairs to set for this typepublic java.util.Map getMetaProperties()
public EnumeratedProperty.WebCacheEnumeratedProperty getStatusProperty()
public Property.WebCacheProperty getAssignableProperty()
public Property.WebCacheProperty getPriorityProperty()
public Property.WebCacheProperty getSubTypeProperty()
public TextProperty.WebCacheTextProperty getDescriptionProperty()
public TextProperty.WebCacheTextProperty getSummaryProperty()
public void setDisplayName(java.lang.String displayName)
displayName
- the display namepublic int getID()
getID
in class Type.WebCacheType
public void refresh()
public void update()
public java.lang.String toXml()
public int getIdentifier()
getIdentifier
in interface ArtifactCacheManager.Identifiable
public IntegerProperty.WebCacheIntegerProperty getIdentifierProperty()
getIdentifierProperty
in interface ArtifactCacheManager.Identifiable
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.