| java.lang.Object com.flexive.shared.configuration.DivisionData
All known Subclasses: com.flexive.shared.configuration.DivisionDataEdit,
DivisionData | public class DivisionData implements Serializable(Code) | | Container for division data read from the global configuration.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
DIVISION_GLOBAL | final public static int DIVISION_GLOBAL(Code) | | Global configuration division
|
DIVISION_TEST | final public static int DIVISION_TEST(Code) | | Division to be used for automated tests
|
available | protected boolean available(Code) | | |
DivisionData | public DivisionData(int id, boolean available, String dataSource, String domainRegEx, DBVendor dbVendor, String dbVersion)(Code) | | Constructor.
Parameters: id - the division ID Parameters: available - if division is available Parameters: dataSource - datasource JNDI path Parameters: domainRegEx - domain name matcher Parameters: dbVendor - database vendor Parameters: dbVersion - database version |
asEditable | public DivisionDataEdit asEditable()(Code) | | Returns an editable division data object initialized with this instance. Note that the
edit object does not influence the original division data object, so it is safe to create
edit objects from system division data entries without cloning them first.
an editable division data object initialized with this instance |
getDataSource | public String getDataSource()(Code) | | Returns the JNDI path to this division's datasource.
the JNDI path to this division's datasource. |
getDbVendor | public DBVendor getDbVendor()(Code) | | Get the DB Vendor
DB Vendor |
getDbVersion | public String getDbVersion()(Code) | | Get the DB Version
DB Version |
getDomainRegEx | public String getDomainRegEx()(Code) | | The regular expression describing matching domains for this divison.
the regular expression describing matching domains for this divison. |
getId | public int getId()(Code) | | Return the unique ID of this division.
the unique ID of this division. |
hashCode | public int hashCode()(Code) | | |
isAvailable | public boolean isAvailable()(Code) | | Is this division available (ie can a connection be retrieved)
available |
isMatchingDomain | public boolean isMatchingDomain(String domain)(Code) | | Returns true when the given domain matches, false otherwise.
Parameters: domain - the domain to be checked true when the given domain matches, false otherwise. |
isValidDivisionId | public static boolean isValidDivisionId(int divisionId)(Code) | | Checks if the given division ID is valid (i.e. if the division
parameter has been set). This method does not check if the given division
is available, i.e. if corresponding entries exist in the global configuration.
Parameters: divisionId - the division ID to be checked true for valid division IDs |
|
|