Enum CountryOrganisation
- java.lang.Object
-
- java.lang.Enum<CountryOrganisation>
-
- de.hybris.platform.patchesdemo.structure.CountryOrganisation
-
- All Implemented Interfaces:
ImportOrganisationUnit<CountryOrganisation,ShopOrganisation>,java.io.Serializable,java.lang.Comparable<CountryOrganisation>
public enum CountryOrganisation extends java.lang.Enum<CountryOrganisation> implements ImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
Example of country organisation that is used for imports.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<CountryOrganisation>getChildren()Get collection of children unit organisations.java.lang.StringgetCode()Get organisation unit code.java.lang.StringgetCommonFolderName()Get name of folder that is the same common for organisations of the same kind.java.lang.StringgetFolderName()Get name of folder root folder for this kind of organisations.java.util.Collection<ImportLanguage>getLanguages()Get list of languages for given organisation unit.java.lang.StringgetName()Get organisation unit user friendly name.ShopOrganisationgetParent()Get this organisation parentStructureStategetStructureState()Get version in which this organisation should be introduced in.voidsetParent(ShopOrganisation parent)Set parent for this organisation.static CountryOrganisationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CountryOrganisation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
US
public static final CountryOrganisation US
-
CA
public static final CountryOrganisation CA
-
FR
public static final CountryOrganisation FR
-
DE
public static final CountryOrganisation DE
-
-
Method Detail
-
values
public static CountryOrganisation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CountryOrganisation c : CountryOrganisation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CountryOrganisation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
setParent
public void setParent(ShopOrganisation parent)
Description copied from interface:ImportOrganisationUnitSet parent for this organisation.- Specified by:
setParentin interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
getParent
public ShopOrganisation getParent()
Description copied from interface:ImportOrganisationUnitGet this organisation parent- Specified by:
getParentin interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>- Returns:
- organisation parent
-
getCode
public java.lang.String getCode()
Description copied from interface:ImportOrganisationUnitGet organisation unit code.- Specified by:
getCodein interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
getName
public java.lang.String getName()
Description copied from interface:ImportOrganisationUnitGet organisation unit user friendly name.- Specified by:
getNamein interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
getFolderName
public java.lang.String getFolderName()
Description copied from interface:ImportOrganisationUnitGet name of folder root folder for this kind of organisations.- Specified by:
getFolderNamein interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
getCommonFolderName
public java.lang.String getCommonFolderName()
Description copied from interface:ImportOrganisationUnitGet name of folder that is the same common for organisations of the same kind.- Specified by:
getCommonFolderNamein interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
getChildren
public java.util.Collection<CountryOrganisation> getChildren()
Description copied from interface:ImportOrganisationUnitGet collection of children unit organisations.nullin case there are no children.- Specified by:
getChildrenin interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
getLanguages
public java.util.Collection<ImportLanguage> getLanguages()
Description copied from interface:ImportOrganisationUnitGet list of languages for given organisation unit.- Specified by:
getLanguagesin interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
getStructureState
public StructureState getStructureState()
Description copied from interface:ImportOrganisationUnitGet version in which this organisation should be introduced in.- Specified by:
getStructureStatein interfaceImportOrganisationUnit<CountryOrganisation,ShopOrganisation>
-
-