Exemple #1
0
        /// <summary>
        /// Read a compound id list given a user object
        /// </summary>
        /// <param name="uo"></param>
        /// <returns></returns>

        public static CidList Read(
            UserObject uo)
        {
            string name = uo.InternalName;

            return(CidListDao.Read(name, null));
        }
Exemple #2
0
        /// <summary>
        /// Read a compound id list given a user object
        /// </summary>
        /// <param name="uo"></param>
        /// <returns></returns>

        public static CidList Read(
            UserObject uo,
            MetaTable mt)
        {
            string name = uo.InternalName;

            return(CidListDao.Read(name, mt));
        }
Exemple #3
0
/// <summary>
/// Copy a list to another list
/// </summary>
/// <param name="sourceListUOInternalName"></param>
/// <param name="destList"></param>
/// <returns></returns>

        public static int CopyList(
            string sourceListUOInternalName,
            UserObject destList)
        {
            CidList list = CidListDao.Read(sourceListUOInternalName);

            CidListDao.Write(list, destList);
            return(list.Count);
        }
Exemple #4
0
/// <summary>
/// Copy a list to another list
/// </summary>
/// <param name="sourceList"></param>
/// <param name="destList"></param>
/// <returns></returns>

        public static int CopyList(
            UserObject sourceList,
            UserObject destList)
        {
            CidList list = CidListDao.Read(sourceList);

            CidListDao.Write(list, destList);
            return(list.Count);
        }
Exemple #5
0
        /// <summary>
        /// Read a compound id list given an internal list name (e.g. FOLDER_123.name or LIST_1234)
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>

        public static CidList Read(
            string internalName)
        {
            return(CidListDao.Read(internalName, null));
        }