| com.jcorporate.expresso.core.dbobj.DBObject com.jcorporate.expresso.core.dbobj.SecuredDBObject com.jcorporate.expresso.ext.dbobj.RestrictedCountries
RestrictedCountries | public class RestrictedCountries extends SecuredDBObject (Code) | | Table for countries that are not permitted access to 'restricted' downloads
Usually this pertains to Cryptographic source code that cannot be downloaded
from the U.S. to Cuba for example.
author: Michael Rimov |
FLD_RESTRICTID | final public static String FLD_RESTRICTID(Code) | | |
lookupCache | protected static CacheLRU lookupCache(Code) | | Lookup Cache to prevent having to do reverse-name lookups all the time.
for the same user
|
restrictedIDs | int[] restrictedIDs(Code) | | |
RestrictedCountries | public RestrictedCountries() throws DBException(Code) | | Constructor
throws: DBException - if there's an initialization problem |
RestrictedCountries | public RestrictedCountries(DBConnection myConnection) throws DBException(Code) | | Constructor
Parameters: myConnection - the DBConnection to assign to this DBObject throws: DBException - if there's an initialization problem |
RestrictedCountries | public RestrictedCountries(int uid) throws DBException(Code) | | Use over (String) constructor. Initializes the object in the context
of the user who's uid belongs to the parameter.
Parameters: uid - the Uid of the user context throws: DBException - if there's an initialization problem |
RestrictedCountries | public RestrictedCountries(RequestContext request) throws DBException(Code) | | For using DBObjects within Controllers. Initializes based upon the current
user and the requested db. [Of course this can be modified later]
Parameters: request - - The controller request handed to you by the framework. throws: DBException - if there's an initialization problem |
getCachedLookup | protected synchronized Boolean getCachedLookup(String ipAddress)(Code) | | Threadsafe cache dealing... check to see if the ip address is already
in the listing
Parameters: ipAddress - the ipAddress to check for cached values. java.lang.Boolean |
getExpectedDefaultPopulation | public int getExpectedDefaultPopulation()(Code) | | Useful method for unit testing to make sure that everything got added during
setup as expected.
the length o |
isRestricted | public boolean isRestricted(String ipAddress) throws DBException(Code) | | Determines if the given IP adderss is a 'restricted' source. 127.0.0.1
is always considered unrestricted.
Parameters: ipAddress - the ipaddress as a string true if this ip address maps to a domain that's listed in the restrictedtable. throws: DBException - upon error |
setCachedLookup | protected synchronized void setCachedLookup(String ipAddress, Boolean newValue)(Code) | | Threadsafe cache dealing, sets the lookup ip address as the key, and the
lookup results in the cache system.
Parameters: ipAddress - the ipAddress to check for cached values. Parameters: newValue - java.lang.Boolean result to cache. |
Methods inherited from com.jcorporate.expresso.core.dbobj.SecuredDBObject | public void add() throws DBException(Code)(Java Doc) public boolean canRequesterAdd() throws DBException(Code)(Java Doc) public boolean canRequesterDelete() throws DBException(Code)(Java Doc) public boolean canRequesterRead() throws DBException(Code)(Java Doc) public boolean canRequesterUpdate() throws DBException(Code)(Java Doc) public boolean checkAllowed(String requestedFunction) throws DBException(Code)(Java Doc) public void copyAttributes(DBObject returnObj) throws DBException(Code)(Java Doc) public synchronized int count() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) protected synchronized void createSecurityCache() throws CacheException(Code)(Java Doc) public void delete() throws DBException(Code)(Java Doc) public synchronized void deleteAll() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) public boolean find() throws DBException(Code)(Java Doc) public int getRequestingUid()(Code)(Java Doc) protected String getString(String stringCode, Object[] args) throws DBException(Code)(Java Doc) protected String getString(String stringCode) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3, String arg4) throws DBException(Code)(Java Doc) public int getSystemUid()(Code)(Java Doc) public static SecuredDBObject instantiate(String className) throws DBException(Code)(Java Doc) public void isAllowed(String requestedFunction) throws SecurityException, DBException(Code)(Java Doc) public void retrieve() throws DBException(Code)(Java Doc) public synchronized void search() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList(String sortKeys) throws DBException(Code)(Java Doc) public void setRequestingUid(int newUid)(Code)(Java Doc) public void update() throws DBException(Code)(Java Doc)
|
Methods inherited from com.jcorporate.expresso.core.dbobj.DBObject | public void add() throws DBException(Code)(Java Doc) protected synchronized void addDetail(String objName, String keyFieldsLocal, String keyFieldsForeign) throws DBException(Code)(Java Doc) protected synchronized void addField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addField(String fieldName, String fieldType, int fieldSize, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected void addFieldError(String fieldName, String errorMessage)(Code)(Java Doc) public void addFoundKeys(String fieldName)(Code)(Java Doc) public synchronized void addIfNeeded() throws DBException(Code)(Java Doc) protected void addIndex(String indexName, String fieldNames, boolean isUnique) throws IllegalArgumentException, DBException(Code)(Java Doc) protected synchronized void addKey(String keyFieldName) throws DBException(Code)(Java Doc) public synchronized void addOrUpdate() throws DBException(Code)(Java Doc) public void addSortKey(String fieldString, boolean ascending)(Code)(Java Doc) protected void addTransition(Transition t) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String descripKey, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, String descripKey, String fieldDescription) throws DBException(Code)(Java Doc) public double average(String fieldName) throws DBException(Code)(Java Doc) public synchronized void basicAdd() throws DBException(Code)(Java Doc) public void cacheIsChangedComparison() throws DBException(Code)(Java Doc) protected synchronized void checkAllReferredToBy() throws DBException(Code)(Java Doc) protected synchronized void checkAllRefs() throws DBException(Code)(Java Doc) public synchronized void checkAllRefsPublic() throws DBException(Code)(Java Doc) public boolean checkAllowed(String function) throws DBException(Code)(Java Doc) protected void checkDeleteDetailPerm(DBObject obj) throws DBException(Code)(Java Doc) public synchronized void checkField(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) protected synchronized void checkRef(String foreignKeyNames, DBObject refObject, String errorMessage) throws DBException(Code)(Java Doc) protected synchronized void checkRef(String foreignKeyNames, DBObject refObject, String errorMessage, boolean allowBlank) throws DBException(Code)(Java Doc) public synchronized void clear() throws DBException(Code)(Java Doc) public synchronized void clearDistinctFields() throws DBException(Code)(Java Doc) protected void clearError(String fieldName)(Code)(Java Doc) public synchronized void clearFieldsToRetrieve() throws DBException(Code)(Java Doc) public void clearSortKeys()(Code)(Java Doc) protected synchronized boolean containsWildCards(String fieldValue) throws DBException(Code)(Java Doc) protected void copyAttributes(DBObject returnObj) throws DBException(Code)(Java Doc) public synchronized int count() throws DBException(Code)(Java Doc) public void delete() throws DBException(Code)(Java Doc) public synchronized void delete(boolean deleteDetails) throws DBException(Code)(Java Doc) public synchronized void deleteAll() throws DBException(Code)(Java Doc) public synchronized void deleteAll(boolean oneByOne) throws DBException(Code)(Java Doc) protected void deleteDetails(DBConnection detailConnection) throws DBException(Code)(Java Doc) protected String denotesRange(String fieldValue)(Code)(Java Doc) public boolean equals(Object parm1)(Code)(Java Doc) public boolean find() throws DBException(Code)(Java Doc) public String forKey()(Code)(Java Doc) public String formatDateTime(String fieldName) throws DBException(Code)(Java Doc) public Object get(String fieldName) throws DataException(Code)(Java Doc) public Map getAllAttributes()(Code)(Java Doc) public Object getAttribute(String attribName)(Code)(Java Doc) public Iterator getAttributesIterator(String fieldName) throws DBException(Code)(Java Doc) protected String getBooleanFieldValue(boolean fieldValue) throws DBException(Code)(Java Doc) public int getCacheSize()(Code)(Java Doc) public static synchronized HashMap getCacheStatsMap()(Code)(Java Doc) protected CacheUtils getCacheUtil()(Code)(Java Doc) public synchronized boolean getCheckZeroUpdate() throws DBException(Code)(Java Doc) public String getCustomWhereClause()(Code)(Java Doc) public synchronized String getDBName()(Code)(Java Doc) public String getDataContext()(Code)(Java Doc) public DataField getDataField(String fieldName) throws DBException(Code)(Java Doc) public synchronized DataTransferObject getDataTransferObject() throws DBException(Code)(Java Doc) public Enumeration getDetails() throws DBException(Code)(Java Doc) public synchronized int getDistinctFieldCount() throws DBException(Code)(Java Doc) public String[] getDistinctFields() throws DBException(Code)(Java Doc) public synchronized String getField(String fieldName) throws DBException(Code)(Java Doc) public BigDecimal getFieldBigDecimal(String fieldName) throws DBException(Code)(Java Doc) public boolean getFieldBoolean(String fieldName) throws DBException(Code)(Java Doc) public byte getFieldByte(String fieldName) throws DBException(Code)(Java Doc) public byte[] getFieldByteArray(String fieldName) throws DBException(Code)(Java Doc) protected String getFieldData(String fieldName)(Code)(Java Doc) public java.util.Date getFieldDate(String fieldName) throws DBException(Code)(Java Doc) public String getFieldDecimalFormatted(String fieldName, String formatPattern) throws DBException(Code)(Java Doc) public double getFieldDouble(String fieldName) throws DBException(Code)(Java Doc) public String getFieldErrorMessage(String fieldName)(Code)(Java Doc) public float getFieldFloat(String fieldName) throws DBException(Code)(Java Doc) public int getFieldInt(String fieldName) throws DBException(Code)(Java Doc) public long getFieldLong(String fieldName) throws DBException(Code)(Java Doc) public DataFieldMetaData getFieldMetaData(String fieldName)(Code)(Java Doc) public short getFieldShort(String fieldName) throws DBException(Code)(Java Doc) public synchronized int getFieldsToRetrieveCount() throws DBException(Code)(Java Doc) public Class getFilterClass()(Code)(Java Doc) public long getFoundCount()(Code)(Java Doc) public Object[] getFoundKeysArray()(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField) throws DBException(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField, String whereClause) throws DBException(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField, String whereClause, String sortKeyString) throws DBException(Code)(Java Doc) public synchronized Object[] getIndexArray() throws DBException(Code)(Java Doc) public String getKey()(Code)(Java Doc) public Iterator getKeyFieldListIterator() throws DBException(Code)(Java Doc) public String getLength(String fieldName) throws DBException(Code)(Java Doc) public int getLengthInt(String fieldName) throws DBException(Code)(Java Doc) public DBConnection getLocalConnection()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Logger getLogger()(Code)(Java Doc) public String getLookupObject(String fieldName) throws DBException(Code)(Java Doc) public String getMax(String fieldName, boolean whereClause) throws DBException(Code)(Java Doc) public String getMax(String fieldName) throws DBException(Code)(Java Doc) public int getMaxRecords()(Code)(Java Doc) public String getMyKeys() throws DBException(Code)(Java Doc) protected Object[] getMyUpdatesArray()(Code)(Java Doc) public int getOffsetRecord()(Code)(Java Doc) protected PatternMatcher getPatternMatcher()(Code)(Java Doc) public int getPrecision(String fieldName) throws DBException(Code)(Java Doc) public String getSerializedForm(DBField theField) throws DBException(Code)(Java Doc) public synchronized String getStringFilter(String fieldName) throws DBException(Code)(Java Doc) protected DBObject getThisDBObj() throws DBException(Code)(Java Doc) public static synchronized DBObject getThisDBbj(DataTransferObject dto) throws DBException(Code)(Java Doc) public String getValidValueDescrip(String fieldName) throws DBException(Code)(Java Doc) public synchronized Vector getValidValues(String fieldName) throws DBException(Code)(Java Doc) public java.util.List getValidValuesList(String fieldName) throws DBException(Code)(Java Doc) public Vector getValues() throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField) throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField, String whereClause) throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField, String whereClause, String sortKeyString) throws DBException(Code)(Java Doc) public boolean hasError(String fieldName)(Code)(Java Doc) public boolean hasErrors()(Code)(Java Doc) public boolean haveAllKeys() throws DBException(Code)(Java Doc) protected synchronized void initialize() throws DBException(Code)(Java Doc) public boolean isCached()(Code)(Java Doc) public boolean isChanged() throws DBException(Code)(Java Doc) public synchronized boolean isDistinct() throws DBException(Code)(Java Doc) public synchronized boolean isEmpty() throws DBException(Code)(Java Doc) public boolean isFieldDistinct(String fieldName) throws DBException(Code)(Java Doc) public boolean isFieldNull(String fieldName) throws DBException(Code)(Java Doc) public boolean isFieldToRetrieve(String fieldName) throws DBException(Code)(Java Doc) public synchronized boolean isFieldsToRetrieve() throws DBException(Code)(Java Doc) public synchronized boolean isMultiValued(String fieldName) throws DBException(Code)(Java Doc) public boolean isReadOnly(String fieldName) throws DBException(Code)(Java Doc) public boolean isSecret(String fieldName) throws DBException(Code)(Java Doc) public boolean isVirtual(String fieldName) throws DBException(Code)(Java Doc) public synchronized int loadFromConnection(DBConnection connection) throws DBException(Code)(Java Doc) protected void logChange(DBField oneField, String fieldValue)(Code)(Java Doc) public double max(String fieldName) throws DBException(Code)(Java Doc) public double min(String fieldName) throws DBException(Code)(Java Doc) public DBObject newInstance() throws DBException(Code)(Java Doc) protected String noNewLine(String fieldValue)(Code)(Java Doc) protected String noQuotes(String oldString)(Code)(Java Doc) protected synchronized void notifyListeners(String eventCode) throws DBException(Code)(Java Doc) public synchronized void populateDefaultValues() throws DBException(Code)(Java Doc) protected synchronized void referredToBy(DBObject refObject, String foreignKeyNames, String errorMessage) throws DBException(Code)(Java Doc) public void removeAttribute(String attributeName)(Code)(Java Doc) public synchronized void removeFromCache(DBObject theDBObj) throws DBException(Code)(Java Doc) public void retrieve() throws DBException(Code)(Java Doc) public boolean retrieveFromCache() throws DBException(Code)(Java Doc) public void saveBinaryField(String fieldName, byte[] incomingData) throws DBException(Code)(Java Doc) public synchronized void search() throws DBException(Code)(Java Doc) public synchronized void search(String sortKeyString) throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList(String sortKeyString) throws DBException(Code)(Java Doc) public void set(String fieldName, Object o) throws DataException(Code)(Java Doc) public synchronized void setAttribute(String attribName, Object attribValue)(Code)(Java Doc) public synchronized void setCacheSize()(Code)(Java Doc) public synchronized void setCharset(String newCharSet) throws DBException(Code)(Java Doc) public synchronized void setCheckZeroUpdate(boolean newFlag) throws DBException(Code)(Java Doc) public synchronized void setConnection(DBConnection newConnection) throws DBException(Code)(Java Doc) public synchronized void setConnection(DBConnection newConnection, String setupTablesContext) throws DBException(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere)(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere, boolean append)(Code)(Java Doc) public void setDataContext(String newContext)(Code)(Java Doc) public void setDataField(String fieldName, DataField o) throws DataException(Code)(Java Doc) public synchronized void setDataTransferObject(DataTransferObject dto) throws DBException(Code)(Java Doc) protected synchronized void setDefaultValue(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) public synchronized void setDescription(String newDescription) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, byte fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, byte[] fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, short fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, int fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, long fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, double fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, BigDecimal fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, boolean fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) public void setField(String fieldName, java.util.Date fieldValue) throws DBException(Code)(Java Doc) protected synchronized void setFieldData(String fieldName, String fieldValue)(Code)(Java Doc) protected synchronized void setFieldData(String fieldName, byte[] fieldValue)(Code)(Java Doc) public void setFieldDistinct(String fieldName, boolean flag) throws DBException(Code)(Java Doc) public void setFieldsToRetrieve(String fieldNames) throws DBException(Code)(Java Doc) public Class setFilterClass(Class filter)(Code)(Java Doc) public Filter setFilterClass(Filter filter)(Code)(Java Doc) public synchronized void setKeys(String keyValues) throws DBException(Code)(Java Doc) public void setLocale(Locale newLocale)(Code)(Java Doc) public synchronized void setLookupField(String fieldName, String lookupFieldName)(Code)(Java Doc) public synchronized void setLookupObject(String fieldName, String objectName) throws DBException(Code)(Java Doc) protected synchronized void setMask(String fieldName, String newMask) throws DBException(Code)(Java Doc) public synchronized void setMaxRecords(int newMax) throws DBException(Code)(Java Doc) protected synchronized void setMultiValued(String fieldName) throws DBException(Code)(Java Doc) protected synchronized void setName(String theName) throws DBException(Code)(Java Doc) public synchronized void setOffsetRecord(int newOffset) throws DBException(Code)(Java Doc) public synchronized void setReadOnly(String fieldName) throws DBException(Code)(Java Doc) public synchronized void setSchema(Schema schema) throws DBException(Code)(Java Doc) public synchronized void setSecret(String fieldName) throws DBException(Code)(Java Doc) protected void setSortKey(String sortKeyString)(Code)(Java Doc) public synchronized String setStringFilter(String fieldName, String filterMethod) throws DBException(Code)(Java Doc) public void setStringFiltersOnAll(String filter) throws DBException(Code)(Java Doc) public synchronized void setTargetDbSchema(String theDbSchema) throws DBException(Code)(Java Doc) public synchronized void setTargetTable(String theTable) throws DBException(Code)(Java Doc) protected void setupFields() throws DBException(Code)(Java Doc) protected synchronized double sqlAggrFunction(String func, String fieldName) throws DBException(Code)(Java Doc) public double sum(String fieldName) throws DBException(Code)(Java Doc) public String toDebugString()(Code)(Java Doc) public void update() throws DBException(Code)(Java Doc) public void update(boolean updateChangedFieldsOnly) throws DBException(Code)(Java Doc) public synchronized void updateAll() throws DBException(Code)(Java Doc) public void updateAll(boolean oneByOne) throws DBException(Code)(Java Doc) public void verify() throws DBException(Code)(Java Doc)
|
|
|