public class GovernanceArtifactConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENTRY_FIELD |
static String |
TEXT_FIELD |
Constructor and Description |
---|
GovernanceArtifactConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addLifeCycleToContext(String context,
String lcName) |
String |
getArtifactElementNamespace()
Method to obtain the namespace of the root element of an XML governance artifact.
|
String |
getArtifactElementRoot()
Method to obtain the name of the root element of an XML governance artifact.
|
String |
getArtifactNameAttribute()
Method to obtain the attribute that specifies the artifact name.
|
String |
getArtifactNamespaceAttribute()
Method to obtain the attribute that specifies the artifact namespace.
|
org.apache.axiom.om.OMElement |
getContentDefinition()
Method to obtain the content definition element.
|
String |
getContentURL()
Method to get the content URL.
|
String[] |
getExpressionsOnListUI()
Method to obtain the list of expressions that will be used to populate the content on the
artifact list UI.
|
String |
getExtension()
Method to obtain the extension.
|
String |
getGroupingAttribute()
Returns the grouping attribute
|
int |
getIconSet()
Method to obtain the icon set to be used.
|
String |
getKey()
Method to obtain the key that can be used to locate an artifact.
|
String[] |
getKeysOnListUI()
Method to obtain the list of keys that will be used to generate the artifact list UI.
|
String |
getLifecycle()
Method to obtain the lifecycle associated with the artifact configuration
|
String |
getLifeCycleOfContext(String context) |
String |
getMediaType()
Method to obtain the media type.
|
String[] |
getNamesOnListUI()
Method to obtain the list of names that will be displayed on the artifact list UI.
|
String |
getPathExpression()
Method to obtain the expression that can be used to compute where to store the artifact.
|
String |
getPluralLabel()
Method to obtain the label used in plural representations of the artifact.
|
org.wso2.carbon.registry.core.Association[] |
getRelationshipDefinitions()
Method to retrieve the relationship details.
|
String |
getSingularLabel()
Method to obtain the label used in singular representations of the artifact.
|
String[] |
getTypesOnListUI()
Method to obtain the list of types that will be used to populate the content on the artifact
list UI.
|
org.apache.axiom.om.OMElement |
getUIConfigurations()
Method to obtain the UI configurations element.
|
org.wso2.carbon.utils.component.xml.config.ManagementPermission[] |
getUIPermissions()
Method to obtain the UI permissions element.
|
List<String> |
getUniqueAttributes() |
List<Map> |
getValidationAttributes()
Method to obtain the list of keys, in the form used in GovernanceArtifact
getAttributes/setAttributes methods, for attributes need to be regex validated.
|
boolean |
hasNamespace()
Method to get whether namespace exists.
|
void |
setArtifactElementNamespace(String artifactElementNamespace)
Method to set the namespace of the root element of an XML governance artifact.
|
void |
setArtifactElementRoot(String artifactElementRoot)
Method to set the name of the root element of an XML governance artifact.
|
void |
setArtifactNameAttribute(String artifactNameAttribute)
Method to set the attribute that specifies the artifact name.
|
void |
setArtifactNamespaceAttribute(String artifactNamespaceAttribute)
Method to set the attribute that specifies the artifact namespace.
|
void |
setContentDefinition(org.apache.axiom.om.OMElement contentDefinition)
Method to set the content definition element.
|
void |
setContentURL(String contentURL)
Method to set the content URL.
|
void |
setExtension(String extension)
Method to set the extension.
|
void |
setGroupingAttribute(String groupingAttribute) |
void |
setHasNamespace(boolean hasNamespace)
Method to set whether namespace exists.
|
void |
setIconSet(int iconSet)
Method to set the icon set to be used.
|
void |
setKey(String key)
Method to set the key that can be used to locate an artifact.
|
void |
setLifecycle(String lifecycle)
Method to associate lifecycle with the artifact configuration
|
void |
setMediaType(String mediaType)
Method to set the media type.
|
void |
setPathExpression(String pathExpression)
Method to set the expression that can be used to compute where to store the artifact.
|
void |
setPluralLabel(String pluralLabel)
Method to set the label used in plural representations of the artifact.
|
void |
setRelationshipDefinitions(org.wso2.carbon.registry.core.Association[] relationships)
Method to set the relationship details.
|
void |
setSingularLabel(String singularLabel)
Method to set the label used in singular representations of the artifact.
|
void |
setUIConfigurations(org.apache.axiom.om.OMElement uiConfigurations)
Method to set the UI configurations element.
|
void |
setUIListConfigurations(org.apache.axiom.om.OMElement listConfigurations)
Method to set the configuration for the artifact list UI.
|
void |
setUIPermissions(org.wso2.carbon.utils.component.xml.config.ManagementPermission[] uiPermissions)
Method to set the UI permissions element.
|
protected void |
setUniqueAttributes() |
void |
setUniqueAttributes(List<String> uniqueAttributes) |
public static final String TEXT_FIELD
public static final String ENTRY_FIELD
public String getMediaType()
public void setMediaType(String mediaType)
mediaType
- the media type.public String getContentURL()
public void setContentURL(String contentURL)
contentURL
- the content URL.public String getExtension()
public void setExtension(String extension)
extension
- the extension.public boolean hasNamespace()
public void setHasNamespace(boolean hasNamespace)
hasNamespace
- whether namespace exists.public int getIconSet()
public void setIconSet(int iconSet)
iconSet
- the icon set to be used.public String getGroupingAttribute()
public void setGroupingAttribute(String groupingAttribute)
groupingAttribute
- attribute to be grouped frompublic String getArtifactNameAttribute()
public void setArtifactNameAttribute(String artifactNameAttribute)
artifactNameAttribute
- the attribute that specifies the artifact name.public String getArtifactNamespaceAttribute()
public void setArtifactNamespaceAttribute(String artifactNamespaceAttribute)
artifactNamespaceAttribute
- the attribute that specifies the artifact namespace.public String getArtifactElementRoot()
public void setArtifactElementRoot(String artifactElementRoot)
artifactElementRoot
- the name of the root element of an XML governance artifact.public String getArtifactElementNamespace()
public void setArtifactElementNamespace(String artifactElementNamespace)
artifactElementNamespace
- the namespace of the root element of an XML governance
artifact.public org.wso2.carbon.registry.core.Association[] getRelationshipDefinitions()
public void setRelationshipDefinitions(org.wso2.carbon.registry.core.Association[] relationships)
relationships
- the relationship details.public org.apache.axiom.om.OMElement getContentDefinition()
public void setContentDefinition(org.apache.axiom.om.OMElement contentDefinition)
contentDefinition
- the content definition element.public org.apache.axiom.om.OMElement getUIConfigurations()
public void setUIConfigurations(org.apache.axiom.om.OMElement uiConfigurations)
uiConfigurations
- the UI configurations element.public org.wso2.carbon.utils.component.xml.config.ManagementPermission[] getUIPermissions()
public void setUIPermissions(org.wso2.carbon.utils.component.xml.config.ManagementPermission[] uiPermissions)
uiPermissions
- the UI permissions element.public void setUIListConfigurations(org.apache.axiom.om.OMElement listConfigurations)
listConfigurations
- the configuration for the artifact list UI.public String getKey()
public void setKey(String key)
key
- the key that can be used to locate an artifact.public String getSingularLabel()
public void setSingularLabel(String singularLabel)
singularLabel
- the label used in singular representations of the artifact.public String getPluralLabel()
public void setPluralLabel(String pluralLabel)
pluralLabel
- the label used in plural representations of the artifact.public String getPathExpression()
public void setPathExpression(String pathExpression)
pathExpression
- the expression that can be used to compute where to store the artifact.public String getLifecycle()
public String getLifeCycleOfContext(String context)
context
- name of the context which life cycle is neededpublic void addLifeCycleToContext(String context, String lcName)
context
- context namelcName
- life-cyle namepublic void setLifecycle(String lifecycle)
lifecycle
- Name of the lifecycle associated with the artifact configurationpublic String[] getKeysOnListUI()
public String[] getNamesOnListUI()
public String[] getTypesOnListUI()
public String[] getExpressionsOnListUI()
public List<Map> getValidationAttributes()
protected void setUniqueAttributes()
Copyright © 2015 WSO2. All Rights Reserved.