Weblogic Page having multiple portlets pointing to common controller

Hi,
I have couple of queries around design of weblogic portal -
1) I have a weblogic portal page which is divided into 5 sections which essentially means each section will have some dynamic content that will be rendered by 5 different JSPs.
From the design perspective we started off by having one single controller for each of the above mentioned 5 portlets. But later on realised it makes sense to have 5 different controllers i.e. each portlet associated with its own controller.
Is it a better design to have each portlet linked to a different controller?
2) Considering the same situation of point 1 i.e. a page having 5 portlets.
I have a servlet which should forward the weblogic page having 5 portlets. How should i forward to this page? Can i forward to a weblogic page? As far as my knowledge goes we need to forward to a JPF which corresponds to a single portlet for a page. In my case a page has 5 portlets. Each portlet should be invoked so that total page is rendered. How can this be achieved?
Many Thanks in advance,
Saurabh

Any thoughts on this ??

Similar Messages

  • Single customisation page for multiple portlets - possible ?

    Is it possible to create a single page to customise multiple portlets ?
    Example : select star sign for Horoscope, city for weather, etc on the same page.
    The preference store APIs allow us to set values, but always assuming that we are in a portlets 'edit' mode - we cannot provide the portlet instance ID ourselves.
    Any ideas ?
    Thanks

    You could save your customization information into a custom DB table, rather than using the preference store (which can only be accessed by a particular portlet instance).

  • Pros/Cons of multiple shipping points

    Are there specific pros or cons to having multiple shipping points for the same physical shipping location? I know that loading points can be used to differentiate different types of loading but are there any examples or pros/cons for why you would or wouldn't want multiple shipping points for the same physical location?
    I know SAP doesn't prevent you from creating as many as are wanted, but I'm interested more in the business process or user impact.

    Maderas,
    Multiple shipping points can have many purposes, but one purpose that I am aware of and that is currently applied at my company is for determining types of shipments.  For example, in plant "X" let's say that there are 3 shipping points:
    X1 - large orders, require 3 days of pick/pack time
    X2 - medium orders, require 2 days of pick/pack time
    X3 - small orders, typically rush orders, require same day pick/pack time
    You can set up your delivery batch jobs to print these different types of orders.  For example, you can have X1 batch job to run 1x a day very early in the morning so that pick/packers have large orders to work on and you can have batch jobs for X3 orders to run 6x per hour near the end of the day to accommodate your rush customers.
    I hope this information is helpful.

  • What is the point in having multiple columns in ORDER BY clause?

    DB version:10gR2
    When using ORDER BY clause, the rows are always sorted according to the first column in the ORDER BY clause. So, what is point in having multiple columns in the ORDER BY clause(i always see this in production codes)?
    For the below SQLs' from SCOTT schema, the result sets are always ordered according the first column ename. When i added job asc and job desc, the result set doesn't change.
    SQL> select * from emp order by ename;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    14 rows selected.
    SQL> select * from emp order by ename, job;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    14 rows selected.
    SQL>  select * from emp order by ename, job desc;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    14 rows selected.

    Because there is only one employee with the name SCOTT,FORD ...etc in the emp table and your first column in the order by list is ename
    you spot the difference now
    SQL> select * from emp order by job;
         EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM     DEPTNO
          7788 SCOTT      ANALYST         7566 19-APR-87 00:00:00       3000                    20
          7902 FORD       ANALYST         7566 03-DEC-81 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82 00:00:00       1300                    10
          7900 JAMES      CLERK           7698 03-DEC-81 00:00:00        950                    30
          7369 SMITH      CLERK           7902 17-DEC-80 00:00:00        800                    20
          7876 ADAMS      CLERK           7788 23-MAY-87 00:00:00       1100                    20
          7698 BLAKE      MANAGER         7839 01-MAY-81 00:00:00       2850                    30
          7566 JONES      MANAGER         7839 02-APR-81 00:00:00       2975                    20
          7782 CLARK      MANAGER         7839 09-JUN-81 00:00:00       2450                    10
          7839 KING       PRESIDENT            17-NOV-81 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81 00:00:00       1500          0         30
          7654 MARTIN     SALESMAN        7698 28-SEP-81 00:00:00       1250       1400         30
          7521 WARD       SALESMAN        7698 22-FEB-81 00:00:00       1250        500         30
          7499 ALLEN      SALESMAN        7698 20-FEB-81 00:00:00       1600        300         30
    14 rows selected.
    Elapsed: 00:00:00.00
    SQL> select * from emp order by job, deptno asc;
         EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM     DEPTNO
          7902 FORD       ANALYST         7566 03-DEC-81 00:00:00       3000                    20
          7788 SCOTT      ANALYST         7566 19-APR-87 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82 00:00:00       1300                    10
          7369 SMITH      CLERK           7902 17-DEC-80 00:00:00        800                    20
          7876 ADAMS      CLERK           7788 23-MAY-87 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81 00:00:00        950                    30
          7782 CLARK      MANAGER         7839 09-JUN-81 00:00:00       2450                    10
          7566 JONES      MANAGER         7839 02-APR-81 00:00:00       2975                    20
          7698 BLAKE      MANAGER         7839 01-MAY-81 00:00:00       2850                    30
          7839 KING       PRESIDENT            17-NOV-81 00:00:00       5000                    10
          7654 MARTIN     SALESMAN        7698 28-SEP-81 00:00:00       1250       1400         30
          7844 TURNER     SALESMAN        7698 08-SEP-81 00:00:00       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81 00:00:00       1250        500         30
          7499 ALLEN      SALESMAN        7698 20-FEB-81 00:00:00       1600        300         30
    14 rows selected.
    Elapsed: 00:00:00.01
    SQL> select * from emp order by job,deptno desc;
         EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM     DEPTNO
          7902 FORD       ANALYST         7566 03-DEC-81 00:00:00       3000                    20
          7788 SCOTT      ANALYST         7566 19-APR-87 00:00:00       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81 00:00:00        950                    30
          7369 SMITH      CLERK           7902 17-DEC-80 00:00:00        800                    20
          7876 ADAMS      CLERK           7788 23-MAY-87 00:00:00       1100                    20
          7934 MILLER     CLERK           7782 23-JAN-82 00:00:00       1300                    10
          7698 BLAKE      MANAGER         7839 01-MAY-81 00:00:00       2850                    30
          7566 JONES      MANAGER         7839 02-APR-81 00:00:00       2975                    20
          7782 CLARK      MANAGER         7839 09-JUN-81 00:00:00       2450                    10
          7839 KING       PRESIDENT            17-NOV-81 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81 00:00:00       1500          0         30
          7654 MARTIN     SALESMAN        7698 28-SEP-81 00:00:00       1250       1400         30
          7521 WARD       SALESMAN        7698 22-FEB-81 00:00:00       1250        500         30
          7499 ALLEN      SALESMAN        7698 20-FEB-81 00:00:00       1600        300         30
    14 rows selected.
    Elapsed: 00:00:00.01
    SQL>

  • Illustrator CS6 hangs saving files to local HD while having multiple server share points mounted

    Mac OS 10.6
    Illustrator CS6
    Illustrator CS6 hangs (spinning beach ball) when saving files to the computer's local HD while having multiple server share points mounted.
    I am NOT opening or saving the file to or from a server.
    The server is mounted so that I can move my saved file to it once complete.
    Unmounting the servers fixes the problem and Illustrator CS6 returns to being normal (not causing a spinning beach ball).
    This is repeatable, not intermitent.

    We were having similar issues working over a network. I believe it's a Mac OS 10.6 issue, something to do with the Mac finder searching for file dates or metadata on the servers. From what I understand, this has been fixed in OS 10.7. We can't yet move to 10.7 and after trying many possible fixes, found that a Mac finder alternative, Path Finder, fixed most server delays. It's not free, but you can give it a 30 day trial to see if it fixes your issue. Here is a link to discussions about other suggested fixes:
    https://discussions.apple.com/thread/2172049?start=30&tstart=0

  • Multiple entry points into a Page Flow

    Is it possible to define multiple entry points into a PageFlow ? That is, can I forward to an arbitrary Action inside a PageFlow (other then the standard begin) ?
    If so, is there sample code illustrating this ?
    Thank you
    Cristian

    The flow view should show the action from the anchor.
    "Cristian" <[email protected]> wrote in message
    news:405892c9$[email protected]..
    >
    John,
    That answers my questions.
    One more thing though :
    When using an anchor to forward from a jsp to an action in a pageflow,
    the 'Flow View' does not show the corresponding link. Is that normal ?
    Thank you
    Cristian
    "John Rohrlich" <[email protected]> wrote:
    Cristian,
    Yes the samples implicitly go to begin because jumping into the middle
    of
    some flow can lead to code that is difficult to follow and to debug.
    If
    there are pieces of a page flow that are useful in multiple contexts
    you
    might want to make them independent page flows or nested page flows
    You can go from a jsp to an action in another page flow using an anchor
    and
    setting the href attribute, for example
    <netui:anchor
    href="/WebApp/anotherPageFlow/someAction.do">continue</netui:anchor>
    notice that you set href= rather than action= because you are going
    outside
    of the local page flow.
    If you want to go from an action in one page flow to an action in another
    page flow of the same application you can do this
    * @jpf:forward name="success" path="/anotherPageFlow/someAction.do"
    If you want to pass a form to the action you can do that also. You just
    follow the last example and add the form to the forward, for example
    return new Forward("success", someForm);
    I hope that covers it - john
    "Cristian" <[email protected]> wrote in message
    news:405787a2$[email protected]..
    I need to go from either an action or a jsp in one page flow to ajsp/action in another page flow, passing around a session scoped action
    form.
    What is the syntax for the forwarding path ?
    All the samples I found implicitly
    forward to the 'begin()' action in the destination jpf.
    How do I tell it to go to
    another action/jsp in the target jpf ?
    Thanks
    Cristian

  • Having same portlet on a page more than once

    I am faced with the task of allowing a user to add the same portlet to a page multiple times. The concept is identical to this: we have five news feeds and one 'News' portlet. We want a user to be able to add the 'News' portlet to a custom page as many times as they want. Then, within the preferences, they choose which of the feeds to display in each portlet window.
    Is this possible? It doesn't have to be a matter of choosing a preference-- the requirement is just that the user can choose wich feed to display and we do not have to create a whole new web scv and portlet for each feed that we add.
    Any help is greatly appreciated. We are using Plumtree 5.0.2 and have the EDK/GDK available in case there is a solution by writing Java code.
    Thanks,
    Mike

    Two options:
    Change the portlet logic so it accepts multiple feeds and presents them all in one portletRegister multiple instances of the portlet against the single web service - they should all have separate prefsDepends on how you want to present the content. One gets you a single portlet with content in one place - the other gets you the ability to have multiple portlets distributed on the page. Personally, I find the latter maddening, but it depends on the audience and your threshhold for pain.
    Thanks,
    Eric

  • PageParameterName and multiple portlets on page

    Hello,
    I'm using the pageParameterName (next_page_p1) multipage stuff
    and it is working fine for 1 portlet. I then add another
    portlet (different from first) that also uses multipage jsp's
    (but different pageParameterName than the 1st: next_page_p2).
    Both portlets display a link to their cooresponding 2nd JSP.
    When I click on portlet #1's link, the entire portal page
    redraws and portlet #1 shows the 2nd JSP, portlet #2 still has
    1st JSP. When I then click on portlet #2's next page link, the
    portal page redraws and portlet #2's 2nd JSP shows up, BUT
    portlet #1 reverts back to the initial JSP.
    It appears the problem is that this call:
    ... HttpPortletRendererUtil.parameterizeLink(pr,
    PortletRendererUtil.PAGE_LINK,
    HttpPortletRendererUtil.portletParameter(pr, "next_page_p1")
    +"=/portlets/2nd.jsp" ....
    is NOT including the extra parameters that other portlets need.
    So when the user clicks on the URL link, the other porlets "lose
    state". The PAGE_LINK only includes base information, not what
    other portlets add to URL by using the parameterizeLink call.
    If this makes no sense, I can send JSP's. But if you use the
    multipage sample twice on a portal page, you'll see what I mean
    (Change the pageParameter name in provider.xml file).
    Any Ideas???
    Thanks,
    Matt Piermarini
    [email protected]

    as of my knowledge, this is not possible anyway.
    why do you have two different portal projects?
    the only choice I see is that you consume them via WSRP.
    Login to PAT -> choose portal 1 -> go to portal management -> portal library -> remote producers -> configure the portal 2 producer by giving the URL to the WSDL of portal 2 -> then you need to tell portal 1 (consumer) which portlets of portal 2 you want to have in the portlet library of portal 1.
    WSDL URL format:
    http://<producerhost>:<port>/<producerportalWebContext>/producer?wsdl

  • Multiple Portlet Instances

    Hi,
    I need deploy multiple portlet instances of the same portlet with different
    parameters.
    What I means is I have 4 different pieces of conent which look same and can
    be served by same portlet. So I need to define different instances of the
    portlet with a parameter to pick different content.
    How can I do this using Weblogic Portal Server4.0
    Regards,
    UDay

    Hi Michael,
    We explored this option, but will we need to know the Portalet id to get
    the properties, to get a portlet id we need to use a unpublished api. Is
    there a forward compatible way of doing this???
    Regards,
    UDay
    "Michael Goldverg" <[email protected]> wrote in message
    news:[email protected]...
    Uday,
    You can use product catalog store provided by WLP to store portlet "custom
    properties". For example, you can create a custom property set for your
    catalog where you can define any properties, which you portlets will useat
    runtime. Each portlet will be represented as a unique product item in the
    repository. You will need to use EBCC to define custom property set foryou
    catalog and portal administration app to populate these properties foreach
    portlet "product item". You can also create a separate category "portlets"
    in the catalog structure and put your "portlet" product items in there.
    Once all this is defined, you can use the product catalog jsp tags to get
    access to these properties in the jsp page.
    Regards,
    Mike
    "Uday Tangs" <[email protected]> wrote in message
    news:[email protected]...
    Hi Subrahmanyam,
    Even though I deploy same portlet multiple times, I nee attach a unique
    attribute to each deployed portlet so that it will pick up different
    content.
    My question is how can I attach such an attribute to a portlet
    defination,
    I
    know from EBCC there is no such option, but is there a work around??
    Your help is appriciated.
    Thanks & Regards,
    UDay
    "Subrahmanyam Allamaraju" <subbuATBeaDOTCom> wrote in message
    news:[email protected]...
    Uday,
    WLP does not yet support this feature. However you can emulate this
    behavior by deploying the same portlet multiple times.
    Subbu
    Uday Tangs wrote:
    Hi,
    I need deploy multiple portlet instances of the same portlet with
    different
    parameters.
    What I means is I have 4 different pieces of conent which look same
    and
    can
    be served by same portlet. So I need to define different instances
    of
    the
    portlet with a parameter to pick different content.
    How can I do this using Weblogic Portal Server4.0
    Regards,
    UDay

  • Can multiple portlets share the same pageflow ?

    What is the framework behaviour if two distincts portlets are based on the same
    pageflow .jpf file.
    Will they share the classe instance or will it be two distincts page flow instances.

    Yes, multiple portlets can share the same pageflow, and the instances
    will be separate.
    Subbu
    Olivier wrote:
    What is the framework behaviour if two distincts portlets are based on the same
    pageflow .jpf file.
    Will they share the classe instance or will it be two distincts page flow instances.

  • Having multiple problems with script - NTFS Permissions and AD Groups

    Hi, all!  I'm having multiple problems with my first script I've written with Powershell.  The script below does the following:
    1. Prompts the user for a corporate division under which a shared folder will be created, and adjusts variables accordingly.
    2. Prompts if the folder will be a global folder or an office/location-specific folder, and makes appropriate adjustments to variables.
    3.  If a global folder, prompts for the name.  If an office/location-specific folder, prompts for each component of the street address, city and state and an optional modifier.  I've prompted for this information in this way because the information
    is used differently later on in the script.
    4.  Verifies the entered information and requests confirmation to proceed.
    5.  Creates the folder.
    6.  Creates an AD OU and/or security group(s).
    7.  Applies appropriate security groups to the new folder and removes undesired permissions.
    Import-Module ActiveDirectory
    $Division = ""
    $DivAbbr = ""
    $OU = ""
    $OUDrive = "AD:\"
    $FolderName = ""
    $OUName = ""
    $GroupName = ""
    $OURoot = "ou=DFS Restructure Testing OU,ou=Pennsylvania Camp Hill 4410 Industrial Park Rd,ou=Locations,ou=Camp Hill,dc=jacobsonco,DC=com"
    $FSRoot = "E:\"
    $FolderPath = ""
    $DefaultFolders = "Archive","Customer Service","Equipment","Inbounds","Management","Outbounds","Processes","Projects","Quality","Reports","Returns","Safety","Schedules","Time Keeping","Training"
    [bool]$Location = 0
    do {
    $userInput = Read-Host "Enter CLS Division: (W)arehousing, (S)taffing, or (P)ackaging"
    Switch ($userInput)
    W {$Division = "Warehousing"; $DivAbbr = "WHSE"; $OU = "ou=Warehousing,"; break}
    S {"Staffing is not yet implemented."; break}
    P {"Packaging is not yet implemented."; break}
    default {"Invalid choice. Please re-enter."; break}
    while ($DivAbbr -eq "")
    write-host ""
    write-host ($Division + " was selected.")
    $FolderPath = $Division + "\"
    write-host ""
    $choice = ""
    do {
    $choice = Read-Host "Will this be a (G)lobal folder or (L)ocation folder?"
    Switch ($choice)
    G {$Location = $false; break}
    L {$Location = $true; $FolderPath = $FolderPath + "Locations\"; $OU = "ou=Locations," + $OU; break}
    default {"Invalid choice. Please re-enter."; $choice = ""; break}
    while ($choice -eq "")
    write-host ""
    write-host ("Location is set to: " + $Location)
    write-host ""
    if ($Location -eq $false) {
    $FolderName = Read-Host "Please enter folder name:"
    $GroupName = $DivAbbr + " " + $FolderName
    } else {
    $input = Read-Host "Please enter two-letter state abbreviation:"
    $FolderName = $FolderName + $input + " "
    $input = Read-Host "Please enter city:"
    $FolderName = $FolderName + $input + " "
    $input = Read-Host "Please enter street address number only:"
    $FolderName = $FolderName + $input
    $GroupName = $DivAbbr + " " + $FolderName
    $FolderName = $FolderName + " "
    $input = Read-Host "Please enter street name:"
    $FolderName = $FolderName + $input
    $input = Read-Host "Please enter any optional information to appear in folder name:"
    if ($input -ne "") {
    $FolderName = $FolderName + " " + $input
    $OUName = $FolderName
    write-host
    write-host "Path for folder: "$FSRoot$FolderPath$FolderName
    write-host "AD Path: "$OUDrive$OU$OURoot
    write-host "New OU Name: "$OUName
    write-host -NoNewLine "New Security Group names: "$GroupName
    if ($Location -eq $true) { write-host " and "$GroupName" MGMT" }
    write-host
    $input = Read-Host "Please confirm creation of new site/folder: (Y/N) "
    if ($input -ne "Y") { Exit }
    write-host
    write-host -NoNewLine "Folder exists: "; Test-Path ($FSRoot + $FolderPath + $FolderName)
    if (Test-Path ($FSRoot + $FolderPath + $FolderName)) {
    Write-Host "Folder already exists! Skipping folder creation..."
    } else {
    write-host "Folder does not exist. Creating..."
    new-item -path ($FSRoot + $FolderPath) -name $FolderName -itemtype directory
    Set-Location ($FSRoot + $FolderPath + $FolderName)
    if ($Location -eq $true) {
    $tempOUName = "ou=" + $OUName + ","
    write-host
    write-host $OUDrive$tempOUName$OU$OURoot
    write-host
    write-host -NoNewLine "OU exists: "; Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)
    if (Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)) {
    Write-Host "OU already exists! Skipping OU creation..."
    } else {
    write-host "OU does not exist. Creating..."
    New-ADOrganizationalUnit -Name $OUName -Path ($OU + $OURoot) -ProtectedFromAccidentalDeletion $false
    $GroupNameMGMT = $GroupName + " MGMT"
    if (!(Test-Path ($OUDrive + "CN=" + $GroupName + "," + $tempOUName + $OU + $OURoot))) { write-host "Normal user group does not exist. Creating..."; New-ADGroup -Name $GroupName -GroupCategory Security -GroupScope Global -Path ("OU=" + $OUName + "," + $OU + $OURoot)}
    if (!(Test-Path ($OUDrive + "CN=" + $GroupNameMGMT + "," + $tempOUName + $OU + $OURoot))) { write-host "Management user group does not exist. Creating..."; New-ADGroup -Name $GroupNameMGMT -GroupCategory Security -GroupScope Global -Path ("OU=" + $OUName + "," + $OU + $OURoot)}
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    # $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    $BIUsers = New-Object System.Security.Principal.NTAccount("BUILTIN\Users")
    $BIUsersSID = $BIUsers.Translate([System.Security.Principal.SecurityIdentifier])
    write-host $BIUsersSID.Value
    # out-string -inputObject $BIUsers
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($BIUsersSID.Value,"ReadAndExecute,AppendData,CreateFiles,Synchronize","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.RemoveAccessRuleAll($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    get-acl ($FSRoot + $FolderPath + $FolderName) | fl
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $ADGroupName = "JACOBSON\" + $GroupName
    $objUser = New-Object System.Security.Principal.NTAccount($ADGroupName)
    $objUser.Translate([System.Security.Principal.SecurityIdentifier]).Value
    write-host $ADGroupName
    write-host $objUser.Value
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName,"ReadAndExecute","ContainerInherit, ObjectInherit", "None", "Allow")
    Out-String -InputObject $ar
    $FolderACL.AddAccessRule($Ar)
    $ADGroupName = "JACOBSON\" + $GroupNameMGMT
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName, "Modify", "ContainerInherit, ObjectInherit", "None", "Allow")
    Out-String -InputObject $ar
    $FolderACL.AddAccessRule($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    } else {
    $tempOUName = "cn=" + $GroupName + ","
    write-host
    write-host $OUDrive$tempOUName$OU$OURoot
    write-host
    write-host -NoNewLine "Group exists: "; Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)
    if (Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)) {
    Write-Host "Security group already exists! Skipping new security group creation..."
    } else {
    write-host "Security group does not exist. Creating..."
    New-ADGroup -Name $GroupName -GroupCategory Security -GroupScope Global -Path ($OU + $OURoot)
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $ADGroupName = "JACOBSON\" + $GroupName
    $FolderACL.SetAccessRuleProtection($True,$True)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName,"Modify","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    My problems right now are in the assignment/removal of security groups on the newly-created folder, and the problems are two-fold.  Yes, I am running this script as an Administrator.
    First, I am unable to remove the BUILTIN\Users group from the folder when this is an office/location-specific folder.  I've tried to remove the group in several different ways, and none are having any effect.  Oddly, if I type in the lines directly
    into Powershell, they work as expected.  I've tried the following methods:
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    $BIUsers = New-Object System.Security.Principal.NTAccount("BUILTIN\Users")
    $BIUsersSID = $BIUsers.Translate([System.Security.Principal.SecurityIdentifier])
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($BIUsersSID.Value,"ReadAndExecute,AppendData,CreateFiles,Synchronize","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.RemoveAccessRuleAll($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    In the first case, the script goes through and has no apparent effect because afterwards, I do a get-acl and the BUILTIN\Users group is still there, although when looking through the GUI, inheritance appears to have been broken from the parent folder.
    In the second case, I get the following error message:
    Exception calling "RemoveAccessRuleAll" with "1" argument(s): "Some or all identity references could not be translated."
    At C:\Users\tesdallb\Documents\FileServerBuild.ps1:110 char:5
    +     $FolderACL.RemoveAccessRuleAll($Ar)
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : IdentityNotMappedException
    This seems strange that the local server is unable to translate the SID of a BUILTIN account.  I've also tried explicitly putting in the BUILTIN\Users SID in place of the variable in the New-Object line, but that gives me the same error.  I've
    also tried the solutions given in this thread:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ad59dc58-1360-4652-ae09-2cd4273cbd4f/remove-acl-issue?forum=winserverpowershell and at this URL:
    http://technet.microsoft.com/en-us/library/ff730951.aspx but these solutions also failed to have any effect.
    My second problem is when I try to apply the newly-created security groups, I also will get the "Some or all identity references could not be translated."  I thought I had found a workaround to the problem by adding the -PassThru option to
    the New-ADGroup commands, because it would output the SID of the group after creation, however a few lines later, the server is unable to translate the account to apply the security groups to the folder.
    My first Powershell script has been working well up to this point and now I seem to have hit a showstopper.  Any help is appreciated.
    Thanks!

    I was hoping to stay with strictly Powershell, but unless I can find a Powershell solution, I may resort to ICACLS.
    As for the problems with my groups not being translatable right after creating them, I think I have solved this problem by using the -Server parameter on all my New-ADGroup commands and this example code seems to have gotten around the translation problem,
    again utilizing the -Server parameter on the Get-ADGroup command:
    get-acl ($FSRoot + $FolderPath + $FolderName) | fl
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    # Add the new normal users group to the folder with Read and Execute permissions
    $GroupSID = Get-ADGroup -Identity $GroupName -Server chadc01.jacobsonco.com | Select-Object -ExpandProperty SID
    $SIDIdentity = New-Object System.Security.Principal.SecurityIdentifier($GroupSID)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($SIDIdentity,"ReadAndExecute","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    # Add the management users group to the folder with Modify permissions
    $GroupMGMTSID = Get-ADGroup -Identity $GroupNameMGMT -Server chadc01.jacobsonco.com | Select-Object -ExpandProperty SID
    $SIDIdentity = New-Object System.Security.Principal.SecurityIdentifier($GroupMGMTSID)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($SIDIdentity, "Modify", "ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    Going this route seems to ensure that the Domain Controller I'm creating my groups on is the same one that I'm querying for the group's SID to use in the FileSystemAccessRule.  It's been working fairly consistently.
    Still having issues with the translation of the BUILTIN\Users group, though. 

  • Flat file having multiple header lines , how to separate the same and pushit into my intrnal table

    Hi Guys,
                    I got an issue , My flat file having multiple header lines
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    some lines of data and again
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    in this case how could I separate the header lines from the flat file and update the details to my internal table.
    kindly help me on this issue.
    Thanks and regards,
    M.S.Amirtharajvijay.

    Hi Amirthraj,
    If the flat file is static (if the content within it is same for all) then use the offset concept. First get the contents of the flat file into an internal table and later find the field that has to be in final internal table within the line, calculate the offset for the line and get the value into an workarea. Finally modify/append the work area into an internal table. Also wait for other experts answers for any other hassle free way to achieve the requirement.
    With Regards,
    Giriesh M

  • New tab page shows multiple sites from the same domain

    For example in the grid of sites it may show multiple pages from e.g. stackoverflow.com instead of just the single base domain stackoverflow.com (or alternatively the most used of the pages). Is there any way to limit each domain to a single page in the quick links tableau? In my opinion having multiple pages is not at all a navigational aid as sites generally provide their own internal navigation.

    This allows you to group the tabs as well [https://addons.mozilla.org/en-us/firefox/addon/new-tab-plus/ New Tab Plus] however it is preliminary.

  • I have a page with multiple quicktime players on it, and want to close all other players when any of the players is started.

    I have a page with multiple quicktime players on it, and want to close all other players when any of the players is started.
    <div id="mp3-player" style="display:none;height:15px !important;float:left;margin:0px 0 15px 0px; width:270px !important;">
                           <div style="height:15px !important;width:270px !important;">
                               <embed src='http://209.15.205.3/~cityval2/MP3/352681.mp3' width="270px" height="15px" AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/" />
                            </div>
                        </div>

    One key point.
    1. Migration within  the same forest ; we can say operation is cut & paste (Source account wil be not present)
    2. Migration between the forest ; we can say operation is copy  & paste ( Source account will be present)
    Also find some ADMT cool stuffs.
    ADMT Series – 1. Preparing Active Directory
    ADMT Series – 2. Preparing the ADMT Machine
    ADMT Series – 3. SID History
    ADMT Series – 4. Password Export Server
    ADMT Series – 5. Machine Preparation
    ADMT Series – 6. Service Account Migration Wizard
    ADMT Series – 7. Group Account Migration Wizard
    ADMT Series – 8. User Account Migration Wizard
    ADMT Series – 9. Merging Users with a Different sAMAccountName
    ADMT Series – 10. Security Translation Wizard – Local Profiles
    ADMT Series – 11. Computer Migration Wizard
    Regards,
    Biswajit
    MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
    Blog:
      Script Gallary:
    LinkedIn:
    Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

  • What are the main advantages of having multiple WLS_FORMS instance servers?

    Hi,
    I know it's possible to deploy multiple instance weblogic forms servers (WLS_FORMS). What are the advantages of having multiple instance of forms server?
    When we deploy forms&reports 11g the configuration process creates WLS_FORMS and WLS_REPORTS. Is there any advantage of having under the same physical server more than one WLS_FORMS server?
    Regards
    Ricardo

    The exact advantages and disadvantages will depend on exactly how you configure your environment. Remember that everything good comes with a price. So for example, you can add additional managed servers to improve scalability, but doing this means consuming more system resources. So although you may now be able to service twice as many users, it may have cost you 1gig of RAM or more (just an example).
    I would recommend taking a look at the documentation as it offers a pretty good high level view of the possible configurations and their advantages. Here is a good starting place:
    http://download.oracle.com/docs/cd/E14571_01/web.1111/e13716/understand_domains.htm
    The complete documentation set for FMw 11.1.1.3 and WLS 10.3.3 can be found here:
    http://download.oracle.com/docs/cd/E14571_01/index.htm

Maybe you are looking for

  • Syntax for using a variable in an equation.

    Hi all, Simple question here.  What is tha appropriate syntax for using a variable in a calculation equation.  Specifically, I am taking an established curve fitting equation from my channels and trying to calculate it over a lineargenerated data set

  • Patch upgrade problem - Urgent

    Hi, We have upgraded the patch to 19 in our BW Production. After doing so the users are not able to access through Portal.  They are getting the error " Run-time error '91': Object variable or With block variable not set". Can anyone let me know what

  • Adv Replication AND Label Security

    Has anybody implemented Adv Replication AND Label Security? I am looking for any advice and warnings.

  • Final Cut Express 4 Quality

    I'm working on an animated series using Anime Studio software to create each scene.  When I export each scene to a Quicktime .mov file, the quality is crisp and perfect.  I'm just having trouble figuring out how to maintain the quality when I use Fin

  • Application LabVIEW : DAQ Traditionnel et PCIE-6536B

    Bonjour, J'ai une application LabVIEW 2014 qui fonctionne avec DAQ Traditionnel et une carte d'acquisition PCI-DIO-32HS. J'aimerai changer la carte d'acquisition pour une PCIE-6536B, qui ne fonctionne que sous DAQmx. Est-il possible de faire fonction