Example usage for org.apache.commons.collections ReferenceMap ReferenceMap

List of usage examples for org.apache.commons.collections ReferenceMap ReferenceMap

Introduction

In this page you can find the example usage for org.apache.commons.collections ReferenceMap ReferenceMap.

Prototype

public ReferenceMap(int keyType, int valueType) 

Source Link

Document

Constructs a new ReferenceMap that will use the specified types of references.

Usage

From source file:com.silverwrist.dynamo.unistore.TextPartImpl.java

TextPartImpl(PostDynamicUpdate post, MessageImpl parent, int part, QualifiedNameKey identity) {
    m_ops = null;/*www . j  a v a2 s  .c o m*/
    m_nscache = null;
    m_post = post;
    m_parent = parent;
    m_part = part;
    m_identity = identity;
    m_mimetype = null;
    m_size = -1;
    m_linecount = -1;
    m_nread = 0;
    m_lastread = null;
    m_properties = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);

}

From source file:com.silverwrist.dynamo.db.UserObject.java

UserObject(Map data, boolean anonymous, UserObjectOps ops, NamespaceCache ns_cache,
        SecurityReferenceMonitor srm, AuthenticatorLookup auth_lookup, PostDynamicUpdate post,
        UserPropertyTranslator upt) {/*w w  w. j a  v a 2  s . c  o m*/
    m_ops = ops;
    m_ns_cache = ns_cache;
    m_srm = srm;
    m_auth_lookup = auth_lookup;
    m_post = post;
    m_upt = upt;
    m_uid = ((Integer) (data.get(UserManagerOps.HMKEY_UID))).intValue();
    m_username = (String) (data.get(UserManagerOps.HMKEY_USERNAME));
    m_email = (String) (data.get(UserManagerOps.HMKEY_EMAIL));
    m_created = (java.util.Date) (data.get(UserManagerOps.HMKEY_CREATED));
    m_last_accessed = (java.util.Date) (data.get(UserManagerOps.HMKEY_LAST_ACCESS));
    m_anonymous = anonymous;
    m_locked = ((Boolean) (data.get(UserManagerOps.HMKEY_LOCKED))).booleanValue();
    m_nospam = ((Boolean) (data.get(UserManagerOps.HMKEY_NOSPAM))).booleanValue();
    m_properties = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);

}

From source file:com.silverwrist.venice.conf.impl.ConferenceImpl.java

ConferenceImpl(ConferenceOps ops, NamespaceCache nscache, SecurityReferenceMonitor srm, UserManagement users,
        Map params) {// w w  w. j  a va2s  .co m
    m_dobj = new DynamicImplConference(this);
    m_ops = ops;
    m_nscache = nscache;
    m_srm = srm;
    m_users = users;
    m_id = ((Integer) (params.get(ConferenceManagerOps.KEY_CONFID))).intValue();
    m_createdate = (java.util.Date) (params.get(ConferenceManagerOps.KEY_CREATE_DATE));
    m_lastupdate = (java.util.Date) (params.get(ConferenceManagerOps.KEY_LAST_UPDATE));
    m_hosts_gid = ((Integer) (params.get(ConferenceManagerOps.KEY_HOSTS_GID))).intValue();
    m_aclid = ((Integer) (params.get(ConferenceManagerOps.KEY_ACLID))).intValue();
    m_name = (String) (params.get(ConferenceManagerOps.KEY_NAME));
    m_properties = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);

}

From source file:com.silverwrist.dynamo.index.IndexManagerObject.java

public IndexManagerObject() {
    m_resolvers = new Hashtable();
    m_indexcache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_cleanupqueue = new ReferenceQueue();

}

From source file:com.silverwrist.dynamo.unistore.MessageImpl.java

MessageImpl(MessageOps ops, NamespaceCache nscache, SecurityReferenceMonitor srm, UserManagement users,
        PostDynamicUpdate post, Map params) {
    m_ops = ops;// w ww.j  av  a  2s  .c o  m
    m_nscache = nscache;
    m_srm = srm;
    m_users = users;
    m_post = post;
    m_id = ((Long) (params.get(ManagerOps.PARAM_MSGID))).longValue();
    m_parentid = ((Long) (params.get(ManagerOps.PARAM_PARENT))).longValue();
    m_seq = ((Integer) (params.get(ManagerOps.PARAM_SEQ))).intValue();
    m_creator = ((Integer) (params.get(ManagerOps.PARAM_CREATOR))).intValue();
    m_posted = (java.util.Date) (params.get(ManagerOps.PARAM_POSTED));
    Integer tmp = (Integer) (params.get(ManagerOps.PARAM_ACLID));
    if (tmp != null)
        m_aclid = tmp.intValue();
    m_properties = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_part_to_text = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_pk_to_text = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_part_to_binary = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_pk_to_binary = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);

}

From source file:com.silverwrist.venice.sidebox.SideboxManager.java

public SideboxManager() {
    m_qnk_to_tf = new Hashtable();
    m_ns_to_tf = new Hashtable();
    m_pk_to_fact = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_id_to_type = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_id_to_name = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_ns_to_tf.put(StandardSideboxes.NAMESPACE, new StandardSideboxes());
    m_ns_to_tf.put(TestSideboxes.NAMESPACE, new TestSideboxes());

}

From source file:com.silverwrist.dynamo.unistore.BinaryPartImpl.java

BinaryPartImpl(BinaryPartOps ops, NamespaceCache nscache, PostDynamicUpdate post, MessageImpl parent,
        Map params) throws DatabaseException {
    m_ops = ops;//from  www .  j  a v  a  2 s  .  co m
    m_nscache = nscache;
    m_post = post;
    m_parent = parent;
    m_part = ((Integer) (params.get(MessageOps.PARAM_PART))).intValue();
    PropertyKey pk = (PropertyKey) (params.get(MessageOps.PARAM_IDENTITY));
    m_identity = new QualifiedNameKey(nscache.namespaceIdToName(pk.getNamespaceID()), pk.getName());
    m_mimetype = (String) (params.get(MessageOps.PARAM_MIMETYPE));
    Integer tmp = (Integer) (params.get(MessageOps.PARAM_SIZE));
    if (tmp != null)
        m_size = tmp.intValue();
    m_filename = (String) (params.get(MessageOps.PARAM_FILENAME));
    m_nread = ((Integer) (params.get(MessageOps.PARAM_READS))).intValue();
    m_lastread = (java.util.Date) (params.get(MessageOps.PARAM_LASTREAD));
    m_properties = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);

}

From source file:com.silverwrist.dynamo.unistore.BinaryPartImpl.java

BinaryPartImpl(PostDynamicUpdate post, MessageImpl parent, int part, QualifiedNameKey identity) {
    m_ops = null;//w  ww.j av a 2s.c  o m
    m_nscache = null;
    m_post = post;
    m_parent = parent;
    m_part = part;
    m_identity = identity;
    m_mimetype = null;
    m_size = -1;
    m_filename = null;
    m_nread = 0;
    m_lastread = null;
    m_properties = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);

}

From source file:com.silverwrist.dynamo.security.SRMObject.java

public SRMObject() {
    m_cache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
    m_ace = new MainAceCache();

}

From source file:com.silverwrist.venice.community.CommunityImpl.java

/**
 * Constructs a new concrete community implementation.
 *
 * @param ops The {@link com.silverwrist.venice.community.CommunityOps CommunityOps} object providing access to the
 *            database.//  w w w  . j av  a  2  s.co m
 * @param nscache The {@link com.silverwrist.dynamo.db.NamespaceCache NamespaceCache} object providing conversion
 *                between namespace URIs and integer namespace identifiers.
 * @param srm The {@link com.silverwrist.dynamo.security.SecurityReferenceMonitor SecurityReferenceMonitor} object
 *            through which security is tested.
 * @param users The {@link com.silverwrist.dynamo.db.UserManagement UserManagetment} object used to retrieve user
 *              and group objects.
 * @param alook The {@link com.silverwrist.dynamo.iface.AuthenticatorLookup AuthenticatorLookup} interface used
 *              to find registered {@link com.silverwrist.dynamo.iface.Authenticator Authenticator} objects.
 * @param post The {@link com.silverwrist.dynamo.iface.PostDynamicUpdate PostDynamicUpdate} interface used
 *             to post dynamic update events.
 * @param cats The {@link com.silverwrist.venice.community.CategoryService CategoryService} interface used to
 *             retrieve category objects.
 * @param data A {@link java.util.Map Map} object containing the initial data for the community, with keys
 *             corresponding to static fields of the
 *             {@link com.silverwrist.venice.community.CommunityManagerOps CommunityManagerOps} object.
 */
CommunityImpl(CommunityManager base, CommunityOps ops, NamespaceCache nscache, SecurityReferenceMonitor srm,
        UserManagement users, AuthenticatorLookup alook, PostDynamicUpdate post, CategoryService cats,
        Map data) {
    m_base = base;
    m_ops = ops;
    m_nscache = nscache;
    m_srm = srm;
    m_users = users;
    m_alook = alook;
    m_post = post;
    m_cats = cats;
    m_id = ((Integer) (data.get(CommunityManagerOps.KEY_CID))).intValue();
    m_member_gid = ((Integer) (data.get(CommunityManagerOps.KEY_MEMBER_GID))).intValue();
    m_host_gid = ((Integer) (data.get(CommunityManagerOps.KEY_HOST_GID))).intValue();
    m_host_uid = ((Integer) (data.get(CommunityManagerOps.KEY_HOST_UID))).intValue();
    m_aclid = ((Integer) (data.get(CommunityManagerOps.KEY_ACLID))).intValue();
    m_catid = ((Integer) (data.get(CommunityManagerOps.KEY_CATID))).intValue();
    m_visibility = (CommunityVisibility) (data.get(CommunityManagerOps.KEY_VISIBILITY));
    m_name = (String) (data.get(CommunityManagerOps.KEY_NAME));
    m_alias = (String) (data.get(CommunityManagerOps.KEY_ALIAS));
    m_created = (java.util.Date) (data.get(CommunityManagerOps.KEY_CREATE));
    m_lastaccessed = (java.util.Date) (data.get(CommunityManagerOps.KEY_ACCESS));
    m_lastupdate = (java.util.Date) (data.get(CommunityManagerOps.KEY_UPDATE));
    m_properties = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);

}