Add new collaboration room template?

Hi,
I want create a new template for collaboration room, is it possible? How can do it?
My java code is:
package com.sap.ttt;
import com.sapportals.portal.prt.component.AbstractPortalComponent;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
//imports for User Management
import com.sap.security.api.IUser;
import com.sap.security.api.UMFactory;
//imports for Portal
import com.sapportals.portal.prt.runtime.PortalRuntime;
//imports for Collaboration Rooms
import com.sap.ip.collaboration.room.api.IRoomInfo;
import com.sap.ip.collaboration.room.api.IRooms;
//import com.sap.ip.collaboration.room.api.IRoom;
import com.sap.ip.collaboration.room.api.IRoomCategoryFactory;
import com.sap.ip.collaboration.room.api.IRoomCategory;
import com.sap.ip.collaboration.room.api.template.IRoomRole;
import com.sap.ip.collaboration.room.api.template.ITemplate;
import com.sap.ip.collaboration.room.api.types.RoomPrivacyType;
public class ttt extends AbstractPortalComponent
IRoomInfo roomInfo;
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {
try {
String templateName = "taskroom";
String roleName1 = "Admin";
String roleName2 = "Member";
IRooms roomsAPI = (IRooms) PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
IRoomCategoryFactory categoryName = roomsAPI.getRoomCategoryFactory();
IRoomCategory[] categoryInfo= categoryName.getRoomCategories();
//Get Template Related Infos
ITemplate template = roomsAPI.getRoomTemplate(templateName);
IRoomRole role1= template.getRoomRole(roleName1);
IRoomRole role2= template.getRoomRole(roleName2);
//Get an empty RoomInfo object
roomInfo = roomsAPI.getRoomCreationInfo();
//Fill RoomInfo object with values
roomInfo.setName("Programme ROOM_withDoc");
roomInfo.setDescription("New Room Description");
roomInfo.setTemplateName(templateName);
roomInfo.setCategories(categoryInfo);
roomInfo.addRoomParameter("Objectives","desc1","objective", false);
roomInfo.addRoomParameter("Start Date","desc2", "s date", false);
roomInfo.addRoomParameter("Target Date", "desc3","t date", false);
roomInfo.addRoomParameter("Initiatives", "desc4","initiatives", false);
roomInfo.addRoomParameter("Mission", "desc5", "mission", false);
roomInfo.addRoomParameter("Goal", "desc6","goal", false);
roomInfo.setPrivacy(RoomPrivacyType.DEFAULT);
//Set User Role Assignments
IUser owner = UMFactory.getUserFactory().getUserByLogonID("vishal");
IUser owner2 = UMFactory.getUserFactory().getUserByUniqueName("aditya");
roomInfo.setOwnerId(owner.getUniqueID());
roomInfo.addUserToRole(owner.getUniqueID(), role1);
roomInfo.addUserToRole(owner2.getUniqueID(), role2);
//Finally Create the Room
if(roomInfo.validate())
roomsAPI.createRoom(roomInfo, false);
response.write("/////room created sucessfully////");
//from here i want to create tasks
} catch ( Throwable e ) {
// Display exception
//response.write(roomInfo.g);
response.write("Application encountered an internal exception:" );
response.write(e.getMessage() );
e.printStackTrace( System.err );
response.write(e.toString());
//response.write(System.err);
} // catch
And my xml is:
<?xml version="1.0" encoding="UTF-8"?>
<application>
  <application-config>
    <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
    <property name="ServicesReference" value="com.sap.netweaver.coll.shared"/>
  </application-config>
  <components>
    <component name="ttt">
      <component-config>
        <property name="ClassName" value="com.sap.ttt.ttt"/>
      </component-config>
      <component-profile/>
    </component>
  </components>
  <services/>
</application>
But not appear the template, why?
Thanks in advance,
regards,

Hi Ravindrakvs,
cRoom templates are defined in portal.
Check with your portal team. They can provide you the path and details of cRoom templates.
Cheers
Amit

Similar Messages

  • Differents Email Notifications for each Collaboration Room Template

    Dear all,
    I have two collaboration room templates. I want to know if I can have one Email (Notification) template for Room Template 1 and a second Email (Notification) template for Room Template 2.
    Example:
    For Room Template 1 --- > Invitation Email 1.
    For Room Template 2 --- > Invitation Email 2.
    Cheers,
    Andres.

    Without knowing more about your customizations it's not possible to give you an exact answer. However, the way that I do this is by modifying the underlying workflow.
    I usually do something like this:
    <Action id='0' process='TaskDefinition-Notification-Process'>
        <Argument name='template' value="mytemplate"/>
        <Argument name='to' value='$(toAddr)'/>
        <Argument name='cc' value='$(ccAddr)'/>
        <Argument name='from' value='%%FROM_ADDRESS%%'/>
        <Return from="notificationException" to="notificationException"/>
    </Action>Note the toAddr variable, the ccAddr variable and the single template. You can either build it as one big list of email address and send it out once or use the standard workflow looping techniques and loop over the sub process over and over.
    As with anything Sun IDM, there's a thousand ways to do to this, including hooking into a the viewOptions.process variable to define your own workflow where this can be done.
    Anyway, that's how I solved it.

  • Transport of Collaboration room template...

    Hi,
    I have created a Collaboration room template in Dev.
    I need to transport this to QA and Prod.
    How do I do this?
    Could someone pelase help me with this?
    Thanks,
    Sudha.

    Hi Sudha,
    check this link also
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3d97ecbb-0d01-0010-3d9f-ae7a013471f1]
    Regards,
    vv.

  • Collaboration Room Template Rebuild Failure

    I was trying to rebuild a room template by using the same name. So what I did was that I duplicated the old one and gave it a unique name and deleted the old one. Then I tried to create a new template using the same name as the one I just deleted. It didn't let me move to the next step and gave an error message saying no valid name specified. The old template is gone no longer to be found nowhere not even in the backend. Any advice. Thanks

    I was able to Delete the Room Template and create a new one with the same Name as the Room Template deleted before.
    Steps:
    1. Delete Room Template
    2. Go to PCD Inspector
    3. In PCD Inspector Navigate to Portal Content > com.sap.ip.collaboration > RoomTemplateVersion
    4. Delete the Folder of the Template you just deleted
    5. Create a new Template with the Name of the Room Template created before
    It should work fine. I've done it twice.
    Point's appreciated

  • Add new column to template - rtf

    Hy,
    I want to add new columns to a template.
    My records have different number of columns, I know the number of them from a parameter. I want to generate a table with dynamic numbers of columns.
    Somebody can help me?
    My xml is:
    <DATA_RECORD_2>
         <col1>header 1</col1>
         <col2>header 2</col2>
         <col3>header 3</col3>
    </DATA_RECORD_2>
    <DATA_RECORD_2>
         <col1>coloana 1.1</col1>
         <col2>coloana 1.2</col2>
         <col3>coloana 1.3</col3>
    </DATA_RECORD_2>
    And I want my table:
    header 1 header 2 header 3
    coloana 1.1 coloana 1.2 coloana 1.3
    thanks.
    Leo.

    Please refer http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#4535399

  • Collaboration Room Template problem with Roominformation iView

    Hello all,
    I'm trying to make a custom collab room template, but I'm having troubles with the Roominformation iView. It always gives me an error 
    <i>Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 11:28_30/10/07_0005_2777350
    See the details for the exception ID in the log file.</i>
    What I've done is copied the Room information extended iView , paste it in a page, assigned that page to a the collabroom workset.
    Is there perhaps some configuration I have forgotten ? If so, where do I have to do the configuration ?
    Thank you in advance !
    Abjuh

    Okay, found the problem. It was indeed some configuration that I've forgot.
    com.sap.netweaver.coll.RoomInformationExtended
    iView property com_sap_netweaver_coll_information_roomid = room_id (=parameter)

  • Transport Collaboration Room Template - Mappings without CTS

    I need to transport a custom C-Room Template with some custom mappings.  Can this be done without using the CTS Transport method? 
    We do not have CTS configured on our Portal. EP 7.0
    Thanks,
    Matt

    Template was rebuilt manually.
    Thanks,
    Matt

  • Problem at 'Extension Stores' of Sessions in Collaboration room template

    Hi, ALL:
    I make a change on 'Persistence Mode' of 'Session' from DB to FSDB. But, after create a test session to validate setting properly or not. Session record still save in the original KM folder (root\sessiondata), not in the specific folder. I apply the same setting to the other item (Documents, News) on the duplicated template (duplicate from build-in template SAP_Project_Template_2), I can see the file on the folder.
    Any advice would be very appreciated.

    Hi Ravindrakvs,
    cRoom templates are defined in portal.
    Check with your portal team. They can provide you the path and details of cRoom templates.
    Cheers
    Amit

  • Mappings In Room Template Administration

    I have created a new Collaboration room template based on duplicating the existing Meeting_Room_Extended template via Room template administration.  I have added the additional page of Documents (via the PCD).  When I run the VALIDATE function on my new meeting room template I get informational messages saying that I don't have mappings. 
    Here are a sample of the warnings:
    No mappings provided for iView com.sap.netweaver.coll.documents_2_level on page com.sap.netweaver.coll.RoomDocuments
      Define the mappings required for the iView in the template
          No mappings provided for iView com.sap.netweaver.coll.RoomInformationExtended on page com.sap.netweaver.coll.RoomDocuments
      Define the mappings required for the iView in the template
    I know where I need to enter the mappings on the template administration, however, I don't understand the underlying purpose behind the mappings.  Can someone please give me an explanation of what the purpose of the mappings is?
    Thanks
    Angie.
    PS:  I am running NW2004s (EP7) with SP9.

    Hi Angie,
    have a look at this presentation from SAP NetWeaver Product Management:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0bf27c0-1c2e-2a10-80a2-bd78bf6c89c7
    I believe that it explains pretty well the concept behind the Room Extension Mappings.
    Let me know if you have further questions,
    Robert

  • Room Template Changes not reflecting

    Hi,
    I have a Collaboration room template called Community. In that I have the Quick Poll Maintenance iview. I was getting the following error while creating a quick poll. When I try to add an image to a response in the quick poll, it gave me portal error. This was happening only inside the Collaboration room and not outside. Then I changed the mapping of the property PathToImages for the iview in the template to private_docs_path and saved the template.
    Now the error does not come in the new rooms that I create with this template. But the old rooms are still having the problem. Any idea why?
    Alos, for my old room the template is being displayed as Community_&VER&22 and for new rooms is Community_&VER&28. Is there any way to synchronize the the template versions?
    Regards
    Ranjith

    Hi,
    which version of the portal are you using?
    Starting with NW04 SPS 17 / NW04s SPS8, you can transfer changes from the template to existing rooms. Before these releases, this is not possible. Please have a look at http://help.sap.com/saphelp_nw2004s/helpdata/en/44/168eb1c3641a75e10000000a1553f6/frameset.htm
    Kind regards
    karin

  • Modifying existing Coll. Room Template

    Dear KM friends,
    I have created a Collaboration Room Template.
    But i need to changes in Pages layout, iView settings, even i need to add new pages and delete.
    can anybody tell me, How to modify the existing Collaboration Room Template??
    Please reply me
    thanx in advance
    Kantha

    Hi,
    As per the doc...
    Each template contains technical attributes and settings for the rooms or room parts that are created based on the template. In the portal, the templates are stored as Collaboration content.
    You maintain templates in room template administration or in room part template administration.
    In the template, you define the room or room part structure by assigning a workset to the template (see Maintaining Worksets for Templates). The following special points apply to this assignment:
    ·        You can use one workset as the basis for more than one template, which are differentiated by their external parameters, for example.
    When you create a template, the system copies the workset assigned and assigns this copy exclusively to the template. Changes to a workset that is already assigned to a template are made only to this template.
    http://help.sap.com/saphelp_erp2004/helpdata/en/44/f99140c2eab118e10000000a1550b0/frameset.htm
    You can simply delete or add or modify the pages to the workset in the templete.
    Regards
    gEorgE

  • Help: Collaboration Room Bugs/Issues

    Hi,
    I have created my own collaboration room template by duplicating the standard Information Site template.
    However, i am facing a few issues related to collaboration room creation, which might be standard features/bugs in collaboration room.
    1. When i create a new Room, all the users of that room (members as well as administrators) get full access to room documents, headers, news, Faqs etc.
    The permissions started working fine when i changed permissions in KM Content --> Room_Extensions.
    All the existing rooms showed the correct permissions.
    However, whenever i create a new room, every user gets full permissions to all the parts of the room.
    This is despite the fact that i have removed all the users from full permissions to the room_extensions folder in KM and reset the child permissions.
    2. I have attached the iView com.sap.ip.collaboration/TemplateContent/Homer/iViews/ com.sap.netweaver.coll.RoomMemberList (Team Members iView)to my room template.
    When i create a new room based on my template, i do not get the users specific to a particular room.
    What i get in the Team members list is all the users listed in the Contacts list in Collaboration Launch Pad.
    3. When i try to preview some of the iViews stored in com.sap.ip.collaboration/TemplateContent/Homer, i get an exception. On attaching these iViews to the Collaboration Rooms, i get a message stating "Invalid Item ID" index.xml.
    I get the same message even after attaching these iViews to a collaboration room template and creating a room based on the template.
    Any help regarding these issues would be highly appreciated. Full points for helping me with these issues.
    Regards,
    Vibhu

    Hi Vibhu,
    here my comments:
    1) These are the standard settings (every room member gets full access) for the permissions of KM content created during a Room creation. Since KM can't distinguish between the room roles, we can't set 'better/stronger' permissions. You can only set manually permissions on concrete users.
    2) It seems that you have not set the mappings for this iView. For the RoomMemberList you need the following settings:
    StartURI        room_rootrolegroup_rid
    path            room_rootrolegroup_rid
    roomrid         roomid
    in the documentation you find more mappings for iViews delivered by SAP, which You have to set in the templates.
    Please see http://help.sap.com/saphelp_nw04/helpdata/en/3f/fcfe06fd7f1321e10000000a114cbd/content.htm for more information.
    3) That's possible since some of the iViews needs certain iView-Parameters set to work properly. Please check if this iView needs some mappings under the link in the documentation under 2)
    4) Up to now we are treating groups as you described. We are working on a solution where we work with groups as room members and we don't resolve the members of the invited/added group.
    Regards, Erwin

  • Role in Collaboration Room

    Hi
    I have duplicated the Collaboration Room Template "SAP_Information_Site" and created a new CR based on the duplicated template. Three roles are defined in that template: admin, content manager, public
    I assigned my own admin-user the admin-role in this CR.
    But every other user entering this room has automatically been assigned to the "content manager"-role, although he should be assigned to the "public"-role! I always delete the user from the Member-list in the Administration of this CR. But everytime the user enters the room, he´s assigned to the content manager-role again!!!!
    Can anybody help me?
    We´re on SAP EP 6.0 SP 13
    Thanks
    Sven
    Message was edited by: Sven Keller

    Hi Vasu
    Sorry, but that url doesn´t help. I know the procedure of assigning PORTAL (!!!) roles. The problem is, that within the collaboration room the ROOM (!!!) role "content manager" is assigned
    autmatically to EVERY user entering the room. I can´t control that.  
    Normally every user should have the room role "Public"!
    Regards,
    Sven

  • Define FSDB repository in a Collaboration Room?

    I have a CM Repository (pointing to fileserver, where the files are stored)
    Now, I want to create a room template, with an room extension to use this repository in "documents" section.
    I created the room template with room extension according this guide:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0496f69-cb70-2910-21a6-c4cf2cc66311
    The "Documents" iView, create a subfolder from my CM Repository.
    But I want the room can see directly this repository, is possible???
    thanks in advance,
    Edited by: Leandro  Balboni on Jun 6, 2008 1:02 PM

    Yes, you can certainly do this.  Typically document areas in a collaboration room are provisioned automatically, but you can include a KM Navigation IView in either the room template or the room extenstion template that points at a 'hard-coded' KM folder. 
    In this case, you would pre-define the properties of the KM Navigation IView after you add it to the template workset, and you would not use the Collaboration Room Template mapping function.
    Does this help at all?

  • Collaboration Room Mappings

    I'm in a bit over my head, I've been charged with setting up collaboration room templates.  I've been through the EP300 information regarding rooms.  Unfortunately I've not had much luck with the mappings.  I understand in theory how they are supposed to work, but I'm unable to find solid examples of what the mappings actually mean and how they are used.  Both in the 300 coursework and in searching service and sdn.
    Is there a good source for information on Mappings and what mappings are required for RoomTasks, DocumentsandLinksTeam, etc?

    Hi Chris,
    See, mapping is done for configuring the pages u have added in your workset, i.e as they are linked to each other, so mapping is the physical way to provide the path for them.
    For doing mapping u need to compare the mapping of your new template with the standard and then u need to create the extensions for that.
    And about ur answer mapping is always required when u are creating a new template but when u are duplicating the original template that time u don't need to do mapping as it will take the original mapping by default.
    Best Regards
    Shashank Saxena
    I hope if u got the answer for ur post then plz reward with points which is at the left side of ur page. thanks

Maybe you are looking for