Class CompanyWS
CompanyWS is the webservice representation of a Vorsorgeeinrichtung (VE). This is the root instance
representing a specific legal entity. Companies may have more than one branch location as well as different names in
various languages. Details are therefore stored in CompanyAddressWS and accessed by getAddresses().
(UPDATE: More than one branch location etc. seemed like a good idea at the time. In retrospect not really.
getAddresses() will only return one instance of CompanyAddressWS. We're leaving the method
signature in place in order not to break existing client impls.)
- Author:
- Rainer Alföldi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aCollectionof XSD schema namespaces this company is configured to accept.Deprecated.it is recommended to lookup the complete address on UID-Register instead @see UID-RegisterNo longer supported.getName()getUid()voidsetAcceptedSchemas(Collection<String> acceptedSchemas) voidsetAddresses(Collection<CompanyAddressWS> addresses) Deprecated.voidsetExtendedValidations(Collection<String> extendedValidations) No longer supported.voidvoid
-
Constructor Details
-
CompanyWS
public CompanyWS()
-
-
Method Details
-
getUid
- Returns:
- UID of this company in machine readable Swiss UID format.
- See Also:
-
setUid
-
getName
- Returns:
- Shortname of this company. This is not necessarily an official name and for display purposes only.
Official names are provided by
getAddresses().
-
setName
-
getAddresses
Deprecated.it is recommended to lookup the complete address on UID-Register instead @see UID-RegisterThis method will always return oneCompanyAddressWS.(Multiple addresses were initially seen as a good idea. In retrospect not really. The backend only allows one set of contact info. We're leaving the method signature in place in order not to break existing client impls.)
- Returns:
CollectionofCompanyAddressWSbelonging to thisCompanyWS.
-
setAddresses
Deprecated. -
getAcceptedSchemas
Returns aCollectionof XSD schema namespaces this company is configured to accept.At the time of writing (2018) the following XSD schema are in use:
http://www.chaeis.ch/xsd/FZL-1.2http://exchange.aeis.ch/xsd/FZL-1.3http://exchange.aeis.ch/xsd/FZL-1.3.1http://exchange.aeis.ch/xsd/FZL-1.4
Any required migration between schema is automatically handled by BVG Exchange. Submitting companies are NOT required to take accepted schema into account.
If - however - a submitting company is able to produce documents in an accepted schema, they may do so, thereby eliminating the need for migrating the data.
- Returns:
Collectionof XSD schema namespaces this company is configured to accept.
-
setAcceptedSchemas
-
getExtendedValidations
No longer supported.(The concept of fine grained quality contracts between sender and recipient has never caught on and is - in retrospect - to complicated. We're leaving the method signature in place in order not to break existing client impls.)
- Returns:
- an empty list
-
setExtendedValidations
No longer supported.(The concept of fine grained quality contracts between sender and recipient has never caught on and is - in retrospect - to complicated. We're leaving the method signature in place in order not to break existing client impls.)
- Parameters:
extendedValidations- not used/ignored
-