Package org.jasig.portal

Examples of org.jasig.portal.IServant


            String[] activities, String[] targets) throws org.jasig.portal.PortalException {
        boolean isOK = true;
        long time1 = Calendar.getInstance().getTime().getTime();
        RDBMPermissibleRegistry.registerPermissible(owner.getClass().getName());

        IServant servant = getPermissionsServant();
        IPermissible[] owners = new IPermissible[1];
        owners[0] = owner;
        if (activities == null) {
            activities = owner.getActivityTokens();
        }
View Full Code Here


     * put your documentation comment here
     * @param name
     * @return
     */
    protected IServant getServant (String name) {
        IServant rs = null;
        if (servantClasses.get(name) == null) {
            try {
                Class cserv = Class.forName("org.jasig.portal.channels.permissionsmanager."
                        + name);
                servantClasses.put(name, cserv);
View Full Code Here

     * Produces a group servant
     * @return the group servant
     */
  private synchronized IServant getGroupServant() throws PortalException {
    if ( servants.size() > MAX_SERVANTS ) servants.clear()
    IServant groupServant = (IServant) servants.get(getServantKey());
    if ( groupServant == null ) {
         try {
          // create the appropriate servant
          if ( servantFragmentId != null && CommonUtils.parseInt(servantFragmentId) > ) {
          groupServant = CGroupsManagerServantFactory.getGroupsServantforSelection(staticData,
                          "Please select groups or people who should have access to this fragment:",
                          GroupService.EVERYONE,true,true,getGroupMembers(servantFragmentId))
          } else
          groupServant = CGroupsManagerServantFactory.getGroupsServantforSelection(staticData,
                "Please select groups or people who should have access to this fragment:",
                GroupService.EVERYONE);   
               
          if ( groupServant != null )
             servants.put(getServantKey(),groupServant)
                           
        } catch (Exception e) {
          throw new PortalException(e);
          }
    } 
     groupServant.setRuntimeData((ChannelRuntimeData)runtimeData.clone());     
     return groupServant;
    }
View Full Code Here

            String[] activities, String[] targets) throws org.jasig.portal.PortalException {
        boolean isOK = true;
        long time1 = Calendar.getInstance().getTime().getTime();
        RDBMPermissibleRegistry.registerPermissible(owner.getClass().getName());

        IServant servant = getPermissionsServant();
        IPermissible[] owners = new IPermissible[1];
        owners[0] = owner;
        if (activities == null) {
            activities = owner.getActivityTokens();
        }
View Full Code Here

     * put your documentation comment here
     * @param name
     * @return
     */
    protected IServant getServant (String name) {
        IServant rs = null;
        if (servantClasses.get(name) == null) {
            try {
                Class cserv = Class.forName("org.jasig.portal.channels.permissionsmanager."
                        + name);
                servantClasses.put(name, cserv);
View Full Code Here

TOP

Related Classes of org.jasig.portal.IServant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.