psdi.mbo

Class SiteOrgRestriction

  • java.lang.Object
    • psdi.mbo.SiteOrgRestriction


  • public class SiteOrgRestriction
    extends java.lang.Object
    Class to return site/org related where clause
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getCompanySetClause(UserInfo userInfo, java.lang.String companySet)
      returns the where clause for company set .
      static java.lang.String getCompanySetWhere(ProfileRemote profile, boolean forLookup, java.lang.String appName, UserInfo userInfo)
      Gets the companyset restriction clause
      static java.lang.String getItemSetClause(UserInfo userInfo, java.lang.String itemSet)
      returns the where clause for item set .
      static java.lang.String getItemSetWhere(ProfileRemote profile, boolean forLookup, java.lang.String appName, UserInfo userInfo)
      Gets the itemset restriction clause
      static java.lang.String getOrgFilter(java.lang.String entityName)
      Returns the org clause used in framework for app user
      static java.lang.String getOrgLookupFilter(MboRemote mbo)
      Returns the org lookup clause used in framework for app user
      static java.lang.String getOrgLookupFilter(MboRemote mbo, ALNDomain domain) 
      static java.lang.String getOrgRestrictionClause(UserInfo userInfo, java.lang.String org)
      returns the org where clause for user insert org.
      static java.lang.String getSetClause(UserInfo userInfo, java.lang.String itemSet, java.lang.String companySet, int setType)
      returns the where clause for item/company set .
      static java.lang.String getSiteFilter(java.lang.String entityName)
      Returns the site clause used in framework for app user
      static java.lang.String getSiteFilter(java.lang.String entityName, boolean useInSubselect) 
      static java.lang.String getSiteIDs(java.lang.String appName, UserInfo ui, int siteOrgType, java.lang.String entityName) 
      static java.lang.String getSiteLookupFilter(MboRemote mbo)
      Returns the site lookup clause used in framework for app user
      static java.lang.String getSiteLookupFilter(MboRemote mbo, ALNDomain domain) 
      static java.lang.String getSiteOrgWhere(int siteOrgType, ProfileRemote profile, boolean forLookup, java.lang.String appName, UserInfo userInfo, java.lang.String entityName)
      returns the site/org where clause for the siteorgtype
      static java.lang.String getSiteOrgWhere(MboSet mboSet, int siteOrgType, ProfileRemote profile, boolean forLookup, java.lang.String appName, UserInfo userInfo, java.lang.String entityName)
      returns the site/org where clause for the siteorgtype
      static java.lang.String getSiteRestrictionClause(UserInfo userInfo, java.lang.String site)
      returns the site where clause for user insert site.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SiteOrgRestriction

        public SiteOrgRestriction()
    • Method Detail

      • getSiteRestrictionClause

        public static java.lang.String getSiteRestrictionClause(UserInfo userInfo,
                                                                java.lang.String site)
                                                         throws MXException,
                                                                java.rmi.RemoteException
        returns the site where clause for user insert site. Used for autokey
        Parameters:
        userInfo -
        Returns:
        where clause
        Throws:
        MXException
        java.rmi.RemoteException
      • getOrgRestrictionClause

        public static java.lang.String getOrgRestrictionClause(UserInfo userInfo,
                                                               java.lang.String org)
                                                        throws MXException,
                                                               java.rmi.RemoteException
        returns the org where clause for user insert org. used for autokey
        Parameters:
        userInfo -
        Returns:
        where clause
        Throws:
        MXException
        java.rmi.RemoteException
      • getItemSetClause

        public static java.lang.String getItemSetClause(UserInfo userInfo,
                                                        java.lang.String itemSet)
                                                 throws MXException,
                                                        java.rmi.RemoteException
        returns the where clause for item set .
        Parameters:
        userInfo -
        Returns:
        where clause
        Throws:
        MXException
        java.rmi.RemoteException
      • getCompanySetClause

        public static java.lang.String getCompanySetClause(UserInfo userInfo,
                                                           java.lang.String companySet)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        returns the where clause for company set .
        Parameters:
        userInfo -
        Returns:
        where clause
        Throws:
        MXException
        java.rmi.RemoteException
      • getSetClause

        public static java.lang.String getSetClause(UserInfo userInfo,
                                                    java.lang.String itemSet,
                                                    java.lang.String companySet,
                                                    int setType)
                                             throws MXException,
                                                    java.rmi.RemoteException
        returns the where clause for item/company set .
        Parameters:
        userInfo -
        Itemset - or companyset
        Returns:
        where clause
        Throws:
        MXException
        java.rmi.RemoteException
      • getItemSetWhere

        public static java.lang.String getItemSetWhere(ProfileRemote profile,
                                                       boolean forLookup,
                                                       java.lang.String appName,
                                                       UserInfo userInfo)
                                                throws MXException
        Gets the itemset restriction clause
        Parameters:
        profile -
        forLookup -
        appName -
        userInfo -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getCompanySetWhere

        public static java.lang.String getCompanySetWhere(ProfileRemote profile,
                                                          boolean forLookup,
                                                          java.lang.String appName,
                                                          UserInfo userInfo)
                                                   throws MXException
        Gets the companyset restriction clause
        Parameters:
        profile -
        forLookup -
        appName -
        userInfo -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getSiteOrgWhere

        public static java.lang.String getSiteOrgWhere(int siteOrgType,
                                                       ProfileRemote profile,
                                                       boolean forLookup,
                                                       java.lang.String appName,
                                                       UserInfo userInfo,
                                                       java.lang.String entityName)
                                                throws MXException
        returns the site/org where clause for the siteorgtype
        Parameters:
        siteOrgType -
        profile -
        forLookup -
        appName -
        Returns:
        where clause
        Throws:
        MXException
      • getSiteOrgWhere

        public static java.lang.String getSiteOrgWhere(MboSet mboSet,
                                                       int siteOrgType,
                                                       ProfileRemote profile,
                                                       boolean forLookup,
                                                       java.lang.String appName,
                                                       UserInfo userInfo,
                                                       java.lang.String entityName)
                                                throws MXException
        returns the site/org where clause for the siteorgtype
        Parameters:
        siteOrgType -
        profile -
        forLookup -
        appName -
        Returns:
        where clause
        Throws:
        MXException
      • getSiteFilter

        public static java.lang.String getSiteFilter(java.lang.String entityName)
        Returns the site clause used in framework for app user
        Returns:
        site string
      • getSiteFilter

        public static java.lang.String getSiteFilter(java.lang.String entityName,
                                                     boolean useInSubselect)
      • getSiteIDs

        public static java.lang.String getSiteIDs(java.lang.String appName,
                                                  UserInfo ui,
                                                  int siteOrgType,
                                                  java.lang.String entityName)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getOrgFilter

        public static java.lang.String getOrgFilter(java.lang.String entityName)
        Returns the org clause used in framework for app user
        Returns:
        org string
      • getSiteLookupFilter

        public static java.lang.String getSiteLookupFilter(MboRemote mbo)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Returns the site lookup clause used in framework for app user
        Returns:
        site string
        Throws:
        MXException
        java.rmi.RemoteException
      • getOrgLookupFilter

        public static java.lang.String getOrgLookupFilter(MboRemote mbo)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Returns the org lookup clause used in framework for app user
        Returns:
        org string
        Throws:
        MXException
        java.rmi.RemoteException