incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kejia Ye (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ODFTOOLKIT-346) Add new API to create protected section in TextDocument to protect contents
Date Wed, 14 Nov 2012 07:28:19 GMT

     [ https://issues.apache.org/jira/browse/ODFTOOLKIT-346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kejia Ye updated ODFTOOLKIT-346:
--------------------------------

    Attachment: protectedSection.patch

Call for review.

According to previous feature description, the modification are listed as follows

1.  new API in TextDocument, Header and Footer:
- public Section appendSection(String name) 

2. new APIs in Sections:

//allow to extend the default digest algorithm
- public void setProtectionKeyDigestProvider()
- public ProtectionKeyDigestProvider getProtectionKeyDigestProvier()
public ProtectionKeyDigestProvider getDefaultProtectionKeyDigestProvider()

//set protection
- public void setProtected(boolean isProtected) 
- public boolean isProtected()

//set password protection
- public void setProtectedWithPassword(String key)
- public String getProtectedPassword()
- public String getProtectionKeyDigestAlgorithm()

 3. Implements TableContainer and ListContainer in Section.

                
> Add new API to create protected section in TextDocument to protect contents 
> ----------------------------------------------------------------------------
>
>                 Key: ODFTOOLKIT-346
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-346
>             Project: ODF Toolkit
>          Issue Type: New Feature
>          Components: simple api
>            Reporter: Kejia Ye
>         Attachments: protectedSection.patch
>
>
> Propose to add a new API to create protected section, which can be used to prevent contents
being modified in editors.
> This feature may refers to three parts:
> 1. new API to create section in TextDocument.
> 2. new API to change the protection status of a section, and also allow user to specify
a password.
>    Regarding to the protection key digest algorithm, we can just provide the default
one "SHA-1", which is also accepted by OpenOffice as its authentication procedure. An ProtectionKeyDigestProvider
interface should be kept to let users define and extend other alternative algorithms.
> 3. support insert more contents into section in addition to paragraph.
>    Some of the cotents, like image and textbox, is already supported by bonding to a
paragraph. So we may need to implement other kind of objects, like table and list which are
common used as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message