Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO]Advanced authentication manager
[CDO]Advanced authentication manager [message #426088] Tue, 16 December 2008 09:07 Go to next message
Xingxiao Lu is currently offline Xingxiao LuFriend
Messages: 91
Registered: July 2009
Member
Hi,
Is there any plan for "advanced authentication manager"? For example,
limit accessing a CDOResource by authentication.
Re: [CDO]Advanced authentication manager [message #426092 is a reply to message #426088] Tue, 16 December 2008 09:52 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080704000600070603070800
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Xxlu,

No, there are currently no concrete plans for repository-based
authorization.
But I find the topic very interesting and if you are willing to work on
this I would appreciate to deliver ideas and support.
The basic pieces are already in place in
org.eclipse.emf.cdo.server.IRepository:

| /**
* Provides a way to handle revisions that are to be sent to the client.
*
* @author Eike Stepper
* @since 2.0
*/
*public interface *ReadAccessHandler *extends *Handler
{
/**
* Provides a way to handle revisions that are to be sent to the client.
*
* @param session
* The session that is going to send the revisions.
* @param revisions
* The revisions that are requested by the client. If the client must not see any of these revisions an
* unchecked exception must be thrown.
* @param additionalRevisions
* The additional revisions that are to be sent to the client because internal optimizers believe that they
* will be need soon. If the client must not see any of these revisions they should be removed from the
* list.
* @throws RuntimeException
* to indicate that none of the revisions must be sent to the client. This exception will be visible at
* the client side!
*/
*public **void *handleRevisionsBeforeSending(ISession session, CDORevision[] revisions,
List<CDORevision> additionalRevisions) *throws *RuntimeException;
}

/**
* @author Eike Stepper
* @since 2.0
*/
*public interface *WriteAccessHandler *extends *Handler
{
/**
* Provides a way to handle transactions that are to be committed to the backend store.
*
* @param transaction
* The transaction that is going to be committed.
* @param commitContext
* The context of the commit operation that is to be executed against the backend store. The context can be
* used to introspect all aspects of the current commit operation.
* @param monitor
* A monitor that should be used by the implementor to avoid timeouts.
* @throws RuntimeException
* to indicate that the commit operation must not be executed against the backend store. This exception
* will be visible at the client side!
*/
*public **void *handleTransactionBeforeCommitting(ITransaction transaction, IStoreAccessor.CommitContext commitContext,
OMMonitor monitor) *throws *RuntimeException;
}|


Please feel free to file an enhancement request and indicate if you're
willing to participate/contribute.

Cheers
/Eike

----
http://thegordian.blogspot.com



xxlu schrieb:
> Hi,
> Is there any plan for "advanced authentication manager"? For example,
> limit accessing a CDOResource by authentication.
>
>
>

--------------080704000600070603070800
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Xxlu,<br>
<br>
No, there are currently no concrete plans for repository-based
authorization.<br>
But I find the topic very interesting and if you are willing to work on
this I would appreciate to deliver ideas and support.<br>
The basic pieces are already in place in
org.eclipse.emf.cdo.server.IRepository: <br>
<br>
<title></title>
<style type="text/css">
<!--code { font-family: Courier New, Courier; font-size: 10pt; margin: 0px; }-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ======================================================== -->
<!-- = Java Sourcecode to HTML automatically converted code = --><!-- = Java2Html Converter 5.0 [2006-02-26] by Markus Gebhard markus@jave.de = -->
<!-- = Further information: http://www.java2html.de = -->
<div class="java" align="left">
<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<!-- start source code --> <td align="left" nowrap="nowrap"
valign="top"> <code><font color="#ffffff">


Re: [CDO]Advanced authentication manager [message #426111 is a reply to message #426092] Tue, 16 December 2008 16:01 Go to previous messageGo to next message
Xingxiao Lu is currently offline Xingxiao LuFriend
Messages: 91
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_00AB_01C95FDA.AEE87930
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

Eike,
I'm sorry for my late reply.=20
I'm very pleased to be a member of the CDO and I am honored to be =
able to join it. But it is unfortunate that my English is very poor. =
Maybe we will have some communication problems. :P
"Eike Stepper" <stepper@esc-net.de>=20
Xxlu,

No, there are currently no concrete plans for repository-based =
authorization.
But I find the topic very interesting and if you are willing to work =
on this I would appreciate to deliver ideas and support.
The basic pieces are already in place in =
org.eclipse.emf.cdo.server.IRepository:=20


/**
* Provides a way to handle revisions that are to be sent to =
the client.
*=20
* @author Eike Stepper
* @since 2.0
*/
public interface ReadAccessHandler extends Handler
{
/**
* Provides a way to handle revisions that are to be sent to =
the client.
*=20
* @param session
* The session that is going to send the revisions.
* @param revisions
* The revisions that are requested by the client. =
If the client must not see any of these revisions an
* unchecked exception must be thrown.
* @param additionalRevisions
* The additional revisions that are to be sent to =
the client because internal optimizers believe that they
* will be need soon. If the client must not see =
any of these revisions they should be removed from the
* list.
* @throws RuntimeException
* to indicate that none of the revisions must be =
sent to the client. This exception will be visible at
* the client side!
*/
public void handleRevisionsBeforeSending(ISession session, =
CDORevision[] revisions,
List<CDORevision> additionalRevisions) throws =
RuntimeException;
}

/**
* @author Eike Stepper
* @since 2.0
*/
public interface WriteAccessHandler extends Handler
{
/**
* Provides a way to handle transactions that are to be =
committed to the backend store.
*=20
* @param transaction
* The transaction that is going to be committed.
* @param commitContext
* The context of the commit operation that is to =
be executed against the backend store. The context can be
* used to introspect all aspects of the current =
commit operation.
* @param monitor
* A monitor that should be used by the implementor =
to avoid timeouts.
* @throws RuntimeException
* to indicate that the commit operation must not =
be executed against the backend store. This exception
* will be visible at the client side!
*/
public void handleTransactionBeforeCommitting(ITransaction =
transaction, IStoreAccessor.CommitContext commitContext,
OMMonitor monitor) throws RuntimeException;
} =20


Please feel free to file an enhancement request and indicate if you're =
willing to participate/contribute.

Cheers
/Eike

----
http://thegordian.blogspot.com



xxlu schrieb:=20
Hi,
Is there any plan for "advanced authentication manager"? For =
example,=20
limit accessing a CDOResource by authentication.=20



------=_NextPart_000_00AB_01C95FDA.AEE87930
Content-Type: text/html;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-15>
<META content=3D"MSHTML 6.00.6000.16762" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV>Eike,</DIV>
<DIV><FONT face=3D&#23435;&#20307; size=3D2>&nbsp;&nbsp;&nbsp;<FONT =
face=3D"Times New Roman"=20
size=3D3>I'm sorry for my late reply. </FONT></FONT></DIV>
<DIV><FONT face=3D&#23435;&#20307; size=3D2><FONT face=3D"Times New =
Roman" size=3D3>&nbsp;&nbsp;&nbsp;=20
&nbsp;I'm very pleased to be a member of the CDO and I am honored to be =
able to=20
join it. But it is unfortunate that my English is very poor.&nbsp; Maybe =
we will=20
have some communication problems. :P</DIV></FONT></FONT>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Eike Stepper" &lt;<A=20
href=3D"mailto:stepper@esc-net.de">stepper@esc-net.de</A>&gt;=20
</DIV>Xxlu,<BR><BR>No, there are currently no concrete plans for=20
repository-based authorization.<BR>But I find the topic very =
interesting and=20
if you are willing to work on this I would appreciate to deliver ideas =
and=20
support.<BR>The basic pieces are already in place in=20
org.eclipse.emf.cdo.server.IRepository: <BR><BR>
<STYLE type=3Dtext/css>CODE {
FONT-SIZE: 10pt; MARGIN: 0px; FONT-FAMILY: Courier New, Courier
}
</STYLE>
<!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D --><!-- =3D Java Sourcecode to HTML automatically =
converted code =3D --><!-- =3D Java2Html Converter 5.0 [2006-02-26] by =
Markus Gebhard markus@jave.de =3D --><!-- =3D Further =
information: http://www.java2html.de =3D -->
<DIV class=3Djava align=3Dleft>
<TABLE cellSpacing=3D0 cellPadding=3D3 bgColor=3D#ffffff border=3D0>
<TBODY>
<TR><!-- start source code -->
<TD vAlign=3Dtop noWrap align=3Dleft><CODE><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT =
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;Provides&nbsp;a&nbsp;way&nbsp;to& nbsp;handle&nbsp;=
revisions&nbsp;that&nbsp;are&nbsp;to&nbsp;be &nbsp;sent&nbsp;to&nbsp;the&n=
bsp;client.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@author&nbsp;</FONT><FONT=20
color=3D#3f5fbf>Eike&nbsp;Stepper</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@since&nbsp;</FONT><FONT=20
color=3D#3f5fbf>2.0</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT =
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#7f0055><B>public&nbsp;interface&nbsp;</B ></FONT><FONT=20
color=3D#000000>ReadAccessHandler&nbsp;</FONT><FONT=20
color=3D#7f0055><B>extends&nbsp;</B></FONT><FONT=20
color=3D#000000>Handler</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT =
color=3D#000000>{</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;Provides&nbsp;a&nbsp;way&nbsp;to& nbsp;handle&nbsp;=
revisions&nbsp;that&nbsp;are&nbsp;to&nbsp;be &nbsp;sent&nbsp;to&nbsp;the&n=
bsp;client.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>session</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;session&nbsp;that&nbsp;is&nbsp; going&nbsp;to&nbsp;send&nbsp;=
the&nbsp;revisions.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>revisions</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;revisions&nbsp;that&nbsp;are&nb sp;requested&nbsp;by&nbsp;the=
&nbsp;client.&nbsp;If&nbsp;the&nbsp;client&a mp;nbsp;must&nbsp;not&nbsp;see&nb=
sp;any&nbsp;of&nbsp;these&nbsp;revisions&nbs p;an </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;unchecked&nbsp;exception&nbsp;must&nbsp;be&a mp;nbsp;thrown. </FONT><BR><FO=
NT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>additionalRevisions</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;additional&nbsp;revisions&nbsp;that &nbsp;are&nbsp;to&nbsp;be=
&nbsp;sent&nbsp;to&nbsp;the&nbsp;client& nbsp;because&nbsp;internal&nbsp;o=
ptimizers&nbsp;believe&nbsp;that&nbsp;they</FONT ><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;will&nbsp;be&nbsp;need&nbsp;soon.&nbsp;I f&nbsp;the&nbsp;client&nbsp;m=
ust&nbsp;not&nbsp;see&nbsp;any&nbsp;of&n bsp;these&nbsp;revisions&nbsp;the=
y&nbsp;should&nbsp;be&nbsp;removed&nbsp;from &nbsp;the </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;list.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@throws&nbsp;</FONT><FONT=20
color=3D#3f5fbf>RuntimeException</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;to&nbsp;indicate&nbsp;that&nbsp;no ne&nbsp;of&nbsp;the&nbsp;revi=
sions&nbsp;must&nbsp;be&nbsp;sent&nbsp;to&am p;nbsp;the&nbsp;client.&nbsp;This=
&nbsp;exception&nbsp;will&nbsp;be&nbsp;visib le&nbsp;at </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;the&nbsp;client&nbsp;side!</FONT><BR ><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#7f0055><B>public&nbsp;</B></FONT><FONT=20
color=3D#7f0055><B>void&nbsp;</B></FONT><FONT=20
color=3D#000000>handleRevisionsBeforeSending</FONT><FONT=20
color=3D#000000>(</FONT><FONT=20
=
color=3D#000000>ISession&nbsp;session,&nbsp;CDORevision </FONT><FONT=20
color=3D#000000>[]&nbsp;</FONT><FONT=20
color=3D#000000>revisions,</FONT><BR><FONT=20
=
color=3D#ffffff> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </FONT><F=
ONT=20
=
color=3D#000000> List&lt;CDORevision&gt;&nbsp;additionalRevisions </FONT><F=
ONT=20
color=3D#000000>)&nbsp;</FONT><FONT=20
color=3D#7f0055><B>throws&nbsp;</B></FONT><FONT=20
color=3D#000000>RuntimeException;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT =
color=3D#000000>}</FONT><BR><FONT=20
color=3D#ffffff></FONT><BR><FONT =
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@author&nbsp;</FONT><FONT=20
color=3D#3f5fbf>Eike&nbsp;Stepper</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@since&nbsp;</FONT><FONT=20
color=3D#3f5fbf>2.0</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT =
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#7f0055><B>public&nbsp;interface&nbsp;</B ></FONT><FONT=20
color=3D#000000>WriteAccessHandler&nbsp;</FONT><FONT=20
color=3D#7f0055><B>extends&nbsp;</B></FONT><FONT=20
color=3D#000000>Handler</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT =
color=3D#000000>{</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;Provides&nbsp;a&nbsp;way&nbsp;to& nbsp;handle&nbsp;=
transactions&nbsp;that&nbsp;are&nbsp;to&nbsp ;be&nbsp;committed&nbsp;to&nb=
sp;the&nbsp;backend&nbsp;store.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>transaction</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;transaction&nbsp;that&nbsp;is&n bsp;going&nbsp;to&nbsp;be&nbs=
p;committed.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>commitContext</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;context&nbsp;of&nbsp;the&nbsp;c ommit&nbsp;operation&nbsp;tha=
t&nbsp;is&nbsp;to&nbsp;be&nbsp;executed& nbsp;against&nbsp;the&nbsp;backen=
d&nbsp;store.&nbsp;The&nbsp;context&nbsp;can &nbsp;be </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;used&nbsp;to&nbsp;introspect&nbsp;all&nb sp;aspects&nbsp;of&nbsp;the&n=
bsp;current&nbsp;commit&nbsp;operation.</FONT><BR> <FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT =
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>monitor</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;A&nbsp;monitor&nbsp;that&nbsp;should&nbs p;be&nbsp;used&nbsp;by&nbsp;t=
he&nbsp;implementor&nbsp;to&nbsp;avoid&nbsp; timeouts. </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@throws&nbsp;</FONT><FONT=20
color=3D#3f5fbf>RuntimeException</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;to&nbsp;indicate&nbsp;that&nbsp;th e&nbsp;commit&nbsp;operation&=
nbsp;must&nbsp;not&nbsp;be&nbsp;executed&nbs p;against&nbsp;the&nbsp;backe=
nd&nbsp;store.&nbsp;This&nbsp;exception</FONT><BR ><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;will&nbsp;be&nbsp;visible&nbsp;at& amp;nbsp;the&nbsp;client&nbsp;sid=
e!</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#7f0055><B>public&nbsp;</B></FONT><FONT=20
color=3D#7f0055><B>void&nbsp;</B></FONT><FONT=20
color=3D#000000>handleTransactionBeforeCommitting</FONT><FONT=20
color=3D#000000>(</FONT><FONT=20
=
color=3D#000000> ITransaction&nbsp;transaction,&nbsp;IStoreAccessor.C ommit=
Context&nbsp;commitContext,</FONT><BR><FONT=20
=
color=3D#ffffff> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </FONT><F=
ONT=20
color=3D#000000>OMMonitor&nbsp;monitor</FONT><FONT=20
color=3D#000000>)&nbsp;</FONT><FONT=20
color=3D#7f0055><B>throws&nbsp;</B></FONT><FONT=20
color=3D#000000>RuntimeException;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT =
color=3D#000000>}</FONT></CODE> </TD><!-- end source code =
--></TR></TBODY></TABLE></DIV><!-- =3D END of automatically =
generated HTML code =3D --><!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D --><BR>Please=20
feel free to file an enhancement request and indicate if you're =
willing to=20
participate/contribute.<BR><BR>Cheers<BR>/Eike<BR><BR >----<BR><A=20
class=3Dmoz-txt-link-freetext=20
=
href=3D"http://thegordian.blogspot.com">http://thegordian.blogspot.com</A=
><BR><BR><BR><BR>xxlu=20
schrieb:=20
<BLOCKQUOTE cite=3Dmid:gi7r4l$kth$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi,
Is there any plan for "advanced authentication manager"? For =
example,=20
limit accessing a CDOResource by authentication.=20


</PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_00AB_01C95FDA.AEE87930--
Re: [CDO]Advanced authentication manager [message #426112 is a reply to message #426092] Tue, 16 December 2008 16:20 Go to previous messageGo to next message
Xingxiao Lu is currently offline Xingxiao LuFriend
Messages: 91
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_00C5_01C95FDD.42BB44B0
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

Next time I will have the specific function of the realization =
considered. Because there are a lot of work to do, may not be able to =
quickly solve the problem.=20
There is already late at night. Good night! :)
------=_NextPart_000_00C5_01C95FDD.42BB44B0
Content-Type: text/html;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-15>
<META content=3D"MSHTML 6.00.6000.16762" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3D"Times New Roman" size=3D3>
<DIV id=3Dresult_box dir=3Dltr style=3D"TEXT-ALIGN: left">Next time I =
will have the=20
specific function of the realization considered. Because there are a lot =
of work=20
to do, may not be able to quickly solve the problem. <BR>There is =
already late=20
at night. Good night! :)</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_00C5_01C95FDD.42BB44B0--
Re: [CDO]Advanced authentication manager [message #426136 is a reply to message #426111] Wed, 17 December 2008 08:18 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040501010208000005030406
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Xxlu,

Your English is very good ;-)
Please start with a new bugzilla where we can discuss the requirements
and possible approaches.

Cheers
/Eike

----
http://thegordian.blogspot.com



xxlu schrieb:
> Eike,
> I'm sorry for my late reply.
> I'm very pleased to be a member of the CDO and I am honored to be
> able to join it. But it is unfortunate that my English is very poor.
> Maybe we will have some communication problems. :P
>
> "Eike Stepper" <stepper@esc-net.de <mailto:stepper@esc-net.de>>
> Xxlu,
>
> No, there are currently no concrete plans for repository-based
> authorization.
> But I find the topic very interesting and if you are willing to
> work on this I would appreciate to deliver ideas and support.
> The basic pieces are already in place in
> org.eclipse.emf.cdo.server.IRepository:
>
> | /**
> * Provides a way to handle revisions that are to be sent to the client.
> *
> * @author Eike Stepper
> * @since 2.0
> */
> *public interface *ReadAccessHandler *extends *Handler
> {
> /**
> * Provides a way to handle revisions that are to be sent to the client.
> *
> * @param session
> * The session that is going to send the revisions.
> * @param revisions
> * The revisions that are requested by the client. If the client must not see any of these revisions an
> * unchecked exception must be thrown.
> * @param additionalRevisions
> * The additional revisions that are to be sent to the client because internal optimizers believe that they
> * will be need soon. If the client must not see any of these revisions they should be removed from the
> * list.
> * @throws RuntimeException
> * to indicate that none of the revisions must be sent to the client. This exception will be visible at
> * the client side!
> */
> *public **void *handleRevisionsBeforeSending(ISession session, CDORevision[] revisions,
> List<CDORevision> additionalRevisions) *throws *RuntimeException;
> }
>
> /**
> * @author Eike Stepper
> * @since 2.0
> */
> *public interface *WriteAccessHandler *extends *Handler
> {
> /**
> * Provides a way to handle transactions that are to be committed to the backend store.
> *
> * @param transaction
> * The transaction that is going to be committed.
> * @param commitContext
> * The context of the commit operation that is to be executed against the backend store. The context can be
> * used to introspect all aspects of the current commit operation.
> * @param monitor
> * A monitor that should be used by the implementor to avoid timeouts.
> * @throws RuntimeException
> * to indicate that the commit operation must not be executed against the backend store. This exception
> * will be visible at the client side!
> */
> *public **void *handleTransactionBeforeCommitting(ITransaction transaction, IStoreAccessor.CommitContext commitContext,
> OMMonitor monitor) *throws *RuntimeException;
> }|
>
>
> Please feel free to file an enhancement request and indicate if
> you're willing to participate/contribute.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> xxlu schrieb:
>> Hi,
>> Is there any plan for "advanced authentication manager"? For example,
>> limit accessing a CDOResource by authentication.
>>
>>
>>
>

--------------040501010208000005030406
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Xxlu,<br>
<br>
Your English is very good ;-)<br>
Please start with a new bugzilla where we can discuss the requirements
and possible approaches.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<br>
<br>
<br>
xxlu schrieb:
<blockquote cite="mid:gi8jdj$lcq$1@build.eclipse.org" type="cite">
<title></title>
<meta http-equiv="Content-Type"
content="text/html;charset=ISO-8859-15">
<meta content="MSHTML 6.00.6000.16762" name="GENERATOR">
<div>Eike,</div>
<div><font face="&#23435;&#20307;" size="2">


Re: [CDO]Advanced authentication manager [message #426141 is a reply to message #426136] Wed, 17 December 2008 08:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Please post the bug-id here so that I can subscribe. Anything around
authentification and is interesting for me.

Tom

Eike Stepper schrieb:
> Xxlu,
>
> Your English is very good ;-)
> Please start with a new bugzilla where we can discuss the requirements
> and possible approaches.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> xxlu schrieb:
>> Eike,
>> I'm sorry for my late reply.
>> I'm very pleased to be a member of the CDO and I am honored to be
>> able to join it. But it is unfortunate that my English is very poor.
>> Maybe we will have some communication problems. :P
>>
>> "Eike Stepper" <stepper@esc-net.de <mailto:stepper@esc-net.de>>
>> Xxlu,
>>
>> No, there are currently no concrete plans for repository-based
>> authorization.
>> But I find the topic very interesting and if you are willing to
>> work on this I would appreciate to deliver ideas and support.
>> The basic pieces are already in place in
>> org.eclipse.emf.cdo.server.IRepository:
>>
>> | /**
>> * Provides a way to handle revisions that are to be sent to the client.
>> *
>> * @author Eike Stepper
>> * @since 2.0
>> */
>> *public interface *ReadAccessHandler *extends *Handler
>> {
>> /**
>> * Provides a way to handle revisions that are to be sent to the client.
>> *
>> * @param session
>> * The session that is going to send the revisions.
>> * @param revisions
>> * The revisions that are requested by the client. If the client must not see any of these revisions an
>> * unchecked exception must be thrown.
>> * @param additionalRevisions
>> * The additional revisions that are to be sent to the client because internal optimizers believe that they
>> * will be need soon. If the client must not see any of these revisions they should be removed from the
>> * list.
>> * @throws RuntimeException
>> * to indicate that none of the revisions must be sent to the client. This exception will be visible at
>> * the client side!
>> */
>> *public **void *handleRevisionsBeforeSending(ISession session, CDORevision[] revisions,
>> List<CDORevision> additionalRevisions) *throws *RuntimeException;
>> }
>>
>> /**
>> * @author Eike Stepper
>> * @since 2.0
>> */
>> *public interface *WriteAccessHandler *extends *Handler
>> {
>> /**
>> * Provides a way to handle transactions that are to be committed to the backend store.
>> *
>> * @param transaction
>> * The transaction that is going to be committed.
>> * @param commitContext
>> * The context of the commit operation that is to be executed against the backend store. The context can be
>> * used to introspect all aspects of the current commit operation.
>> * @param monitor
>> * A monitor that should be used by the implementor to avoid timeouts.
>> * @throws RuntimeException
>> * to indicate that the commit operation must not be executed against the backend store. This exception
>> * will be visible at the client side!
>> */
>> *public **void *handleTransactionBeforeCommitting(ITransaction transaction, IStoreAccessor.CommitContext commitContext,
>> OMMonitor monitor) *throws *RuntimeException;
>> }|
>>
>>
>> Please feel free to file an enhancement request and indicate if
>> you're willing to participate/contribute.
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>>
>>
>>
>> xxlu schrieb:
>>> Hi,
>>> Is there any plan for "advanced authentication manager"? For example,
>>> limit accessing a CDOResource by authentication.
>>>
>>>
>>>
>>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [CDO]Advanced authentication manager [message #426143 is a reply to message #426136] Wed, 17 December 2008 09:10 Go to previous message
Xingxiao Lu is currently offline Xingxiao LuFriend
Messages: 91
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_0099_01C9606A.546DC650
Content-Type: text/plain;
charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable

Eike,
I've opened this bugzilla:

Bug 259069:Support repository-based authorization
https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D259069
"Eike Stepper" <stepper@esc-net.de>=20
Xxlu,

Your English is very good ;-)
Please start with a new bugzilla where we can discuss the requirements =
and possible approaches.

Cheers
/Eike

----
http://thegordian.blogspot.com



xxlu schrieb:=20
Eike,
I'm sorry for my late reply.=20
I'm very pleased to be a member of the CDO and I am honored to =
be able to join it. But it is unfortunate that my English is very poor. =
Maybe we will have some communication problems. :P
"Eike Stepper" <stepper@esc-net.de>=20
Xxlu,

No, there are currently no concrete plans for repository-based =
authorization.
But I find the topic very interesting and if you are willing to =
work on this I would appreciate to deliver ideas and support.
The basic pieces are already in place in =
org.eclipse.emf.cdo.server.IRepository:=20


/**
* Provides a way to handle revisions that are to be sent =
to the client.
*=20
* @author Eike Stepper
* @since 2.0
*/
public interface ReadAccessHandler extends Handler
{
/**
* Provides a way to handle revisions that are to be =
sent to the client.
*=20
* @param session
* The session that is going to send the =
revisions.
* @param revisions
* The revisions that are requested by the =
client. If the client must not see any of these revisions an
* unchecked exception must be thrown.
* @param additionalRevisions
* The additional revisions that are to be sent =
to the client because internal optimizers believe that they
* will be need soon. If the client must not =
see any of these revisions they should be removed from the
* list.
* @throws RuntimeException
* to indicate that none of the revisions must =
be sent to the client. This exception will be visible at
* the client side!
*/
public void handleRevisionsBeforeSending(ISession =
session, CDORevision[] revisions,
List<CDORevision> additionalRevisions) throws =
RuntimeException;
}

/**
* @author Eike Stepper
* @since 2.0
*/
public interface WriteAccessHandler extends Handler
{
/**
* Provides a way to handle transactions that are to be =
committed to the backend store.
*=20
* @param transaction
* The transaction that is going to be =
committed.
* @param commitContext
* The context of the commit operation that is =
to be executed against the backend store. The context can be
* used to introspect all aspects of the =
current commit operation.
* @param monitor
* A monitor that should be used by the =
implementor to avoid timeouts.
* @throws RuntimeException
* to indicate that the commit operation must =
not be executed against the backend store. This exception
* will be visible at the client side!
*/
public void =
handleTransactionBeforeCommitting(ITransaction transaction, =
IStoreAccessor.CommitContext commitContext,
OMMonitor monitor) throws RuntimeException;
} =20


Please feel free to file an enhancement request and indicate if =
you're willing to participate/contribute.

Cheers
/Eike

----
http://thegordian.blogspot.com



xxlu schrieb:=20
Hi,
Is there any plan for "advanced authentication manager"? For =
example,=20
limit accessing a CDOResource by authentication.=20



------=_NextPart_000_0099_01C9606A.546DC650
Content-Type: text/html;
charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-15>
<META content=3D"MSHTML 6.00.6000.16762" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV>Eike,</DIV>
<DIV>I've opened this bugzilla:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Bug 259069:Support repository-based authorization<BR><A=20
href=3D"https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D259069">https://b=
ugs.eclipse.org/bugs/show_bug.cgi?id=3D259069</A></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Eike Stepper" &lt;<A=20
href=3D"mailto:stepper@esc-net.de">stepper@esc-net.de</A>&gt; </DIV>
<DIV>Xxlu,<BR><BR>Your English is very good ;-)<BR>Please start with a =
new=20
bugzilla where we can discuss the requirements and possible=20
approaches.<BR><BR>Cheers<BR>/Eike<BR><BR>----<BR><A=20
class=3Dmoz-txt-link-freetext=20
=
href=3D"http://thegordian.blogspot.com">http://thegordian.blogspot.com</A=
><BR><BR><BR><BR>xxlu=20
schrieb: </DIV>
<BLOCKQUOTE cite=3Dmid:gi8jdj$lcq$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.6000.16762" name=3DGENERATOR>
<DIV>Eike,</DIV>
<DIV><FONT face=3D&#23435;&#20307; size=3D2>&nbsp;&nbsp;&nbsp;<FONT =
face=3D"Times New Roman"=20
size=3D3>I'm sorry for my late reply. </FONT></FONT></DIV>
<DIV><FONT face=3D&#23435;&#20307; size=3D2><FONT face=3D"Times New =
Roman"=20
size=3D3>&nbsp;&nbsp;&nbsp; &nbsp;I'm very pleased to be a member of =
the CDO=20
and I am honored to be able to join it. But it is unfortunate that =
my=20
English is very poor.&nbsp; Maybe we will have some communication =
problems.=20
:P</FONT></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Eike Stepper" &lt;<A href=3D"mailto:stepper@esc-net.de"=20
moz-do-not-send=3D"true">stepper@esc-net.de</A>&gt; =
</DIV>Xxlu,<BR><BR>No,=20
there are currently no concrete plans for repository-based=20
authorization.<BR>But I find the topic very interesting and if you =
are=20
willing to work on this I would appreciate to deliver ideas and=20
support.<BR>The basic pieces are already in place in=20
org.eclipse.emf.cdo.server.IRepository: <BR><BR>
<STYLE type=3Dtext/css>CODE {
FONT-SIZE: 10pt; MARGIN: 0px; FONT-FAMILY: Courier New, Courier
}
</STYLE>
<!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D --><!-- =3D Java Sourcecode to HTML automatically =
converted code =3D --><!-- =3D Java2Html Converter 5.0 [2006-02-26] by =
Markus Gebhard markus@jave.de =3D --><!-- =3D Further =
information: http://www.java2html.de =3D -->
<DIV class=3Djava align=3Dleft>
<TABLE cellSpacing=3D0 cellPadding=3D3 bgColor=3D#ffffff =
border=3D0>
<TBODY>
<TR><!-- start source code -->
<TD vAlign=3Dtop noWrap align=3Dleft><CODE><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;Provides&nbsp;a&nbsp;way&nbsp;to& nbsp;handle&nbsp;=
revisions&nbsp;that&nbsp;are&nbsp;to&nbsp;be &nbsp;sent&nbsp;to&nbsp;the&n=
bsp;client.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@author&nbsp;</FONT><FONT=20
color=3D#3f5fbf>Eike&nbsp;Stepper</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@since&nbsp;</FONT><FONT=20
color=3D#3f5fbf>2.0</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
=
color=3D#7f0055><B>public&nbsp;interface&nbsp;</B ></FONT><FONT=20
color=3D#000000>ReadAccessHandler&nbsp;</FONT><FONT=20
color=3D#7f0055><B>extends&nbsp;</B></FONT><FONT=20
color=3D#000000>Handler</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#000000>{</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;Provides&nbsp;a&nbsp;way&nbsp;to& nbsp;handle&nbsp;=
revisions&nbsp;that&nbsp;are&nbsp;to&nbsp;be &nbsp;sent&nbsp;to&nbsp;the&n=
bsp;client.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>session</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;session&nbsp;that&nbsp;is&nbsp; going&nbsp;to&nbsp;send&nbsp;=
the&nbsp;revisions.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>revisions</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;revisions&nbsp;that&nbsp;are&nb sp;requested&nbsp;by&nbsp;the=
&nbsp;client.&nbsp;If&nbsp;the&nbsp;client&a mp;nbsp;must&nbsp;not&nbsp;see&nb=
sp;any&nbsp;of&nbsp;these&nbsp;revisions&nbs p;an </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;unchecked&nbsp;exception&nbsp;must&nbsp;be&a mp;nbsp;thrown. </FONT><BR><FO=
NT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>additionalRevisions</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;additional&nbsp;revisions&nbsp;that &nbsp;are&nbsp;to&nbsp;be=
&nbsp;sent&nbsp;to&nbsp;the&nbsp;client& nbsp;because&nbsp;internal&nbsp;o=
ptimizers&nbsp;believe&nbsp;that&nbsp;they</FONT ><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;will&nbsp;be&nbsp;need&nbsp;soon.&nbsp;I f&nbsp;the&nbsp;client&nbsp;m=
ust&nbsp;not&nbsp;see&nbsp;any&nbsp;of&n bsp;these&nbsp;revisions&nbsp;the=
y&nbsp;should&nbsp;be&nbsp;removed&nbsp;from &nbsp;the </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;list.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@throws&nbsp;</FONT><FONT=20
color=3D#3f5fbf>RuntimeException</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;to&nbsp;indicate&nbsp;that&nbsp;no ne&nbsp;of&nbsp;the&nbsp;revi=
sions&nbsp;must&nbsp;be&nbsp;sent&nbsp;to&am p;nbsp;the&nbsp;client.&nbsp;This=
&nbsp;exception&nbsp;will&nbsp;be&nbsp;visib le&nbsp;at </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;the&nbsp;client&nbsp;side!</FONT><BR ><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#7f0055><B>public&nbsp;</B></FONT><FONT=20
color=3D#7f0055><B>void&nbsp;</B></FONT><FONT=20
color=3D#000000>handleRevisionsBeforeSending</FONT><FONT=20
color=3D#000000>(</FONT><FONT=20
=
color=3D#000000>ISession&nbsp;session,&nbsp;CDORevision </FONT><FONT=20
color=3D#000000>[]&nbsp;</FONT><FONT=20
color=3D#000000>revisions,</FONT><BR><FONT=20
=
color=3D#ffffff> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </FONT><F=
ONT=20
=
color=3D#000000> List&lt;CDORevision&gt;&nbsp;additionalRevisions </FONT><F=
ONT=20
color=3D#000000>)&nbsp;</FONT><FONT=20
color=3D#7f0055><B>throws&nbsp;</B></FONT><FONT=20
color=3D#000000>RuntimeException;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#000000>}</FONT><BR><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@author&nbsp;</FONT><FONT=20
color=3D#3f5fbf>Eike&nbsp;Stepper</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@since&nbsp;</FONT><FONT=20
color=3D#3f5fbf>2.0</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;</FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
=
color=3D#7f0055><B>public&nbsp;interface&nbsp;</B ></FONT><FONT=20
color=3D#000000>WriteAccessHandler&nbsp;</FONT><FONT=20
color=3D#7f0055><B>extends&nbsp;</B></FONT><FONT=20
color=3D#000000>Handler</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT=20
color=3D#000000>{</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#3f5fbf>/**</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;Provides&nbsp;a&nbsp;way&nbsp;to& nbsp;handle&nbsp;=
transactions&nbsp;that&nbsp;are&nbsp;to&nbsp ;be&nbsp;committed&nbsp;to&nb=
sp;the&nbsp;backend&nbsp;store.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>transaction</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;transaction&nbsp;that&nbsp;is&n bsp;going&nbsp;to&nbsp;be&nbs=
p;committed.</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>commitContext</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;The&nbsp;context&nbsp;of&nbsp;the&nbsp;c ommit&nbsp;operation&nbsp;tha=
t&nbsp;is&nbsp;to&nbsp;be&nbsp;executed& nbsp;against&nbsp;the&nbsp;backen=
d&nbsp;store.&nbsp;The&nbsp;context&nbsp;can &nbsp;be </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;used&nbsp;to&nbsp;introspect&nbsp;all&nb sp;aspects&nbsp;of&nbsp;the&n=
bsp;current&nbsp;commit&nbsp;operation.</FONT><BR> <FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@param&nbsp;</FONT><FONT=20
color=3D#3f5fbf>monitor</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;A&nbsp;monitor&nbsp;that&nbsp;should&nbs p;be&nbsp;used&nbsp;by&nbsp;t=
he&nbsp;implementor&nbsp;to&nbsp;avoid&nbsp; timeouts. </FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*&nbsp;</FONT><FONT=20
color=3D#7f9fbf>@throws&nbsp;</FONT><FONT=20
color=3D#3f5fbf>RuntimeException</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;to&nbsp;indicate&nbsp;that&nbsp;th e&nbsp;commit&nbsp;operation&=
nbsp;must&nbsp;not&nbsp;be&nbsp;executed&nbs p;against&nbsp;the&nbsp;backe=
nd&nbsp;store.&nbsp;This&nbsp;exception</FONT><BR ><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
=
color=3D#3f5fbf> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;will&nbsp;be&nbsp;visible&nbsp;at& amp;nbsp;the&nbsp;client&nbsp;sid=
e!</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT=20
color=3D#3f5fbf>*/</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</FONT ><FONT=20
color=3D#7f0055><B>public&nbsp;</B></FONT><FONT=20
color=3D#7f0055><B>void&nbsp;</B></FONT><FONT=20
=
color=3D#000000>handleTransactionBeforeCommitting</FONT><FONT=20
color=3D#000000>(</FONT><FONT=20
=
color=3D#000000> ITransaction&nbsp;transaction,&nbsp;IStoreAccessor.C ommit=
Context&nbsp;commitContext,</FONT><BR><FONT=20
=
color=3D#ffffff> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </FONT><F=
ONT=20
color=3D#000000>OMMonitor&nbsp;monitor</FONT><FONT=20
color=3D#000000>)&nbsp;</FONT><FONT=20
color=3D#7f0055><B>throws&nbsp;</B></FONT><FONT=20
color=3D#000000>RuntimeException;</FONT><BR><FONT=20
color=3D#ffffff>&nbsp;&nbsp;</FONT><FONT =
color=3D#000000>}</FONT></CODE>=20
</TD><!-- end source code --></TR></TBODY></TABLE></DIV><!-- =
=3D END of automatically generated HTML code =3D --><!-- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D --><BR>Please=20
feel free to file an enhancement request and indicate if you're =
willing to=20
participate/contribute.<BR><BR>Cheers<BR>/Eike<BR><BR >----<BR><A=20
class=3Dmoz-txt-link-freetext =
href=3D"http://thegordian.blogspot.com"=20
=
moz-do-not-send=3D"true">http://thegordian.blogspot.com</A><BR><BR><BR><B=
R>xxlu=20
schrieb:=20
<BLOCKQUOTE cite=3Dmid:gi7r4l$kth$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi,
Is there any plan for "advanced authentication manager"? For =
example,=20
limit accessing a CDOResource by authentication.=20


=
</PRE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE ></BODY></HTML>

------=_NextPart_000_0099_01C9606A.546DC650--
Previous Topic:[CDO] Metamodel change -> migration path?
Next Topic:[Teneo] Possible inconsistency using IdBags
Goto Forum:
  


Current Time: Thu Apr 25 12:45:16 GMT 2024

Powered by FUDForum. Page generated in 0.03774 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top