Query for admin folder ID

I am trying to query for the admin folder ID knowing only the name of the folder. For example, I have a folder named abc and it is in another folder named xyz. xyz is on the rootadmin folder and I have no trouble retreiving that folder ID when I query. I just can't seem to query for the id of abc.
I am using the plumtree.server api 5.0.1. Also, the documentation for the Plumtree API overview for .net incorrectly creates a multi-demitional array for objects as
Object[][] zzz = new Object[3][2]; This is for Java I beleive. To do what you need in C#, do this
Object[][] = new Object[3][];for(int i=0 ; i<3 ; i++){   zzz[i] = new object[2];}
This creates an array that can be passed to the API.
public int SearchFolderID(string folderName){IPTAdminCatalog ptAC = (IPTAdminCatalog)objSession.GetAdminCatalog();IPTAdminFolder rootFolder = ptAC.GetRootAdminFolder();//This will be returned if not found.intfolderID = -1;//This will limit the query results to just the property ID and the name.intnPropertiesToQuery = PT_PROPIDS.PT_PROPID_OBJECTID;Object[][] filter = newObject[3][];for(inti = 0; i<3;i++){      filter[i] = newObject[1];}filter[0][0] = PT_PROPIDS.PT_PROPID_NAME;filter[1][0] = PT_FILTEROPS.PT_FILTEROP_EQ;filter[2][0] = folderName;
IPTQueryResult ptResult = rootFolder.QuerySubfolders(nPropertiesToQuery,1,0,0,-1,filter);
if(ptResult.RowCount() >= 1){     for(inti=0;i<ptResult.RowCount();i++)    {          folderID += ptResult.ItemAsInt(0,PT_PROPIDS.PT_PROPID_OBJECTID);    }}
returnfolderID;}

I think that the code below has a bug. When it looks for a folder, it ONLY looks for folders that are a direct child of the root folder. The line:
IPTQueryResult ptResult = rootFolder.QuerySubfolders(nPropertiesToQuery,1,0,0,-1,filter);
will perform a query that returns all DIRECT CHILD subfolders of the ROOT folder that have the indicated name. In your example, this will work for the folder called "xyz", but will NOT work for the folder called "abc", since the abc folder is not in the root folder.
One option would be to do this search recursively. First, find the folder object called XYZ in the root folder. Then open that folder object. Then using THAT object, call QuerySubfolders on it, something like:
XYZFolder.QuerySubfolders(nPropertiesToQuery,1,0,0,-1,ABCfilter);
This will require some substantial changes to your code, I think, because you'll have to record the intermediate folder objects somewhere (i.e. in your current code you never open the XYZ folder, but this change would necessitate making calls on that object.) You'll probably want a function that takes in an AdminFolder object and a subfolder name, opens the subfolder, and returns it. Then you can call that function repeatedly, walking down the folder path.
P.S. There's another thing I don't understand about your code. Your code does "folderID += ...", but why would you want to increment the folderID? Shouldn't it read "folderID = ..."?

Similar Messages

  • How to run a search query for a particular folder in KM related to portal

    Hi,
    Can any one tell me the steps for : how to run a search query for a particular folder in knowledge management related to portal.
    Answers will be rewarded.
    Thanks in advance.
    KN
    Edited by: KN on Mar 18, 2008 6:33 AM

    Ok u may not require a coding
    But u req configuration
    U should first make a search option set
    Link: [Search Option set|http://help.sap.com/saphelp_nw04/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/frameset.htm]
    Then u need 2 duplicate a KM Command by the name Search From here
    and customize it to include the Search Option that u have created
    Link: [Search from here|http://help.sap.com/saphelp_nw04/helpdata/en/2a/4ff640365d8566e10000000a1550b0/frameset.htm]
    Then in the layout add this command.
    Regards
    BP

  • Query for local admins

    What is the query for finding out who all has local admin access on there workstations?

    Here are some examples:
    http://portal.sivarajan.com/2011/09/search-ad-and-list-local-administrator.html
    http://portal.sivarajan.com/2011/10/search-ad-collect-local-admin-group.html
    http://portal.sivarajan.com/2011/04/list-local-administrator-group-members.html
    Santhosh Sivarajan | Houston, TX | www.sivarajan.com
    ITIL,MCITP,MCTS,MCSE (W2K3/W2K/NT4),MCSA(W2K3/W2K/MSG),Network+,CCNA
    Windows Server 2012 Book - Migrating from 2008 to Windows Server 2012
    Blogs: Blogs
    Twitter: Twitter
    LinkedIn: LinkedIn
    Facebook: Facebook
    Microsoft Virtual Academy:
    Microsoft Virtual Academy
    This posting is provided AS IS with no warranties, and confers no rights.

  • HT1349 i installed itunes after finish it wont start saying "the folder itunes is on a locked disk or you do not have write pemissions for this folder" im on my admin for my Pc how do i fix??

    im am having a problem with itunes itself, it was not importing cds properly so i uninstalded then reinstaled now after the install when i try to start it says:"the folder i tunes is on a locked disk or you do not have write pemissions for this folder" now im on the Admin for my PC so i should have full access, so im stuck with what to do, any ideas? thanks

    Post this in the iTunes forum as it does not pertain to an iPod Shuffle.
    https://discussions.apple.com/community/itunes
    B-rock

  • Looking up Admin Folder ID based on folder name

    I need to lookup the folder ID based on the name, regardless of which level of parent folder it resides on. I can't seem to do this using an object manager. What's the easiet way to accomplish this regardless of the admin folder level? I'd really appreciate any sample code.
    Thanks.
    Vanita
    Staples

    get an IPTAdminCatalog object from IPTSession:
    IPTSession.GetAdminCatalog()
    then get the root folder off IPTAdminCatalog:
    IPTAdminCatalog. GetRootAdminFolder()
    then call IPTAdminFolder.QuerySubfolders() with an appropriate query filter limiting to a certain name.
    Here's the javadocs on QuerySubfolders():
    QuerySubfolders
    public IPTQueryResult QuerySubfolders(int lPropIDMask,
                                          int lDepth,
                                          int vOrderBy,
                                          int lSkipRows,
                                          int lMaxRows,
                                          java.lang.Object[][] vQueryFilter)
        Queries the subfolders. This can be immediate (depth 0 or child depth 1).
        Parameters:
            lPropIDMask - prop ids to query
            lDepth - 0 or 1
            vOrderBy - can be an Object[][] with 2 columns and one row. The first column holds the property ID to order by, from PT_PROPIDS. The second column holds the order to order, from PT_ORDERBY_SETTINGS
            lSkipRows - number of rows to skip at the beginning, or 0 for none
            lMaxRows - maximum number of rows to return, or -1 for all
            vQueryFilter - is a 2D array with 3 columns. The first column holds the property id, from PT_PROPIDS. The second column holds the operator, from PT_FILTEROPS. The third column holds the value to be matched.
        Returns:
            IPTQueryResult

  • Web Query for MS Excel 2000+ (*.iqy)

    Is there any information on how to use this tool? I have found some on Oracle Fusion Middleware, but not having much success on it. I can get reports to run in Excel, but it isn't consistant. Sometimes they run, sometimes they error out saying "The site reports that the request is not valid". The files that have only 1 query in it seem to work better than files with more than one. I only refresh on at a time.
    Thanks.
    Oracle BI Discoverer 11g (11.1.1.6.0)
    Oracle Business Intelligence Discoverer Plus 11g (11.1.1.6.0)
    Discoverer Model - 11.1.1.6.0
    Discoverer Server - 11.1.1.6.0
    End User Layer - 5.1.1.0.0.0
    End User Layer Library - 11.1.1.6.0
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

    Well, you could make sure you never have costs > $10,000 and that would solve it!
    8-)
    Okay, couldn't resist.
    What about trying to change the default formatting for that folder's item in Disco Admin against the EUL directly (ie: setting the format to none like you found, or setting it to 2 digit accuracy, etc.) and see if that works.
    Russ

  • Operations manager failed to run a wmi query for wmi events (0x800706ba)

    Hi everyone,
    I've been working on this issue for a while and I am still no closer to finding out what the problem is.  If anybody can offer any other advice or things to check, I'm all ears.
    I'm running SCOM 2012 R2 with UR2, and the Cluster Management Pack v6.0.7063.0
    My problem is on one particular batch of cluster servers where I am getting the following error.
    Name: Operations Manager failed to run a WMI query for WMI events
    Alert Description:
    Module was unable to enumerate the WMI data
    Error: 0x800706ba
    Details: The RPC server is unavailable
    Workflow name: Microsoft.Windows.Cluster.Node.StateMonitoring
    Instance Name: servername.domain.local
    Instance ID: {instance_id}
    Management group: SCOM_Management_Grp_Name
    I am getting this alert regardless of whether I run the Windows Cluster Action Account as Local System, or as a domain user with full local admin privileges on all the cluster nodes.
    When looking at the management pack and the workflow in particular (Microsoft.Windows.Cluster.Node.StateMonitoring), I can see that it's trying to access
    MSCluster_Node in the root\MSCLUSTER WMI namespace.
    This is the workflow for your information...
    <UnitMonitor> ID="Microsoft.Windows.Cluster.Node.StateMonitoring" Accessibility="Public" Enabled="onEssentialMonitoring" Target="ClusLibrary!Microsoft.Windows.Cluster.Node" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="ClusLibrary!Microsoft.Windows.Cluster.CheckState" ConfirmDelivery="false">
    <Category>AvailabilityHealth</Category>
    <AlertSettings AlertMessage="Microsoft.Windows.Cluster.Node.StateMonitoring.AlertMessage">
    <AlertOnState>Warning</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>MatchMonitorHealth</AlertSeverity>
    <AlertParameters>
    <AlertParameter1>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
    <AlertParameter2>$Target/Property[Type="ClusLibrary!Microsoft.Windows.Cluster.Node"]/ClusterName$</AlertParameter2>
    </AlertParameters>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="Success" MonitorTypeStateID="Online" HealthState="Success" />
    <OperationalState ID="Warning" MonitorTypeStateID="Partial" HealthState="Warning" />
    <OperationalState ID="Error" MonitorTypeStateID="NotOnline" HealthState="Error" />
    </OperationalStates>
    <Configuration>
    <ClusterObjectName>$Target/Property[Type='ClusLibrary!Microsoft.Windows.Cluster.Node']/NodeName$</ClusterObjectName>
    <PollInterval>60</PollInterval>
    <ClusterObjectClass>MSCLUSTER_Node</ClusterObjectClass>
    <OnlineExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </OnlineExpression>
    <OnlineExpressionOnDemand>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </OnlineExpressionOnDemand>
    <PartialExpression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </PartialExpression>
    <PartialExpressionOnDemand>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </PartialExpressionOnDemand>
    <NotOnlineExpression>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </And>
    </NotOnlineExpression>
    <NotOnlineExpressionOnDemand>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </And>
    </NotOnlineExpressionOnDemand>
    <WMIFields>Name, State</WMIFields>
    </Configuration>
    </UnitMonitor>
    I can confirm that I am able to browse the MSCluster_Node class locally, as well as remotely using WMIEXPLORER and WBEMTEST,
    however it only works when I set the Authentication Level to
    Packet Privacy.  If I do not select Packet Privacy, a WMI event log error 5605 is logged on the remote servers application log that says...
    The root\mscluster namespace is marked with the RequiresEncryption flag.  Access to this namespace might be denied if the script or application does not have the appropriate authentication level.  Change the authentication level to Pkt_Privacy
    and run the script or application again.
    I can confirm that all firewalls are turned off, and there are no firewalls between the management servers and the agents in question.  AV exclusions have been done and appear to be in place.  The nodes are all Windows 2008 R2 with SP1.  As
    far as I can tell there is plenty of memory available on each of the nodes in question (50%+) of RAM is available. 
    If I manually run the "Discover the Windows Server 2008 R2 Cluster Components" task in the Cluster Service State section of the management pack in the Monitoring Pane in the console, on the nodes in question - the discovery runs successfully.
    Does anybody have any other ideas or suggestions I could try?
    Many thanks in advance,
    Noel.
    http://www.dreamension.net

    Hi,
    Common causes of RPC errors include:
    Errors resolving a DNS or NetBIOS name.
    The RPC service or related services may not be running.
    Problems with network connectivity.
    File and printer sharing is not enabled.
    For more information, please review the link below:
    Windows Server Troubleshooting: "The RPC server is unavailable"
    http://social.technet.microsoft.com/wiki/contents/articles/4494.windows-server-troubleshooting-the-rpc-server-is-unavailable.aspx#Identify
    Troubleshooting RPC Errors
    http://technet.microsoft.com/en-us/magazine/2007.07.howitworks.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Alert message(Query) for a Production order?

    Hi Experts,
    I want to get an alert message for the production order doucument based on the due date of it. The user must get the alert a  one day before the duedate of the document. How to write the Query for it? Urgent ,waiting for earliest reply.
    Regards ,
    Magesh.

    Create a Formatted Seach with the following Query
    SELECT T0.DocNum AS 'Document Number', T0.CreateDate AS 'Creation Date', T0.DueDate AS 'Due Date'
    FROM  [dbo].[OWOR] T0  WHERE DATEDIFF(Day,GetDate(),T0.DueDate) = 1
    Then, Create an Alert from Adminis..> Alerts Management and Give a Name, Click Open Saved Query, Select the query you saved, Tick the Int. check box against the user who gets the Alert.  Check Active. Select Frequency.
    Good luck
    Suda

  • Question/issue regarding querying for uncommited objects in Toplink...

    Hi, was hoping to get some insight into this problem we are encoutering…
    We have this scenario were we are creating a folder hierarchy (using Toplink)
    1. a parent folder is created
    2. child elements are created (in the same transaction as step 1),
    3. we need to lookup the parent folder and assign it as the parent
    of these child elements
    4. end the transaction and commit all data
    In our system we control access to objects by appending a filter to the selection criteria, so we end up with SQL like this example
    (The t2 stuff is the authorization lookup part of the query.) ;
    SELECT t0.ID, t0.CLASS_NAME, t0.DESCRIPTION, t0.EDITABLE,
    t0.DATE_MODIFIED, t0.DATE_CREATED,
    t0.MODIFIED_BY, t0.ACL_ID, t0.NAME, t0.CREATED_BY,
    t0.TYPE_ID, t0.WKSP_ID, t1.ID, t1.LINK_SRC_PATH,
    t1.ABSOLUTE_PATH, t1.MIME_TYPE, t1.FSIZE,
    t1.CONTENT_PATH, t1.PARENT_ID
    FROM XDOOBJECT t0, ALL_OBJECT_PRIVILEGES t2,
    ARCHIVEOBJECT t1
    WHERE ((((t1.ABSOLUTE_PATH = '/favorites/twatson2')
    AND ((t1.ID = t2.xdoobject_id)
    AND ((t2.user_id = 'twatson2')
    AND (bitand(t2.privilege, 2) = 2))))
    AND (t1.ID = t0.ID))
    AND (t0.CLASS_NAME = 'oracle.xdo.server.repository.model.Archivable'))
    When creating new objects we also create the authorization lookup record (which is inserted into a different table.) I can see all the objects are registered in the UOW identity map.
    Basically, the issue is that this scenario all occurs in a single transaction and when querying for the newly created parent folder, if the authorization filter is appended to the query, the parent is not found. If I remove the authorization filter then the parent is found correctly. Or if I break this up into separate transactions and commit after each insert, then the parent is found correctly.
    I use the conformResultsInUnitOfWork attribute on the queries.
    This is related to an earlier thread I have in this discussion forum;
    Nested UnitOfWork and reading newly created objects...
    Thanks for any help you can provide,
    -Tim

    Hi Doug, we add the authorization filter directly in the application code as the query is getting set up.
    Here are some code examples; 1) the first is the code to create new object in the system, followed by 2) the code to create a new authorization lookup record (which also uses the first code to do the actual Toplink insert), then 3) an example of a read query where the authorization filter is appended to the Expression and after that 4) several helper methods.
    I hope this is of some use as it's difficult to show the complete flow in a simple example.
    1)
    // create new object example
    public Object DataAccess.createObject(....
    Object result = null;
    boolean inTx = true;
    UnitOfWork uow = null;
    try
    SessionContext sc = mScm.getCurrentSessionContext();
    uow = TLTransactionManager.getActiveTransaction(sc.getUserId());
    if (uow == null)
    Session session = TLSessionFactory.getSession();
    uow = session.acquireUnitOfWork();
    inTx = false;
    Object oclone = (Object) uow.registerObject(object);
    uow.assignSequenceNumbers();
    if (oclone instanceof BaseObject)
    BaseObject boclone = (BaseObject)oclone;
    Date now = new Date();
    boclone.setCreated(now);
    boclone.setModified(now);
    boclone.setModifiedBy(sc.getUserId());
    boclone.setCreatedBy(sc.getUserId());
    uow.printRegisteredObjects();
    uow.validateObjectSpace();
    if (inTx == false) uow.commit();
    //just temp, see above
    if (true == authorizer.requiresCheck(oclone))
    authorizer.grantPrivilege(oclone);
    result = oclone;
    2)
    // Authorizer.grantPrivilege method
    public void grantPrivilege(Object object) throws DataAccessException
    if (requiresCheck(object) == false)
    throw new DataAccessException(
    "Object does not implement Securable interface.");
    Securable so = (Securable)object;
    ModulePrivilege[] privs = so.getDefinedPrivileges();
    BigInteger pmask = new BigInteger("0");
    for (int i = 0; i < privs.length; i++)
    BigInteger pv = PrivilegeManagerFactory.getPrivilegeValue(privs);
    pmask = pmask.add(pv);
    SessionContext sc = mScm.getCurrentSessionContext();
    // the authorization lookup record
    ObjectUserPrivilege oup = new ObjectUserPrivilege();
    oup.setAclId(so.getAclId());
    oup.setPrivileges(pmask);
    oup.setUserId(sc.getUserId());
    oup.setXdoObjectId(so.getId());
    try
    // this recurses back to the code snippet from above
    mDataAccess.createObject(oup, this);
    catch (DataAccessException dae) {
    Object[] args = {dae.getClass().toString(), dae.getMessage()};
    logger.severe(MessageFormat.format(EXCEPTION_MESSAGE, args));
    throw new DataAccessException("Failed to grant object privilege.", dae);
    3)
    // example Query code
    Object object = null;
    ExpressionBuilder eb = new ExpressionBuilder();
    Expression exp = eb.get(queryKeys[0]).equal(keyValues[0]);
    for (int i = 1; i < queryKeys.length; i++)
    exp = exp.and(eb.get(queryKeys[i]).equal(keyValues[i]));
    // check if need to add authorization filter
    if (authorizer.requiresCheck(domainClass) == true)
    // this is where the authorization filter is appended to query
    exp = exp.and(appendReadFilter());
    ReadObjectQuery query = new ReadObjectQuery(domainClass, exp);
    SessionContext sc = mScm.getCurrentSessionContext();
    if (TLTransactionManager.isInTransaction(sc.getUserId()))
    // part of a larger transaction scenario
    query.conformResultsInUnitOfWork();
    else
    // not part of a transaction
    query.refreshIdentityMapResult();
    query.cascadePrivateParts();
    Session session = getSession();
    object = session.executeQuery(query);
    4)
    // builds the authorzation filter
    private Expression appendReadFilter()
    ExpressionBuilder eb = new ExpressionBuilder();
    Expression exp1 = eb.getTable("ALL_OBJECT_PRIVILEGES").getField("xdoobject_id");
    Expression exp2 = eb.getTable("ALL_OBJECT_PRIVILEGES").getField("user_id");
    Expression exp3 = eb.getTable("ALL_OBJECT_PRIVILEGES").getField("privilege");
    Vector args = new Vector();
    args.add(READ_PRIVILEGE_VALUE);
    Expression exp4 =
    exp3.getFunctionWithArguments("bitand",args).equal(READ_PRIVILEGE_VALUE);
    SessionContext sc = mScm.getCurrentSessionContext();
    return eb.get("ID").equal(exp1).and(exp2.equal(sc.getUserId()).and(exp4));
    // helper to get Toplink Session
    private Session getSession() throws DataAccessException
    SessionContext sc = mScm.getCurrentSessionContext();
    Session session = TLTransactionManager.getActiveTransaction(sc.getUserId());
    if (session == null)
    session = TLSessionFactory.getSession();
    return session;
    // method of TLTransactionManager, provides easy access to TLSession
    // which handles Toplink Sessions and is a singleton
    public static UnitOfWork getActiveTransaction(String userId)
    throws DataAccessException
    TLSession tls = TLSession.getInstance();
    return tls.getTransaction(userId);
    // the TLSession method, returns the active transaction (UOW)
    // or null if none
    public UnitOfWork getTransaction(String uid) {
    UnitOfWork uow = null;
    UowWrapper uw = (UowWrapper)mTransactions.get(uid);
    if (uw != null) {
    uow = uw.getUow();
    return uow;
    Thanks!
    -Tim

  • Querying items in folder doesn't work in SharePoint 2013 (Cloud)

    Hi,
    I have 2 folders in a SharePoint List. Every folder contains 2555 items. There is only one column "Title" . I have indexed the "Title" column. The title field contains same values as "Hello" for each and every record. 
    I am querying the first folder and it throws following exception that 
    "An unhandled exception of type 'Microsoft.SharePoint.Client.ServerException' occurred in Microsoft.SharePoint.Client.Runtime.dll
    Additional information: The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator."
    But If I add a new item with "Title"="World" in both the folders, and query the first folder, putting the condition that get count where "Title" = "World", it works fine and the count returned is "1".
    Can anybody please tell me, why I get the exception and what is the fix for that.

    Hey Ravi,
    Threshold can not be modified in
    Office 365/SharePoint Online. Have below link for more details and workarounds.
    http://support.microsoft.com/kb/2759051
    SharePoint Online 2010 List View Threshold
    http://community.office365.com/en-us/f/148/t/79787.aspx
    Thanks.

  • How to query for specific filename

    I'm using a modified folder_action script to ftp files up to a server once they're finished being created.
    Is there a way to query for a specific filename to be present in the folder prior to passing it to the actual ftp function? The catch is that the filename will always be in the format of <mmddyy>.mp4. During the process that is creating the actual file to be ftp'd, various temp files are created prior. I'd like to ensure that only the final version of the mp4 is acted upon, which is the one with the mmddyy as the filename.

    The folder action already has the folder and the item paths passed to it, so you can get the individual file name by using something like:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving added_items
    repeat with AnItem in added_items
    if text (count (this_folder as text)) thru -1 of (AnItem as text) is "<mmddyy>.mp4" then
    -- whatever
    end if
    end repeat
    end adding folder items to
    </pre>
    There are also temporary folders that the system provides, so you shouldn't have to use the folder with the attached action at all:
    get path to temporary items
    get path to temporary items from user domain

  • Loads for admin, not for anyone else

    We have recently purchased Adobe Design Premium (CS4) and I
    have taken the route of installing each component individually. We
    are a school and have machines networked, so students can access
    the software.
    When dreamweaver is installed, it will load and work fine for
    administrator users (have full access), but returns an "AMT
    Subsystem Failure" when loaded up by staff or students (whose
    access to the computer is limited).#
    Is there a specific file or folder on the local machine that
    needs security changing for this to work? I see the error we get is
    often related to licensing issues, but given it works fine for
    admin users with no mention of this, I doubt that being the
    problem.
    Cheers,
    Dave

    dsmith444 wrote:
    > When dreamweaver is installed, it will load and work
    fine for administrator
    > users (have full access), but returns an "AMT Subsystem
    Failure" when loaded up
    > by staff or students (whose access to the computer is
    limited).#
    This is a question for Adobe technical support. This is only
    a
    user-to-user forum. You might get an answer from another user
    who is in
    a similar situation, but Adobe should be able to help more
    effectively
    with installation issues.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Query For Retention Policy On All Folders

    I am looking for a way to query for the retention policy assigned to all user folders (per folder/per user). My client allows the user to set the folder retention policy per folder and would like to know how each user has that configured. This is for
    a 700 user environment. I know any CSV generated as output could have thousands of rows.
    thanks.
     

    You will have to use EWS for that. Here's an example (for 2013):
    $getRTResp=$exchangeService.GetUserRetentionPolicyTags()
    function GetTagName($tagGUID) {
    if (!$tagGUID) { return ($getRTResp.RetentionPolicyTags | ? {$_.Type -eq "All"}).DisplayName }
    foreach ($tag in $getRTResp.RetentionPolicyTags) {
    if ($tag.RetentionId -eq $tagGUID) { return $tag.DisplayName }
    $FpageSize =100
    $FOffset = 0
    $folderView = new-object Microsoft.Exchange.WebServices.Data.FolderView($FpageSize,$FOffset,[Microsoft.Exchange.WebServices.Data.OffsetBasePoint]::Beginning)
    $folderView.Traversal = [Microsoft.Exchange.WebServices.Data.FolderTraversal]::Deep
    $folderView.PropertySet = new-object Microsoft.Exchange.WebServices.Data.PropertySet(
    [Microsoft.Exchange.WebServices.Data.BasePropertySet]::IdOnly,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::DisplayName,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::ArchiveTag,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::PolicyTag,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::FolderClass);
    $oFindFolders = $exchangeService.FindFolders([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::MsgFolderRoot,$null,$folderView)
    foreach ($folder in $oFindFolders.Folders) {
    Write-host $folder.DisplayName "has Policy:" $(GetTagName $folder.ArchiveTag.RetentionId)
    Obviously, it needs some work, a loop for all 700 users, proper error handling, etc. But hopefully it illustrates the idea. For older versions, its a bit more work to get the Name of the tag, but you can also use Get-RetentionPolicyTag for that.
    Code adapted from:
    http://blogs.msdn.com/b/akashb/archive/2012/01/12/stamping-retention-policy-tag-on-items-using-ews-managed-api-1-1-from-powershell-exchange-2010-part-2.aspx
    http://blogs.msdn.com/b/mvpawardprogram/archive/2013/04/08/5-lesser-known-operations-in-exchange-web-services-on-exchange-2013.aspx

  • Power Query for Excel login/connection issue.

    Hi all
    I have recently installed Power Query for Microsoft Excel in MS Office 2013.
    I can connect successfully to the all the BI Universes, create queries & design reports in Excel.
    The problem that I have is that I can only do this with the Administrator account. The Admin account is the only account that can connect successfully to the BI universes.
    I have created test user accounts,test groups and assigned security to basically reflect the same rights as the Admin group, but to no avail.
    I have also assigned security to these users & groups on the application level (RESTful Web Service, Universes, Connections) , but no luck.
    It constantly says : "Access to the Resource is forbidden"
    The last thing I want to do is make the users part of the Administrator group. I'm sure you guys would agree that that would be like opening Pandora's Box

    Hi Liang,
    Power Query is part of Excel 2016 and can be found under the Data tab.
    Regards,
    M.

  • Compressord asks for admin password

    We have a Workgroup manager environment with all Applications in the Applications
    folder being allowed, including Compressor. Sometimes the Application will hang
    in a loop and compressord keeps asking for admin password. An excerpt if the
    system log is below...Any ideas what might be causing this?
    Nov 30 13:29:28 shs-video-017 com.apple.qmaster.qmasterd[48]: 2010-11-30 13:29:28.832 qmasterd[7684:203] * NSTask: Task create for path '/Library/Frameworks/Compressor.framework/Resources/CompressorTranscoder.bundle /Contents/MacOS/compressord' failed: 22, "Invalid argument". Terminating temporary process.
    Nov 30 13:29:28 shs-video-017 com.apple.launchd.peruser.502[130] (com.apple.pbs): Throttling respawn: Will start in 10 seconds
    Nov 30 13:29:28 shs-video-017 SecurityAgent[7685]: com.apple.familycontrols.override|2010-11-30 13:29:28 -0500
    Nov 30 13:29:29 shs-video-017 com.apple.ReportCrash.Root[7635]: 2010-11-30 13:29:29.213 ReportCrash[7635:7933] Saved crash report for qmasterd[7684] version ??? (???) to /Library/Logs/DiagnosticReports/qmasterd2010-11-30-132929localhost.crash
    Nov 30 13:29:30 shs-video-017 qmasterd[7687]: * NSTask: Task create for path '/Library/Frameworks/Compressor.framework/Resources/CompressorTranscoder.bundle /Contents/MacOS/

    Phil Leahy wrote:
    Nov 30 13:29:28 shs-video-017 SecurityAgent[7685]: com.apple.familycontrols.override|2010-11-30 13:29:28 -0500
    Do you have Parental Controls or any other restrictions set up?

Maybe you are looking for

  • How do I reinstall Acrobat 8 Standard on  Windows 7? [was: Reinstall]

    Just got a new computer with Windows 7.  How do I reinstall my Adobe Acrobat 8 Standard?

  • Back up discounts from Vendors in consignment purchase

    A retailer purchases stock on consignment from a vendor before the start of the season During the season , for slow moving stock the retailer enters into a markdown arrangement with the vendor where for specific SKU the retailer marks down the price

  • Airort Extreme shuts down during print job

    I have a Canon IP6600D connected to my Airport Extreme for wireless printing from my wifes and my MBP 2006 and 2007 respectively. From my wives laptop in 9 out of 10 times the print job is shutting down the airport extreme. And I dont mean just disco

  • Problems Syncing Contacts Across iOS 8

    Hey guys (I'll keep this as brief as possible), In case you need to know my device models/OS to help me, here they are: iPhone 6 (iOS 8.0.2) iPad 3rd Gen (iOS 8.0.2) Macbook Pro w/ Ret (OS X Mav 10.9.5) I've been trying to sync "Contacts" across all

  • Adobe Digital Editions 4.0.3 Released

    Especially since it now supports Fixed Layout EPUB3, it's important to get updates to Adobe Digital Editions for testing. A new version has been updated here: Download | Adobe Digital Editions Release notes here: Release Notes | Adobe Digital Edition