Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Lock a room from the server side script

Avatar

Former Community Member

as the topic~

how can I set the room settings and lock the room?

by now i know that i can change the room timeout setting with setting roomAccess and property "timeOut".

with the code as follow:

itemVO.Add("nodeName", "roomAccess")

itemVO.Add("itemID", "timeOut")

itemVO.Add("body", "3600")

but I don't know what property should i use when I want to lock a room?

roomLocked ?

May you tell me where can I find all of room setting properties, and how to use them?

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Hi,

On the client we change the settings inside the RoomManager( you can

look through RoomManager code for more details) , however with dev

console , we make it easier to set room settings.

In the server side, if you want to set these properties, you will have

to use publishItem on the "roomManager" collectionNode using the

AccountMaager.

Here for your itemVO, itemID will be "locked" and your body is a boolean

i.e. true or false. So, for locking you will use

itemVO.Add("nodeName", "roomAccess")

itemVO.Add("itemID", "locked")

itemVO.Add("body", "true")

Look at the clientside's RoomManager.as file's

public function set roomLocked(p_locked:Boolean):void for more details

on this parameter or similar ones.

Hope this helps

Thanks

Regards

Hironmay Basu

View solution in original post

1 Reply

Avatar

Correct answer by
Former Community Member

Hi,

On the client we change the settings inside the RoomManager( you can

look through RoomManager code for more details) , however with dev

console , we make it easier to set room settings.

In the server side, if you want to set these properties, you will have

to use publishItem on the "roomManager" collectionNode using the

AccountMaager.

Here for your itemVO, itemID will be "locked" and your body is a boolean

i.e. true or false. So, for locking you will use

itemVO.Add("nodeName", "roomAccess")

itemVO.Add("itemID", "locked")

itemVO.Add("body", "true")

Look at the clientside's RoomManager.as file's

public function set roomLocked(p_locked:Boolean):void for more details

on this parameter or similar ones.

Hope this helps

Thanks

Regards

Hironmay Basu

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----