summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/task
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2001-05-02 14:04:18 +0000
committerMikhail Voitenko <mav@openoffice.org>2001-05-02 14:04:18 +0000
commit7fa32d1760b679feb916676039dfdc6e45b36ccf (patch)
tree841e65c93e382cc798ce2c9489563dadeb12314c /offapi/com/sun/star/task
parent54108fff1d78d954c07254347068bf2949bc9e0c (diff)
#83779# add XPasswordContainer interface
Diffstat (limited to 'offapi/com/sun/star/task')
-rw-r--r--offapi/com/sun/star/task/UrlRecord.idl85
-rw-r--r--offapi/com/sun/star/task/UserRecord.idl81
-rw-r--r--offapi/com/sun/star/task/XPasswordContainer.idl159
3 files changed, 325 insertions, 0 deletions
diff --git a/offapi/com/sun/star/task/UrlRecord.idl b/offapi/com/sun/star/task/UrlRecord.idl
new file mode 100644
index 000000000000..e0a3d0f5efc0
--- /dev/null
+++ b/offapi/com/sun/star/task/UrlRecord.idl
@@ -0,0 +1,85 @@
+/*************************************************************************
+ *
+ * $RCSfile: UrlRecord.idl,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: mav $ $Date: 2001-05-02 15:03:31 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef __com_sun_star_task_UrlRecord_idl__
+#define __com_sun_star_task_UrlRecord_idl__
+
+#ifndef __com_sun_star_task_UserRecord_idl__
+#include <com/sun/star/task/UserRecord.idl>
+#endif
+
+//=============================================================================
+
+module com { module sun { module star { module task {
+
+//=============================================================================
+/* List of users with there passwords for the url pattern
+*/
+struct UrlRecord
+{
+ string Url;
+ sequence<UserRecord> UserList;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/task/UserRecord.idl b/offapi/com/sun/star/task/UserRecord.idl
new file mode 100644
index 000000000000..5faa5d9c15dc
--- /dev/null
+++ b/offapi/com/sun/star/task/UserRecord.idl
@@ -0,0 +1,81 @@
+/*************************************************************************
+ *
+ * $RCSfile: UserRecord.idl,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: mav $ $Date: 2001-05-02 15:04:18 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef __com_sun_star_task_UserRecord_idl__
+#define __com_sun_star_task_UserRecord_idl__
+
+//=============================================================================
+
+module com { module sun { module star { module task {
+
+//=============================================================================
+/* Users passwords list
+*/
+struct UserRecord
+{
+ string UserName;
+ sequence<string> Passwords;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/task/XPasswordContainer.idl b/offapi/com/sun/star/task/XPasswordContainer.idl
new file mode 100644
index 000000000000..0c62fca2290f
--- /dev/null
+++ b/offapi/com/sun/star/task/XPasswordContainer.idl
@@ -0,0 +1,159 @@
+/*************************************************************************
+ *
+ * $RCSfile: XPasswordContainer.idl,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: mav $ $Date: 2001-05-02 15:02:38 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef __com_sun_star_task_XPasswordContainer_idl__
+#define __com_sun_star_task_XPasswordContainer_idl__
+
+#ifndef __com_sun_star_uno_XInterface_idl__
+#include <com/sun/star/uno/XInterface.idl>
+#endif
+
+#ifndef __com_sun_star_task_UrlRecord_idl__
+#include <com/sun/star/task/UrlRecord.idl>
+#endif
+
+
+//=============================================================================
+
+module com { module sun { module star { module task {
+
+//=============================================================================
+/** Allows to save passwords with URL-pattern, to use them later.
+*/
+[ uik(F13D7F6A-73A2-40E2-9A2F1DBC-24835A0E), ident( "XPasswordContainer", 1.0 ) ]
+interface XPasswordContainer : com::sun::star::uno::XInterface
+{
+ //-------------------------------------------------------------------------
+ /** Save passwords in to the container.
+
+ @param Url URL-pattern, that will be used later to retrieve
+ passwords.
+
+ @param UseName The username.
+
+ @param Passwords The password-list.
+
+
+ */
+ void add( [in] string Url, [in] string UserName, [in] sequence<string> Passwords );
+
+ //-------------------------------------------------------------------------
+ /** Save passwords in to the container, and store them in the file.
+
+ @param Url URL-pattern, that will be used later to retrieve
+ passwords.
+
+ @param UseName The username.
+
+ @param Passwords The password-list.
+
+
+ */
+ void addPersistent( [in] string Url, [in] string UserName, [in] sequence<string> Passwords );
+
+ //-------------------------------------------------------------------------
+ /** Find users with passwords for the url pattern.
+
+ @param Url URL-pattern to retrieve password for.
+
+ @returns Best matched url-pattern with user-records list.
+ */
+ UrlRecord find( [in] string Url );
+
+ //-------------------------------------------------------------------------
+ /** Find passwords for the url pattern and username.
+
+ @param Url URL-pattern to retrieve passwords for.
+
+ @param UserName Username to retrieve passwords for.
+
+ @returns Best matched url-pattern for the username.
+ */
+ UrlRecord findForName( [in] string Url, [in] string UserName );
+
+ //-------------------------------------------------------------------------
+ /** Remove passwords for the url pattern and username from the file.
+
+ @param Url URL-pattern to remove passwords for.
+
+ @param UserName Username to remove passwords for.
+
+ */
+ void removePersistent( [in] string Url, [in] string UserName );
+
+ //-------------------------------------------------------------------------
+ /** Clean the file.
+ */
+ void removeAllPersistent();
+
+ //-------------------------------------------------------------------------
+ /** Get all records from the file.
+
+ @returns List of url-records.
+ */
+ sequence<UrlRecord> getAllPersistent( [in] string Url, [in] string UserName );
+
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif