You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2013/07/21 21:01:38 UTC
[06/44] applied
0001-Moved-cloud-controller-1.0.1-to-products-and-removed.patch
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/to-root.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/to-root.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/to-root.gif
deleted file mode 100644
index ca5ae02..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/to-root.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/universal-add.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/universal-add.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/universal-add.gif
deleted file mode 100644
index 4503f13..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/universal-add.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/viewIcons.png
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/viewIcons.png b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/viewIcons.png
deleted file mode 100644
index b01d3ab..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/viewIcons.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/view_tree.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/view_tree.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/view_tree.gif
deleted file mode 100644
index 163eb40..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/view_tree.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/visualize.png
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/visualize.png b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/visualize.png
deleted file mode 100644
index 312467f..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/visualize.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/welcomebanner.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/welcomebanner.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/welcomebanner.gif
deleted file mode 100644
index b85be46..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/welcomebanner.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/window-headding-back.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/window-headding-back.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/window-headding-back.gif
deleted file mode 100644
index 1e39445..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/images/window-headding-back.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/XMLSchema.dtd
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/XMLSchema.dtd b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/XMLSchema.dtd
deleted file mode 100644
index e8e8f76..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/XMLSchema.dtd
+++ /dev/null
@@ -1,402 +0,0 @@
-<!-- DTD for XML Schemas: Part 1: Structures
- Public Identifier: "-//W3C//DTD XMLSCHEMA 200102//EN"
- Official Location: http://www.w3.org/2001/XMLSchema.dtd -->
-<!-- $Id: XMLSchema.dtd,v 1.31 2001/10/24 15:50:16 ht Exp $ -->
-<!-- Note this DTD is NOT normative, or even definitive. --> <!--d-->
-<!-- prose copy in the structures REC is the definitive version --> <!--d-->
-<!-- (which shouldn't differ from this one except for this --> <!--d-->
-<!-- comment and entity expansions, but just in case) --> <!--d-->
-<!-- With the exception of cases with multiple namespace
- prefixes for the XML Schema namespace, any XML document which is
- not valid per this DTD given redefinitions in its internal subset of the
- 'p' and 's' parameter entities below appropriate to its namespace
- declaration of the XML Schema namespace is almost certainly not
- a valid schema. -->
-
-<!-- The simpleType element and its constituent parts
- are defined in XML Schema: Part 2: Datatypes -->
-<!ENTITY % xs-datatypes PUBLIC 'datatypes' 'datatypes.dtd' >
-
-<!ENTITY % p 'xs:'> <!-- can be overriden in the internal subset of a
- schema document to establish a different
- namespace prefix -->
-<!ENTITY % s ':xs'> <!-- if %p is defined (e.g. as foo:) then you must
- also define %s as the suffix for the appropriate
- namespace declaration (e.g. :foo) -->
-<!ENTITY % nds 'xmlns%s;'>
-
-<!-- Define all the element names, with optional prefix -->
-<!ENTITY % schema "%p;schema">
-<!ENTITY % complexType "%p;complexType">
-<!ENTITY % complexContent "%p;complexContent">
-<!ENTITY % simpleContent "%p;simpleContent">
-<!ENTITY % extension "%p;extension">
-<!ENTITY % element "%p;element">
-<!ENTITY % unique "%p;unique">
-<!ENTITY % key "%p;key">
-<!ENTITY % keyref "%p;keyref">
-<!ENTITY % selector "%p;selector">
-<!ENTITY % field "%p;field">
-<!ENTITY % group "%p;group">
-<!ENTITY % all "%p;all">
-<!ENTITY % choice "%p;choice">
-<!ENTITY % sequence "%p;sequence">
-<!ENTITY % any "%p;any">
-<!ENTITY % anyAttribute "%p;anyAttribute">
-<!ENTITY % attribute "%p;attribute">
-<!ENTITY % attributeGroup "%p;attributeGroup">
-<!ENTITY % include "%p;include">
-<!ENTITY % import "%p;import">
-<!ENTITY % redefine "%p;redefine">
-<!ENTITY % notation "%p;notation">
-
-<!-- annotation elements -->
-<!ENTITY % annotation "%p;annotation">
-<!ENTITY % appinfo "%p;appinfo">
-<!ENTITY % documentation "%p;documentation">
-
-<!-- Customisation entities for the ATTLIST of each element type.
- Define one of these if your schema takes advantage of the
- anyAttribute='##other' in the schema for schemas -->
-
-<!ENTITY % schemaAttrs ''>
-<!ENTITY % complexTypeAttrs ''>
-<!ENTITY % complexContentAttrs ''>
-<!ENTITY % simpleContentAttrs ''>
-<!ENTITY % extensionAttrs ''>
-<!ENTITY % elementAttrs ''>
-<!ENTITY % groupAttrs ''>
-<!ENTITY % allAttrs ''>
-<!ENTITY % choiceAttrs ''>
-<!ENTITY % sequenceAttrs ''>
-<!ENTITY % anyAttrs ''>
-<!ENTITY % anyAttributeAttrs ''>
-<!ENTITY % attributeAttrs ''>
-<!ENTITY % attributeGroupAttrs ''>
-<!ENTITY % uniqueAttrs ''>
-<!ENTITY % keyAttrs ''>
-<!ENTITY % keyrefAttrs ''>
-<!ENTITY % selectorAttrs ''>
-<!ENTITY % fieldAttrs ''>
-<!ENTITY % includeAttrs ''>
-<!ENTITY % importAttrs ''>
-<!ENTITY % redefineAttrs ''>
-<!ENTITY % notationAttrs ''>
-<!ENTITY % annotationAttrs ''>
-<!ENTITY % appinfoAttrs ''>
-<!ENTITY % documentationAttrs ''>
-
-<!ENTITY % complexDerivationSet "CDATA">
- <!-- #all or space-separated list drawn from derivationChoice -->
-<!ENTITY % blockSet "CDATA">
- <!-- #all or space-separated list drawn from
- derivationChoice + 'substitution' -->
-
-<!ENTITY % mgs '%all; | %choice; | %sequence;'>
-<!ENTITY % cs '%choice; | %sequence;'>
-<!ENTITY % formValues '(qualified|unqualified)'>
-
-
-<!ENTITY % attrDecls '((%attribute;| %attributeGroup;)*,(%anyAttribute;)?)'>
-
-<!ENTITY % particleAndAttrs '((%mgs; | %group;)?, %attrDecls;)'>
-
-<!-- This is used in part2 -->
-<!ENTITY % restriction1 '((%mgs; | %group;)?)'>
-
-%xs-datatypes;
-
-<!-- the duplication below is to produce an unambiguous content model
- which allows annotation everywhere -->
-<!ELEMENT %schema; ((%include; | %import; | %redefine; | %annotation;)*,
- ((%simpleType; | %complexType;
- | %element; | %attribute;
- | %attributeGroup; | %group;
- | %notation; ),
- (%annotation;)*)* )>
-<!ATTLIST %schema;
- targetNamespace %URIref; #IMPLIED
- version CDATA #IMPLIED
- %nds; %URIref; #FIXED 'http://www.w3.org/2001/XMLSchema'
- xmlns CDATA #IMPLIED
- finalDefault %complexDerivationSet; ''
- blockDefault %blockSet; ''
- id ID #IMPLIED
- elementFormDefault %formValues; 'unqualified'
- attributeFormDefault %formValues; 'unqualified'
- xml:lang CDATA #IMPLIED
- %schemaAttrs;>
-<!-- Note the xmlns declaration is NOT in the Schema for Schemas,
- because at the Infoset level where schemas operate,
- xmlns(:prefix) is NOT an attribute! -->
-<!-- The declaration of xmlns is a convenience for schema authors -->
-
-<!-- The id attribute here and below is for use in external references
- from non-schemas using simple fragment identifiers.
- It is NOT used for schema-to-schema reference, internal or
- external. -->
-
-<!-- a type is a named content type specification which allows attribute
- declarations-->
-<!-- -->
-
-<!ELEMENT %complexType; ((%annotation;)?,
- (%simpleContent;|%complexContent;|
- %particleAndAttrs;))>
-
-<!ATTLIST %complexType;
- name %NCName; #IMPLIED
- id ID #IMPLIED
- abstract %boolean; #IMPLIED
- final %complexDerivationSet; #IMPLIED
- block %complexDerivationSet; #IMPLIED
- mixed (true|false) 'false'
- %complexTypeAttrs;>
-
-<!-- particleAndAttrs is shorthand for a root type -->
-<!-- mixed is disallowed if simpleContent, overriden if complexContent
- has one too. -->
-
-<!-- If anyAttribute appears in one or more referenced attributeGroups
- and/or explicitly, the intersection of the permissions is used -->
-
-<!ELEMENT %complexContent; ((%annotation;)?, (%restriction;|%extension;))>
-<!ATTLIST %complexContent;
- mixed (true|false) #IMPLIED
- id ID #IMPLIED
- %complexContentAttrs;>
-
-<!-- restriction should use the branch defined above, not the simple
- one from part2; extension should use the full model -->
-
-<!ELEMENT %simpleContent; ((%annotation;)?, (%restriction;|%extension;))>
-<!ATTLIST %simpleContent;
- id ID #IMPLIED
- %simpleContentAttrs;>
-
-<!-- restriction should use the simple branch from part2, not the
- one defined above; extension should have no particle -->
-
-<!ELEMENT %extension; ((%annotation;)?, (%particleAndAttrs;))>
-<!ATTLIST %extension;
- base %QName; #REQUIRED
- id ID #IMPLIED
- %extensionAttrs;>
-
-<!-- an element is declared by either:
- a name and a type (either nested or referenced via the type attribute)
- or a ref to an existing element declaration -->
-
-<!ELEMENT %element; ((%annotation;)?, (%complexType;| %simpleType;)?,
- (%unique; | %key; | %keyref;)*)>
-<!-- simpleType or complexType only if no type|ref attribute -->
-<!-- ref not allowed at top level -->
-<!ATTLIST %element;
- name %NCName; #IMPLIED
- id ID #IMPLIED
- ref %QName; #IMPLIED
- type %QName; #IMPLIED
- minOccurs %nonNegativeInteger; #IMPLIED
- maxOccurs CDATA #IMPLIED
- nillable %boolean; #IMPLIED
- substitutionGroup %QName; #IMPLIED
- abstract %boolean; #IMPLIED
- final %complexDerivationSet; #IMPLIED
- block %blockSet; #IMPLIED
- default CDATA #IMPLIED
- fixed CDATA #IMPLIED
- form %formValues; #IMPLIED
- %elementAttrs;>
-<!-- type and ref are mutually exclusive.
- name and ref are mutually exclusive, one is required -->
-<!-- In the absence of type AND ref, type defaults to type of
- substitutionGroup, if any, else the ur-type, i.e. unconstrained -->
-<!-- default and fixed are mutually exclusive -->
-
-<!ELEMENT %group; ((%annotation;)?,(%mgs;)?)>
-<!ATTLIST %group;
- name %NCName; #IMPLIED
- ref %QName; #IMPLIED
- minOccurs %nonNegativeInteger; #IMPLIED
- maxOccurs CDATA #IMPLIED
- id ID #IMPLIED
- %groupAttrs;>
-
-<!ELEMENT %all; ((%annotation;)?, (%element;)*)>
-<!ATTLIST %all;
- minOccurs (1) #IMPLIED
- maxOccurs (1) #IMPLIED
- id ID #IMPLIED
- %allAttrs;>
-
-<!ELEMENT %choice; ((%annotation;)?, (%element;| %group;| %cs; | %any;)*)>
-<!ATTLIST %choice;
- minOccurs %nonNegativeInteger; #IMPLIED
- maxOccurs CDATA #IMPLIED
- id ID #IMPLIED
- %choiceAttrs;>
-
-<!ELEMENT %sequence; ((%annotation;)?, (%element;| %group;| %cs; | %any;)*)>
-<!ATTLIST %sequence;
- minOccurs %nonNegativeInteger; #IMPLIED
- maxOccurs CDATA #IMPLIED
- id ID #IMPLIED
- %sequenceAttrs;>
-
-<!-- an anonymous grouping in a model, or
- a top-level named group definition, or a reference to same -->
-
-<!-- Note that if order is 'all', group is not allowed inside.
- If order is 'all' THIS group must be alone (or referenced alone) at
- the top level of a content model -->
-<!-- If order is 'all', minOccurs==maxOccurs==1 on element/any inside -->
-<!-- Should allow minOccurs=0 inside order='all' . . . -->
-
-<!ELEMENT %any; (%annotation;)?>
-<!ATTLIST %any;
- namespace CDATA '##any'
- processContents (skip|lax|strict) 'strict'
- minOccurs %nonNegativeInteger; '1'
- maxOccurs CDATA '1'
- id ID #IMPLIED
- %anyAttrs;>
-
-<!-- namespace is interpreted as follows:
- ##any - - any non-conflicting WFXML at all
-
- ##other - - any non-conflicting WFXML from namespace other
- than targetNamespace
-
- ##local - - any unqualified non-conflicting WFXML/attribute
- one or - - any non-conflicting WFXML from
- more URI the listed namespaces
- references
-
- ##targetNamespace ##local may appear in the above list,
- with the obvious meaning -->
-
-<!ELEMENT %anyAttribute; (%annotation;)?>
-<!ATTLIST %anyAttribute;
- namespace CDATA '##any'
- processContents (skip|lax|strict) 'strict'
- id ID #IMPLIED
- %anyAttributeAttrs;>
-<!-- namespace is interpreted as for 'any' above -->
-
-<!-- simpleType only if no type|ref attribute -->
-<!-- ref not allowed at top level, name iff at top level -->
-<!ELEMENT %attribute; ((%annotation;)?, (%simpleType;)?)>
-<!ATTLIST %attribute;
- name %NCName; #IMPLIED
- id ID #IMPLIED
- ref %QName; #IMPLIED
- type %QName; #IMPLIED
- use (prohibited|optional|required) #IMPLIED
- default CDATA #IMPLIED
- fixed CDATA #IMPLIED
- form %formValues; #IMPLIED
- %attributeAttrs;>
-<!-- type and ref are mutually exclusive.
- name and ref are mutually exclusive, one is required -->
-<!-- default for use is optional when nested, none otherwise -->
-<!-- default and fixed are mutually exclusive -->
-<!-- type attr and simpleType content are mutually exclusive -->
-
-<!-- an attributeGroup is a named collection of attribute decls, or a
- reference thereto -->
-<!ELEMENT %attributeGroup; ((%annotation;)?,
- (%attribute; | %attributeGroup;)*,
- (%anyAttribute;)?) >
-<!ATTLIST %attributeGroup;
- name %NCName; #IMPLIED
- id ID #IMPLIED
- ref %QName; #IMPLIED
- %attributeGroupAttrs;>
-
-<!-- ref iff no content, no name. ref iff not top level -->
-
-<!-- better reference mechanisms -->
-<!ELEMENT %unique; ((%annotation;)?, %selector;, (%field;)+)>
-<!ATTLIST %unique;
- name %NCName; #REQUIRED
- id ID #IMPLIED
- %uniqueAttrs;>
-
-<!ELEMENT %key; ((%annotation;)?, %selector;, (%field;)+)>
-<!ATTLIST %key;
- name %NCName; #REQUIRED
- id ID #IMPLIED
- %keyAttrs;>
-
-<!ELEMENT %keyref; ((%annotation;)?, %selector;, (%field;)+)>
-<!ATTLIST %keyref;
- name %NCName; #REQUIRED
- refer %QName; #REQUIRED
- id ID #IMPLIED
- %keyrefAttrs;>
-
-<!ELEMENT %selector; ((%annotation;)?)>
-<!ATTLIST %selector;
- xpath %XPathExpr; #REQUIRED
- id ID #IMPLIED
- %selectorAttrs;>
-<!ELEMENT %field; ((%annotation;)?)>
-<!ATTLIST %field;
- xpath %XPathExpr; #REQUIRED
- id ID #IMPLIED
- %fieldAttrs;>
-
-<!-- Schema combination mechanisms -->
-<!ELEMENT %include; (%annotation;)?>
-<!ATTLIST %include;
- schemaLocation %URIref; #REQUIRED
- id ID #IMPLIED
- %includeAttrs;>
-
-<!ELEMENT %import; (%annotation;)?>
-<!ATTLIST %import;
- namespace %URIref; #IMPLIED
- schemaLocation %URIref; #IMPLIED
- id ID #IMPLIED
- %importAttrs;>
-
-<!ELEMENT %redefine; (%annotation; | %simpleType; | %complexType; |
- %attributeGroup; | %group;)*>
-<!ATTLIST %redefine;
- schemaLocation %URIref; #REQUIRED
- id ID #IMPLIED
- %redefineAttrs;>
-
-<!ELEMENT %notation; (%annotation;)?>
-<!ATTLIST %notation;
- name %NCName; #REQUIRED
- id ID #IMPLIED
- public CDATA #REQUIRED
- system %URIref; #IMPLIED
- %notationAttrs;>
-
-<!-- Annotation is either application information or documentation -->
-<!-- By having these here they are available for datatypes as well
- as all the structures elements -->
-
-<!ELEMENT %annotation; (%appinfo; | %documentation;)*>
-<!ATTLIST %annotation; %annotationAttrs;>
-
-<!-- User must define annotation elements in internal subset for this
- to work -->
-<!ELEMENT %appinfo; ANY> <!-- too restrictive -->
-<!ATTLIST %appinfo;
- source %URIref; #IMPLIED
- id ID #IMPLIED
- %appinfoAttrs;>
-<!ELEMENT %documentation; ANY> <!-- too restrictive -->
-<!ATTLIST %documentation;
- source %URIref; #IMPLIED
- id ID #IMPLIED
- xml:lang CDATA #IMPLIED
- %documentationAttrs;>
-
-<!NOTATION XMLSchemaStructures PUBLIC
- 'structures' 'http://www.w3.org/2001/XMLSchema.xsd' >
-<!NOTATION XML PUBLIC
- 'REC-xml-1998-0210' 'http://www.w3.org/TR/1998/REC-xml-19980210' >
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/datatypes.dtd
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/datatypes.dtd b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/datatypes.dtd
deleted file mode 100644
index 63794d0..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/resources/xslt/datatypes.dtd
+++ /dev/null
@@ -1,200 +0,0 @@
-<!--
- DTD for XML Schemas: Part 2: Datatypes
- $Id: datatypes.dtd,v 1.23 2001/03/16 17:36:30 ht Exp $
- Note this DTD is NOT normative, or even definitive. - - the
- prose copy in the datatypes REC is the definitive version
- (which shouldn't differ from this one except for this comment
- and entity expansions, but just in case)
- -->
-<!--
- This DTD cannot be used on its own, it is intended
- only for incorporation in XMLSchema.dtd, q.v.
- -->
-<!-- Define all the element names, with optional prefix -->
-<!ENTITY % simpleType "%p;simpleType">
-<!ENTITY % restriction "%p;restriction">
-<!ENTITY % list "%p;list">
-<!ENTITY % union "%p;union">
-<!ENTITY % maxExclusive "%p;maxExclusive">
-<!ENTITY % minExclusive "%p;minExclusive">
-<!ENTITY % maxInclusive "%p;maxInclusive">
-<!ENTITY % minInclusive "%p;minInclusive">
-<!ENTITY % totalDigits "%p;totalDigits">
-<!ENTITY % fractionDigits "%p;fractionDigits">
-<!ENTITY % length "%p;length">
-<!ENTITY % minLength "%p;minLength">
-<!ENTITY % maxLength "%p;maxLength">
-<!ENTITY % enumeration "%p;enumeration">
-<!ENTITY % whiteSpace "%p;whiteSpace">
-<!ENTITY % pattern "%p;pattern">
-<!--
- Customisation entities for the ATTLIST of each element
- type. Define one of these if your schema takes advantage
- of the anyAttribute='##other' in the schema for schemas
- -->
-<!ENTITY % simpleTypeAttrs "">
-<!ENTITY % restrictionAttrs "">
-<!ENTITY % listAttrs "">
-<!ENTITY % unionAttrs "">
-<!ENTITY % maxExclusiveAttrs "">
-<!ENTITY % minExclusiveAttrs "">
-<!ENTITY % maxInclusiveAttrs "">
-<!ENTITY % minInclusiveAttrs "">
-<!ENTITY % totalDigitsAttrs "">
-<!ENTITY % fractionDigitsAttrs "">
-<!ENTITY % lengthAttrs "">
-<!ENTITY % minLengthAttrs "">
-<!ENTITY % maxLengthAttrs "">
-<!ENTITY % enumerationAttrs "">
-<!ENTITY % whiteSpaceAttrs "">
-<!ENTITY % patternAttrs "">
-<!-- Define some entities for informative use as attribute
- types -->
-<!ENTITY % URIref "CDATA">
-<!ENTITY % XPathExpr "CDATA">
-<!ENTITY % QName "NMTOKEN">
-<!ENTITY % QNames "NMTOKENS">
-<!ENTITY % NCName "NMTOKEN">
-<!ENTITY % nonNegativeInteger "NMTOKEN">
-<!ENTITY % boolean "(true|false)">
-<!ENTITY % simpleDerivationSet "CDATA">
-<!--
- #all or space-separated list drawn from derivationChoice
- -->
-<!--
- Note that the use of 'facet' below is less restrictive
- than is really intended: There should in fact be no
- more than one of each of minInclusive, minExclusive,
- maxInclusive, maxExclusive, totalDigits, fractionDigits,
- length, maxLength, minLength within datatype,
- and the min- and max- variants of Inclusive and Exclusive
- are mutually exclusive. On the other hand, pattern and
- enumeration may repeat.
- -->
-<!ENTITY % minBound "(%minInclusive; | %minExclusive;)">
-<!ENTITY % maxBound "(%maxInclusive; | %maxExclusive;)">
-<!ENTITY % bounds "%minBound; | %maxBound;">
-<!ENTITY % numeric "%totalDigits; | %fractionDigits;">
-<!ENTITY % ordered "%bounds; | %numeric;">
-<!ENTITY % unordered "%pattern; | %enumeration; | %whiteSpace; | %length; |
- %maxLength; | %minLength;">
-<!ENTITY % facet "%ordered; | %unordered;">
-<!ENTITY % facetAttr "value CDATA #REQUIRED
- id ID #IMPLIED">
-<!ENTITY % fixedAttr "fixed %boolean; #IMPLIED">
-<!ENTITY % facetModel "(%annotation;)?">
-<!ELEMENT %simpleType; ((%annotation;)?, (%restriction; | %list; | %union;))>
-<!ATTLIST %simpleType;
- name %NCName; #IMPLIED
- final %simpleDerivationSet; #IMPLIED
- id ID #IMPLIED
- %simpleTypeAttrs;
->
-<!-- name is required at top level -->
-<!ELEMENT %restriction; ((%annotation;)?, (%restriction1; | ((%simpleType;)?, (%facet;)*)), (%attrDecls;))>
-<!ATTLIST %restriction;
- base %QName; #IMPLIED
- id ID #IMPLIED
- %restrictionAttrs;
->
-<!--
- base and simpleType child are mutually exclusive,
- one is required.
-
- restriction is shared between simpleType and
- simpleContent and complexContent (in XMLSchema.xsd).
- restriction1 is for the latter cases, when this
- is restricting a complex type, as is attrDecls.
- -->
-<!ELEMENT %list; ((%annotation;)?, (%simpleType;)?)>
-<!ATTLIST %list;
- itemType %QName; #IMPLIED
- id ID #IMPLIED
- %listAttrs;
->
-<!--
- itemType and simpleType child are mutually exclusive,
- one is required
- -->
-<!ELEMENT %union; ((%annotation;)?, (%simpleType;)*)>
-<!ATTLIST %union;
- id ID #IMPLIED
- memberTypes %QNames; #IMPLIED
- %unionAttrs;
->
-<!--
- At least one item in memberTypes or one simpleType
- child is required
- -->
-<!ELEMENT %maxExclusive; %facetModel;>
-<!ATTLIST %maxExclusive;
- %facetAttr;
- %fixedAttr;
- %maxExclusiveAttrs;
->
-<!ELEMENT %minExclusive; %facetModel;>
-<!ATTLIST %minExclusive;
- %facetAttr;
- %fixedAttr;
- %minExclusiveAttrs;
->
-<!ELEMENT %maxInclusive; %facetModel;>
-<!ATTLIST %maxInclusive;
- %facetAttr;
- %fixedAttr;
- %maxInclusiveAttrs;
->
-<!ELEMENT %minInclusive; %facetModel;>
-<!ATTLIST %minInclusive;
- %facetAttr;
- %fixedAttr;
- %minInclusiveAttrs;
->
-<!ELEMENT %totalDigits; %facetModel;>
-<!ATTLIST %totalDigits;
- %facetAttr;
- %fixedAttr;
- %totalDigitsAttrs;
->
-<!ELEMENT %fractionDigits; %facetModel;>
-<!ATTLIST %fractionDigits;
- %facetAttr;
- %fixedAttr;
- %fractionDigitsAttrs;
->
-<!ELEMENT %length; %facetModel;>
-<!ATTLIST %length;
- %facetAttr;
- %fixedAttr;
- %lengthAttrs;
->
-<!ELEMENT %minLength; %facetModel;>
-<!ATTLIST %minLength;
- %facetAttr;
- %fixedAttr;
- %minLengthAttrs;
->
-<!ELEMENT %maxLength; %facetModel;>
-<!ATTLIST %maxLength;
- %facetAttr;
- %fixedAttr;
- %maxLengthAttrs;
->
-<!-- This one can be repeated -->
-<!ELEMENT %enumeration; %facetModel;>
-<!ATTLIST %enumeration;
- %facetAttr;
- %enumerationAttrs;
->
-<!ELEMENT %whiteSpace; %facetModel;>
-<!ATTLIST %whiteSpace;
- %facetAttr;
- %fixedAttr;
- %whiteSpaceAttrs;
->
-<!-- This one can be repeated -->
-<!ELEMENT %pattern; %facetModel;>
-<!ATTLIST %pattern;
- %facetAttr;
- %patternAttrs;
->
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/rolepermissions.xml
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/rolepermissions.xml b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/rolepermissions.xml
deleted file mode 100644
index 51e1b54..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/rolepermissions.xml
+++ /dev/null
@@ -1,153 +0,0 @@
-<!--
- ~ Copyright 2008 WSO2, Inc. (http://wso2.com)
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"></meta>
- <title>Role Permissions - User Guide</title>
- <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
-</head>
-
-<body style="font-family: Times New Roman,Times,serif; font-size: 12pt;">
-
-<h1>Role Permissions</h1>
-
-<p><strong>Note :</strong> This document may refer to Carbon components which are not used in your currently running
- Carbon instance. So please consider permissions only on Carbon components that you currently have.</p>
-
-<ol>
- <li>Login to admin console</li>
-
- <p>A Role must have this permission to log into the admin console. Without logging into the console,
- you can only have following facilities. If your Carbon instance doesn't contain any of the
- following functionalities, you won't have permissions to perform anything when you are not logged in.
- </p>
- <ul>
- <li>View a list of services.</li>
- <li>Access WSDL11 and WSDL12 of those services.</li>
- <li>Use following tools.<br/>
- - WSDL2Java, Java2WSDL, WSDL Converter, Try It, Service Validator, Module Validator</li>
- </ul>
- <br/>
-
- <li>Manage system configuration</li>
-
- <p>A Role must have this permission to use following functionalities.</p>
-
- <ul>
- <li>Throttling</li>
- <li>Caching</li>
- <li>Reliable Messaging</li>
- <li>Operation Management</li>
- <li>Governance</li>
- <li>Scheduled Tasks</li>
- <li>Module Management</li>
- <li>Transport Management</li>
- <li>JavaScript Services</li>
- <li>Eventing</li>
- <li>Logging</li>
- <li>XKMS configuring</li>
- <li>Data Service</li>
- <li>Bam</li>
- <li>Configure Synapse</li>
- <li>Identity</li>
- <li>Registry
- <ul>
- <li>Access to Resource Browser</li>
- <li>Manage properties</li>
- <li>Manage Activities</li>
- <li>Manage Association</li>
- <li>Resource Search</li>
- <li>Registry Info</li>
- <li>Registry Profiles</li>
- </ul>
- </li>
- <li>Governance
- <ul>
- <li>WSDL import</li>
- <li>Gadget Source</li>
- <li>Life cycles</li>
- <li>Service Addition</li>
- </ul>
- </li>
- </ul>
- <br/>
-
- <li>Manage security</li>
-
- <p>A Role must have this permission to use following functionalities.</p>
-
- <ul>
- <li>Security</li>
- <li>Manage Profiles</li>
- <li>STS</li>
- <li>Claim Management</li>
- </ul>
- <br/>
-
- <li>Upload services</li>
-
- <p>A Role must have this permission to upload following types of services.</p>
-
- <ul>
- <li>JAR Services</li>
- <li>AAR Services</li>
- <li>POJO Services</li>
- <li>JAXWS Services</li>
- <li>EJB Services</li>
- <li>Axis1 Services</li>
- <li>BPEL Processes</li>
- </ul>
- <br/>
-
- <li>Manage services</li>
-
- <p>A Role must have this permission to use following functionalities.</p>
-
- <ul>
- <li>All kinds of Axis services (JAR, AAR, POJO, JAXWS, EJB, Axis1)</li>
- <li>Proxy Services</li>
- <li>Modules</li>
- <li>Cluster Management</li>
- </ul>
- <br/>
-
- <li>Manage mediation</li>
-
- <p>A Role must have this permission to use all kinds of mediation functionalities.</p>
-
- <ul>
- <li>Sequences</li>
- <li>Mediation</li>
- <li>Local Entry</li>
- </ul>
- <br/>
-
- <li>Monitor system</li>
-
- <p>A Role must have this permission to use monitoring capabilities.</p>
-
- <ul>
- <li>System Statistics</li>
- <li>Logging</li>
- <li>Mediation Statistics</li>
- <li>Mediation Tracer</li>
- </ul>
- <br/>
-</ol>
-</body>
-</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/userguide.xml
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/userguide.xml b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/userguide.xml
deleted file mode 100644
index 7d05d78..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/docs/userguide.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<!--
- ~ Copyright (c) 2005-2011, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
- ~
- ~ WSO2 Inc. licenses this file to you under the Apache License,
- ~ Version 2.0 (the "License"); you may not use this file except
- ~ in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-<html>
-<head>
- <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
- <title>Role Management - User Guide</title>
- <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
-</head>
-
-<body style="font-family: Times New Roman,Times,serif; font-size: 12pt;">
-<h1>User Management</h1>
-
-<p>The User Management component of the WSO2 Carbon facilitates the management
-and control of user accounts and user roles at different levels. The key
-functionalities of this component include:</p>
-<ul>
- <li>Add, modify or remove user accounts</li>
- <li>Add, modify or remove user roles</li>
-</ul>
-
-<h2>Managing User Roles</h2>
-
-<p>Use the <em><strong>Roles</strong></em> page to add new user roles, modify
-existing roles, or delete existing roles.</p>
-
-<p><img alt="" src="../images/role-main.png" height="207" width="577"/></p>
-
-<p>Figure 1: Roles Management</p>
-
-
-<ol>
- <li>In the navigator, under <strong>Configure</strong>, click <strong>Users and Roles
- </strong>. The <em><strong>User Management</strong></em>
- page appears.</li>
- <li>Click on <strong>Roles</strong> in the <strong> System User Store</strong>
- panel. The <em><strong>Roles</strong></em> page appears.</li>
-</ol>
-<ul>
- <ul>
- <li>To add a user role,</li>
- </ul>
-</ul>
-<ol>
- <ol>
- <li>Click <strong>Add New Role</strong> on the
- <em><strong>Roles</strong></em> page.</li>
- <li>Enter the role name.</li>
- <li>Click <strong>Next.</strong></li>
-
- <p><img alt="" src="../images/add-role1.png" height="200" width="500"/></p>
-
- <p>Figure 2: Add user role</p>
- <li>In step 2, select the permissions you want to assign to the role. Please refer to the
- <a href="rolepermissions.html">Role Permissions</a> guide for details on permissions.</li>
- </ol>
-</ol>
-
-<p><img alt="" src="../images/add-role2.png" height="418" width="471"/></p>
-
-<p>Figure 3: Add permission to user role</p>
-<ul>
- <li>You can modify role permissions, and re-assign the users belonging to
- particular role, by clicking <strong>Edit Permissions</strong>, and
- <strong>Edit Users</strong> respectively on the
- <em><strong>Roles</strong></em> page..
-
- </li>
- <li>In step 3, optionally, you can select the users who
- belong to that role. (Some external user stores like LDAP, do not allow to create empty roles. In that case this step is mandatory.)
- </li>
- <li>Click <strong>Finish</strong>.
- The role you created will appear in the <em><strong>Roles</strong></em>
- panel.
- </li>
- <p><img alt="" src="../images/add-role3.png" height="300" width="600"/></p>
-
- <p>Figure 4: Add users to role</p>
- <li>To delete a role, click <strong>Delete</strong> on the
- <em><strong>Roles</strong></em> page. Please note that you cannot delete
- the admin role from the system.</li>
-</ul>
-
-<p><b>Note:</b></p>
-<ul>
- <li>If you connect to an external user store (like LDAP) in read only mode, you can read existing roles from it
- but you can not edit/delete the roles.</li>
- <li>
- In this case, you can still create new roles which will be managed internally and which are editable.
- </li>
- <li>If you connect to the external user store in read/write mode, you can edit the roles in external user store as well.</li>
-</ul>
-
-<p></p>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/Thumbs.db
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/Thumbs.db b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/Thumbs.db
deleted file mode 100644
index 4324fd5..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/Thumbs.db and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add-role3.png
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add-role3.png b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add-role3.png
deleted file mode 100644
index 476502f..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add-role3.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add.gif
deleted file mode 100644
index 4bfdd79..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/add.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check0.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check0.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check0.gif
deleted file mode 100644
index 193028b..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check0.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check1.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check1.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check1.gif
deleted file mode 100644
index 1813175..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check1.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check2.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check2.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check2.gif
deleted file mode 100644
index 7d9ceba..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/check2.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/contractall.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/contractall.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/contractall.gif
deleted file mode 100644
index b267f7f..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/contractall.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/edit.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/edit.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/edit.gif
deleted file mode 100644
index 90bd4dc..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/edit.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/external-roles.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/external-roles.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/external-roles.gif
deleted file mode 100644
index 1f1f75b..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/external-roles.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/permission-edit.png
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/permission-edit.png b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/permission-edit.png
deleted file mode 100644
index 78161cc..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/permission-edit.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/role-main.png
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/role-main.png b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/role-main.png
deleted file mode 100644
index 1be4bd0..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/role-main.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/user-roles.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/user-roles.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/user-roles.gif
deleted file mode 100644
index 8d76864..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/user-roles.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/users.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/users.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/users.gif
deleted file mode 100644
index 702ae1c..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/users.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/view.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/view.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/view.gif
deleted file mode 100644
index 9a1c6e2..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/images/view.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/js/treeview.css
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/js/treeview.css b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/js/treeview.css
deleted file mode 100644
index b0ee63d..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/role/js/treeview.css
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.7.0
-*/
-.ygtvitem{}.ygtvitem table{margin-bottom:0;border:none;}.ygtvrow td{border:none;padding:0;}.ygtvrow td a{text-decoration:none;}.ygtvtn{width:18px;height:22px;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -5600px no-repeat;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;ba
ckground:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -1600px no-repeat;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 0px no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -3200px no-repeat;}.ygtvloading{width:18px;height:22px;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;backgroun
d:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}.ygtvchildren{}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:12px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a,.ygtvrow td a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(http://yui.yahooapis.com/2.
7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(http://yui.yahooapis.com/2.7.0/build/treeview/assets/skins/sam/treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/server-roles.xml
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/server-roles.xml b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/server-roles.xml
deleted file mode 100644
index ef0f3f6..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/server-roles.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<!--
- ~ Copyright 2008 WSO2, Inc. (http://wso2.com)
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"></meta>
- <title>Server Roles Management - User Guide</title>
- <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
-</head>
-
-<body style="font-family: Times New Roman,Times,serif; font-size: 12pt;">
-
-<h1>Server Roles</h1>
-
- <p>A server-role is a parameter that is mentioned in carbon.xml for wso2carbon based products.
- Each product has a different default ServerRoles property in its carbon.xml. Default server
- role values for WSO2Carbon based products are as follows.</p>
-
- <ul>
- <li>WSO2 AppServer - "ApplicationServer"</li>
- <li>WSO2 BAM - "BusinessActivityMonitor"</li>
- <li>WSO2 BPS - "BusinessProcessServer"</li>
- <li>WSO2 BRS - "BusinessRulesServer"</li>
- <li>WSO2 DSS - "DataServicesServer"</li>
- <li>WSO2 ESB - "EnterpriseServiceBus"</li>
- <li>WSO2 GS - "GadgetServer"</li>
- <li>WSO2 GReg - "GovernanceRegistry"</li>
- <li>WSO2 IS - "IdentityServer"</li>
- <li>WSO2 MS - "MashupServer"</li>
- </ul>
- <p>This property value is used for deployment of C-App archives. Generally a C-App consists of a
- set of resources that is to be deployed in different products. So if an user deploys a C-App
- in a carbon product all of the resources cannot be deployed in that particular product instance.
- To sort out which can be deployed and which is can't server-role property is used. When a C-App
- is being deployed it reads the ServerRoles property in carbon.xml and deploys only the
- resources which matches the server-role values in there. Here is a example list of C-App
- resources that map to default server roles.</p>
-
- <ul>
- <li>ApplicationServer - foo.aar, jax-wx.jar</li>
- <li>EnterpriseServiceBus - proxy.xml</li>
- <li>BusinessProcessServer - my_bpel.zip</li>
- <li>GadgetServer - gadget.xml</li>
- </ul>
-
-
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/userguide.xml
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/userguide.xml b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/userguide.xml
deleted file mode 100644
index 8f26d9c..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/docs/userguide.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<!--
- ~ Copyright (c) 2005-2011, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
- ~
- ~ WSO2 Inc. licenses this file to you under the Apache License,
- ~ Version 2.0 (the "License"); you may not use this file except
- ~ in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-<html>
-<head>
- <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
- <title>Server Roles Management - User Guide</title>
- <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
-</head>
-
-<body style="font-family: Times New Roman,Times,serif; font-size: 12pt;">
-<h1>Server Roles Manager</h1>
-
-<h2>Introduction</h2>
-
-<p><strong>Server Roles Manager</strong> is a component to manage server roles property for
- WSO2Carbon based products. Read more about <a href="server-roles.html">
- <strong>Server Roles</strong></a>.</p>
-
-<p>As carbon supports adding different product features into one product instance original concept
- of the server role property being added into carbon.xml is hard to manage as users may have to
- manually modify the carbon.xml to include the server-roles related to the product feature they
- have added to a carbon product instance. As WSO2 Stratos and WSO2 Mars are introduced above
- action is not possible for a tenant since the tenant user is remote to the server instance.</p>
-
-<p>To overcome those issues server role manager is introduced. Server role manager will store the
- both carbon.xml default product roles and user/tenant specified server roles in Configuration
- registry. So when a C-App is deploying in carbon the C-App deployer will check for afro-mentioned
- server roles from the registry instead of carbon.xml.</p>
-
-<h2>How It Works</h2>
-
-<p>You can access the server roles manager UI clicking '<strong>Configure -> Server Roles</strong>'
- or directly from <strong>https://<host>:<port>/carbon/roles-mgt/server-roles-mgt.jsp
- </strong>.
-
-Server Roles Manager Displays all the server roles included in the current product instance in the
-landing page.
-
-<p><img alt="" src="../images/landingpage.jpg"/></p>
-<p>Figure 1: Server Roles Manager Landing page.</p>
-
-In server roles manager, server roles properties will be of two types, <strong>Default</strong> and
-<strong>Custom</strong>. Default type will be all the server roles picked from that particular
-product instance's carbon.xml and all other server roles added by the user will have type custom.
-</p>
-
-<h2>Functionality</h2>
-
-<p>Server Roles Manager has two basic functionalities,</p>
- <ol>
- <li>Add Server Role</li>
- <p>You can add any textual name as a server role without special characters except
- underscore.</p>
-
- <p><img alt="" src="../images/add_server_role.jpg"/></p>
- <p>Figure 2: Add Server Role.</p>
-
- <p>Click the link '<strong>Add New Server Role</strong>' and a drop down menu will appear to
- give the new role name. Just enter the preferred server role name than click
- <strong>Add</strong>, and it will add the server role name.</p>
-
- <li>Remove Server Role</li>
- <p>Simply click the <strong>garbage/delete icon</strong>
- (<img alt="" src="../images/delete.gif"/>) at the right side of the any existing server
- role. It will prompt a <strong>confirmation dialog</strong> and once confirmed it will
- delete the server role.</p>
-
- <p><img alt="" src="../images/delete_server_role.jpg"/></p>
- <p>Figure 2: Remove Server Role.</p>
-
- <p><strong>Note: </strong>Here users can even delete a default server role. Once it is deleted
- when next time loading server role manager will not pick it up from the carbon.xml.</p>
- </ol>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/add.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/add.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/add.gif
deleted file mode 100644
index 4bfdd79..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/add.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete.gif
deleted file mode 100644
index 471f55c..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete_server_role.jpg
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete_server_role.jpg b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete_server_role.jpg
deleted file mode 100644
index 3edceb5..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/delete_server_role.jpg and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/icon-expanded.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/icon-expanded.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/icon-expanded.gif
deleted file mode 100644
index e9b6739..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/icon-expanded.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/server-role.gif
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/server-role.gif b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/server-role.gif
deleted file mode 100644
index 019d7b8..0000000
Binary files a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/roles-mgt/images/server-role.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0ab7c4aa/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/samples/jms_queue_sample.xml
----------------------------------------------------------------------
diff --git a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/samples/jms_queue_sample.xml b/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/samples/jms_queue_sample.xml
deleted file mode 100644
index d4bea8e..0000000
--- a/products/stratos2/cloud_controller/1.0.1/modules/distribution/src/site/xdoc/samples/jms_queue_sample.xml
+++ /dev/null
@@ -1,260 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
-~ Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
-~
-~ WSO2 Inc. licenses this file to you under the Apache License,
-~ Version 2.0 (the "License"); you may not use this file except
-~ in compliance with the License.
-~ You may obtain a copy of the License at
-~
-~ http://www.apache.org/licenses/LICENSE-2.0
-~
-~ Unless required by applicable law or agreed to in writing,
-~ software distributed under the License is distributed on an
-~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-~ KIND, either express or implied. See the License for the
-~ specific language governing permissions and limitations
-~ under the License.
--->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
- <title>WSO2 MB Samples - JMS Queue Sample</title>
- <link href="../css/mb-docs.css" rel="stylesheet"/>
- <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
- media="all"/>
- </head>
-
- <body>
- <p>[<a href="../docs_index.html">Documentation Index</a>] </p>
- <h1>WSO2 MB - Samples :JMS Queue Sample</h1>
-
- <p>This guide demonstrates how persistent queues can be created and used in Message
- Broker using JMS API.
- </p>
-
- <h2>Contents</h2>
-
- <div class="toc">
- <ul>
- <li>
- <a href="#jms_queue_sample">JMS Queue Sample</a>
- </li>
- </ul>
- </div>
-
- <h2 id="jms_queue_sample">JMS Queue Sample</h2>
-
- <p>Following JMS client is used to send messages to a known created queue in WSO2 Message Broker. Queue Receiver
- can receive messages and message is printed in console.
- </p>
-
- <p>
- First log into WSO2 Message Broker Management console and create a queue named 'testQueue'. Click on the
- 'Add' menu item under the 'Queues' menu to create a queue. To create a queue , the only thing needed to
- be provided is the name of the queue.
- </p>
-
- <p>
- note: To run this code sample, you need to have dependencies located at
- $CARBON_HOME/client-lib in class path. You need to run QueueReceiver class prior to QueueSender class
- when testing this sample.
- </p>
- <p>
- Using following QueueSender JMS client messages can be sent to 'testQueue'.
- </p>
- <pre xml:space="preserve">
- package com.org.wso2.mb.jms.sample;
- /**
- * Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
- import javax.jms.JMSException;
- import javax.jms.Queue;
- import javax.jms.QueueConnection;
- import javax.jms.QueueConnectionFactory;
- import javax.jms.QueueSession;
- import javax.jms.TextMessage;
- import javax.naming.Context;
- import javax.naming.InitialContext;
- import javax.naming.NamingException;
- import java.util.Properties;
-
- public class QueueSender {
- public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
- private static final String CF_NAME_PREFIX = "connectionfactory.";
- private static final String QUEUE_NAME_PREFIX = "queue.";
- private static final String CF_NAME = "qpidConnectionfactory";
- String userName = "admin";
- String password = "admin";
-
- private static String CARBON_CLIENT_ID = "carbon";
- private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
- private static String CARBON_DEFAULT_HOSTNAME = "localhost";
- private static String CARBON_DEFAULT_PORT = "5672";
- String queueName = "testQueue";
-
-
- public static void main(String[] args) throws NamingException, JMSException {
- QueueSender queueSender = new QueueSender();
- queueSender.sendMessages();
- }
-
- public void sendMessages() throws NamingException, JMSException {
- Properties properties = new Properties();
- properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
- properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
- properties.put(QUEUE_NAME_PREFIX + queueName, queueName);
-
- System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
-
- InitialContext ctx = new InitialContext(properties);
- // Lookup connection factory
- QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx.lookup(CF_NAME);
- QueueConnection queueConnection = connFactory.createQueueConnection();
- queueConnection.start();
- QueueSession queueSession =
- queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-
- // Send message
- Queue queue = (Queue)ctx.lookup(queueName);
-
- // create the message to send
- TextMessage textMessage = queueSession.createTextMessage("Test Message Content");
-
- javax.jms.QueueSender queueSender = queueSession.createSender(queue);
- queueSender.send(textMessage);
-
- queueSender.close();
- queueSession.close();
- queueConnection.close();
-
- }
-
- public String getTCPConnectionURL(String username, String password) {
- // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
- return new StringBuffer()
- .append("amqp://").append(username).append(":").append(password)
- .append("@").append(CARBON_CLIENT_ID)
- .append("/").append(CARBON_VIRTUAL_HOST_NAME)
- .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
- .toString();
- }
-
-
- }
-
- </pre>
- <p>
- You can view created queue and its increased message count using Message Broker management console.
- </p>
- <p>
- Now to receive the messages from the 'testQueue' following QueueReceiver class can be used. Message received gets printed on the
- console.
- </p>
- <pre xml:space="preserve">
- package com.org.wso2.mb.jms.sample;
- /**
- * Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
- import javax.jms.*;
- import javax.naming.Context;
- import javax.naming.InitialContext;
- import javax.naming.NamingException;
- import java.util.Properties;
-
- public class QueueReceiver {
-
- public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
- private static final String CF_NAME_PREFIX = "connectionfactory.";
- private static final String CF_NAME = "qpidConnectionfactory";
- String userName = "admin";
- String password = "admin";
-
- private static String CARBON_CLIENT_ID = "carbon";
- private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
- private static String CARBON_DEFAULT_HOSTNAME = "localhost";
- private static String CARBON_DEFAULT_PORT = "5672";
- String queueName = "testQueue";
-
-
- public static void main(String[] args) throws NamingException, JMSException {
- QueueReceiver queueReceiver = new QueueReceiver();
- queueReceiver.receiveMessages();
- }
-
- public void receiveMessages() throws NamingException, JMSException {
- Properties properties = new Properties();
- properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
- properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
- properties.put("queue."+ queueName,queueName);
-
- System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
-
- InitialContext ctx = new InitialContext(properties);
- // Lookup connection factory
- QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx.lookup(CF_NAME);
- QueueConnection queueConnection = connFactory.createQueueConnection();
- queueConnection.start();
- QueueSession queueSession =
- queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-
- //Receive message
- Queue queue = (Queue) ctx.lookup(queueName);
- MessageConsumer queueReceiver = queueSession.createConsumer(queue);
- TextMessage message = (TextMessage) queueReceiver.receive();
- System.out.println("Got message ==>" + message.getText());
-
- queueReceiver.close();
- queueSession.close();
- queueConnection.stop();
- queueConnection.close();
-
- }
-
- public String getTCPConnectionURL(String username, String password) {
- // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
- return new StringBuffer()
- .append("amqp://").append(username).append(":").append(password)
- .append("@").append(CARBON_CLIENT_ID)
- .append("/").append(CARBON_VIRTUAL_HOST_NAME)
- .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
- .toString();
- }
-
-
- }
-
- </pre>
- <p>
- Now you should be able to see message count gets decreased for 'testQueue' using Management Console.
- </p>
- </body>
-</html>
\ No newline at end of file