⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 binderportletservice.html

📁 门户开发
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<HR><A NAME="grantAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><!-- --></A><H3>grantAccess</H3><PRE>public void <B>grantAccess</B>(javax.portlet.PortletRequest&nbsp;request,                        java.lang.String&nbsp;binderId,                        <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.Level.html" title="class in com.ibm.content.binder.model">BinderAccessLevel.Level</A>&nbsp;accessLevel,                        java.lang.String[]&nbsp;wmmIds)                 throws <A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></PRE><DL><DD>Grant a level of access to a <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> to users whose WMM IDs are provided. <br><br>The possible access levels are listed in <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.html" title="interface in com.ibm.content.binder.model"><CODE>BinderAccessLevel</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the current portlet request.<DD><CODE>binderId</CODE> - the ID of the <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> access rights are to be changed.<DD><CODE>accessLevel</CODE> - the level of access to be granted: see <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.html" title="interface in com.ibm.content.binder.model"><CODE>BinderAccessLevel</CODE></A>.<DD><CODE>wmmIds</CODE> - the WMM IDs of the users to be granted access.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></CODE><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderNotFoundException.html" title="class in com.ibm.content.binder.exception">BinderNotFoundException</A></CODE> - if no <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> with ID binderId exists</DL></DD></DL><HR><A NAME="revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><!-- --></A><H3>revokeAccess</H3><PRE>public void <B>revokeAccess</B>(javax.portlet.PortletRequest&nbsp;request,                         java.lang.String&nbsp;binderId,                         <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.Level.html" title="class in com.ibm.content.binder.model">BinderAccessLevel.Level</A>&nbsp;accessLevel,                         java.lang.String[]&nbsp;wmmIds)                  throws <A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></PRE><DL><DD>Revoke a granted level of access to a <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> to users whose WMM IDs are provided. <br><br>The possible access levels are listed in <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.html" title="interface in com.ibm.content.binder.model"><CODE>BinderAccessLevel</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the current portlet request.<DD><CODE>binderId</CODE> - the ID of the <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> access rights are to be changed.<DD><CODE>accessLevel</CODE> - the level of access to be revoked: see <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.html" title="interface in com.ibm.content.binder.model"><CODE>BinderAccessLevel</CODE></A>.<DD><CODE>wmmIds</CODE> - the WMM IDs of the users to be removed access.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></CODE><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderNotFoundException.html" title="class in com.ibm.content.binder.exception">BinderNotFoundException</A></CODE> - if no <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> with ID binderId exists</DL></DD></DL><HR><A NAME="hasAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level)"><!-- --></A><H3>hasAccess</H3><PRE>public boolean <B>hasAccess</B>(javax.portlet.PortletRequest&nbsp;request,                         java.lang.String&nbsp;binderId,                         <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.Level.html" title="class in com.ibm.content.binder.model">BinderAccessLevel.Level</A>&nbsp;accessLevel)                  throws <A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></PRE><DL><DD>Tells if the current user has a given access on the <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> whose ID is provided. Access can be set explicitely on a Portal resource (such as a Binder), or inherited from a parent resource. Only access explicitely granted to a Binder (using <A HREF="../../../../../com/ibm/content/binder/service/BinderPortletService.html#grantAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><CODE>grantAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])</CODE></A>) can be revoked using <A HREF="../../../../../com/ibm/content/binder/service/BinderPortletService.html#revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><CODE>revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])</CODE></A>. If the access to a Binder is inherited from a parent resource, it cannot be revoked using <A HREF="../../../../../com/ibm/content/binder/service/BinderPortletService.html#revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><CODE>revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the current portlet request.<DD><CODE>binderId</CODE> - the ID of the <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> access rights are to be changed.<DD><CODE>accessLevel</CODE> - one of the <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.html" title="interface in com.ibm.content.binder.model"><CODE>BinderAccessLevel</CODE></A> constant.<DT><B>Returns:</B><DD><code>true</code> if the current user has the access, 					<code>false</code> otherwise.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></CODE><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderNotFoundException.html" title="class in com.ibm.content.binder.exception">BinderNotFoundException</A></CODE> - if no <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> with ID binderId exists</DL></DD></DL><HR><A NAME="hasAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String)"><!-- --></A><H3>hasAccess</H3><PRE>public boolean <B>hasAccess</B>(javax.portlet.PortletRequest&nbsp;request,                         java.lang.String&nbsp;binderId,                         <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.Level.html" title="class in com.ibm.content.binder.model">BinderAccessLevel.Level</A>&nbsp;accessLevel,                         java.lang.String&nbsp;wmmId)                  throws <A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></PRE><DL><DD>Tells if a given user has a given access on the <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> whose ID is provided. Access can be set explicitely on a Portal resource (such as a Binder), or inherited from a parent resource. Only access explicitely granted to a Binder (using <A HREF="../../../../../com/ibm/content/binder/service/BinderPortletService.html#grantAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><CODE>grantAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])</CODE></A>) can be revoked using <A HREF="../../../../../com/ibm/content/binder/service/BinderPortletService.html#revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><CODE>revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])</CODE></A>. If the access to a Binder is inherited from a parent resource, it cannot be revoked using <A HREF="../../../../../com/ibm/content/binder/service/BinderPortletService.html#revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])"><CODE>revokeAccess(javax.portlet.PortletRequest, java.lang.String, com.ibm.content.binder.model.BinderAccessLevel.Level, java.lang.String[])</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the current portlet request.<DD><CODE>binderId</CODE> - the ID of the <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> access rights are to be changed.<DD><CODE>accessLevel</CODE> - one of the <A HREF="../../../../../com/ibm/content/binder/model/BinderAccessLevel.html" title="interface in com.ibm.content.binder.model"><CODE>BinderAccessLevel</CODE></A> constant.<DD><CODE>wmmId</CODE> - the WMM ID of the user to check for access rights.<DT><B>Returns:</B><DD><code>true</code> if the user has the access, 					<code>false</code> otherwise.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderException.html" title="class in com.ibm.content.binder.exception">BinderException</A></CODE><DD><CODE><A HREF="../../../../../com/ibm/content/binder/exception/BinderNotFoundException.html" title="class in com.ibm.content.binder.exception">BinderNotFoundException</A></CODE> - if no <A HREF="../../../../../com/ibm/content/binder/model/Binder.html" title="interface in com.ibm.content.binder.model"><CODE>Binder</CODE></A> with ID binderId exists</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../com/ibm/content/binder/service/BinderPortletServiceIBM.html" title="interface in com.ibm.content.binder.service"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="BinderPortletService.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -