Class TestAccessEvaluator
- java.lang.Object
-
- net.sourceforge.pmd.lang.apex.ast.TestAccessEvaluator
-
- All Implemented Interfaces:
apex.jorje.semantic.compiler.sfdc.AccessEvaluator
@Deprecated @InternalApi public class TestAccessEvaluator extends Object implements apex.jorje.semantic.compiler.sfdc.AccessEvaluator
Deprecated.For now everything returns false. If you actually need to override something, it would be easier to probably mock and adjust what you needed. Otherwise this is simply to create a concrete representation and not force a mockito init.- Author:
- jspagnola
-
-
Constructor Summary
Constructors Constructor Description TestAccessEvaluator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TestAccessEvaluator
addManagedPackageNotInstalled(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.Things isManagedPackageInstalled will say 'false' to.TestAccessEvaluator
addPermission(apex.jorje.semantic.compiler.sfdc.PlaceholderOrgPerm orgPerm)
Deprecated.TestAccessEvaluator
addReservedNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.TestAccessEvaluator
addSetupEntityVisibleToType(apex.jorje.semantic.symbol.type.SObjectTypeInfo type, String typeName)
Deprecated.TestAccessEvaluator
addValidPackageVersion(apex.jorje.semantic.compiler.Namespace namespace, apex.jorje.semantic.compiler.StructuredVersion version)
Deprecated.TestAccessEvaluator
allowPermGuard(apex.jorje.semantic.compiler.Namespace namespace, String permGuard)
Deprecated.boolean
doesLightningWebComponentExist(String var1)
Deprecated.boolean
hasApexParameterizedTypes()
Deprecated.boolean
hasConnectDeserializer(apex.jorje.semantic.symbol.type.TypeInfo type)
Deprecated.boolean
hasInternalSfdc()
Deprecated.boolean
hasLocalizedTranslation()
Deprecated.boolean
hasNamespaceGuardedAccess(apex.jorje.semantic.compiler.Namespace namespace, String arg1)
Deprecated.boolean
hasPermission(apex.jorje.semantic.compiler.sfdc.PlaceholderOrgPerm orgPerm)
Deprecated.boolean
hasPermissionForPermGuard(apex.jorje.semantic.compiler.Namespace referencingNamespace, String orgPerm)
Deprecated.boolean
hasPersonAccountApiAvailable()
Deprecated.boolean
hasPrivateApi()
Deprecated.boolean
hasRemoteAction(apex.jorje.semantic.symbol.type.TypeInfo type)
Deprecated.boolean
hasRemoteActionPerm()
Deprecated.boolean
isAccessibleOrTrustedNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.Okay so this check and its partner isAccessibleSystemNamespace are used slightly differently.boolean
isAccessibleSystemNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.boolean
isGlobalComponent(apex.jorje.semantic.symbol.type.TypeInfo type)
Deprecated.boolean
isManagedPackageInstalled(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.boolean
isNamespaceGuardNamespace(apex.jorje.semantic.compiler.Namespace arg0)
Deprecated.boolean
isReallyRunningTests()
Deprecated.boolean
isReservedNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.boolean
isReservedNamespace(apex.jorje.semantic.compiler.Namespace namespace, boolean excludePackages)
Deprecated.boolean
isRunningTests()
Deprecated.boolean
isSecondGenerationPackagingNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.boolean
isSetupEntityVisibleToType(apex.jorje.semantic.symbol.type.SObjectTypeInfo type, apex.jorje.semantic.symbol.type.TypeInfo referencingType)
Deprecated.boolean
isSfdc()
Deprecated.boolean
isTrustedApplication(apex.jorje.semantic.symbol.type.TypeInfo arg0)
Deprecated.boolean
isValidPackageVersion(apex.jorje.semantic.compiler.Namespace namespace, apex.jorje.semantic.compiler.StructuredVersion version)
Deprecated.TestAccessEvaluator
setAccessibleSystemNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.void
setGlobalComponent(String globalComponent)
Deprecated.TestAccessEvaluator
setHasApexGenericType(boolean hasApexGenericTypes)
Deprecated.TestAccessEvaluator
setHasInternalSfdc(boolean hasInternalSfdc)
Deprecated.TestAccessEvaluator
setHasLocalizedTranslation(boolean hasLocalizedTranslation)
Deprecated.TestAccessEvaluator
setHasPrivateApi(boolean hasPrivateApi)
Deprecated.TestAccessEvaluator
setHasRemoteActionPerm(boolean hasRemoteActionPerm)
Deprecated.It appears that remote action is enabled by default in most orgs, at least test orgs.TestAccessEvaluator
setIsReallyRunningTests(boolean isReallyRunningTests)
Deprecated.TestAccessEvaluator
setIsRunningTests(boolean isRunningTests)
Deprecated.TestAccessEvaluator
setIsSfdc(boolean isSfdc)
Deprecated.TestAccessEvaluator
setIsTrustedApplication(boolean isTrustedApplication)
Deprecated.TestAccessEvaluator
setTypeWithConnectApiDeserializer(String typeName)
Deprecated.boolean
useTestValueForAnonymousScriptLengthLimit()
Deprecated.
-
-
-
Method Detail
-
hasPermission
public boolean hasPermission(apex.jorje.semantic.compiler.sfdc.PlaceholderOrgPerm orgPerm)
Deprecated.- Specified by:
hasPermission
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasPermissionForPermGuard
public boolean hasPermissionForPermGuard(apex.jorje.semantic.compiler.Namespace referencingNamespace, String orgPerm)
Deprecated.- Specified by:
hasPermissionForPermGuard
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasPersonAccountApiAvailable
public boolean hasPersonAccountApiAvailable()
Deprecated.- Specified by:
hasPersonAccountApiAvailable
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasPrivateApi
public boolean hasPrivateApi()
Deprecated.- Specified by:
hasPrivateApi
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasLocalizedTranslation
public boolean hasLocalizedTranslation()
Deprecated.- Specified by:
hasLocalizedTranslation
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasInternalSfdc
public boolean hasInternalSfdc()
Deprecated.- Specified by:
hasInternalSfdc
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isTrustedApplication
public boolean isTrustedApplication(apex.jorje.semantic.symbol.type.TypeInfo arg0)
Deprecated.- Specified by:
isTrustedApplication
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isReservedNamespace
public boolean isReservedNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.- Specified by:
isReservedNamespace
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isReservedNamespace
public boolean isReservedNamespace(apex.jorje.semantic.compiler.Namespace namespace, boolean excludePackages)
Deprecated.- Specified by:
isReservedNamespace
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isAccessibleSystemNamespace
public boolean isAccessibleSystemNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.- Specified by:
isAccessibleSystemNamespace
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isAccessibleOrTrustedNamespace
public boolean isAccessibleOrTrustedNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.Okay so this check and its partner isAccessibleSystemNamespace are used slightly differently. This is like a black list check, that prevents referencing code from seeing things in a reserved namespace. The other check allows code to see certain things if the code's namespace is a reserved namespace.Hence here we return true by default, and the
isAccessibleSystemNamespace(Namespace)
returns false by default.- Specified by:
isAccessibleOrTrustedNamespace
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isRunningTests
public boolean isRunningTests()
Deprecated.- Specified by:
isRunningTests
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isReallyRunningTests
public boolean isReallyRunningTests()
Deprecated.- Specified by:
isReallyRunningTests
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isSfdc
public boolean isSfdc()
Deprecated.- Specified by:
isSfdc
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasApexParameterizedTypes
public boolean hasApexParameterizedTypes()
Deprecated.- Specified by:
hasApexParameterizedTypes
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isValidPackageVersion
public boolean isValidPackageVersion(apex.jorje.semantic.compiler.Namespace namespace, apex.jorje.semantic.compiler.StructuredVersion version)
Deprecated.- Specified by:
isValidPackageVersion
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isManagedPackageInstalled
public boolean isManagedPackageInstalled(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.- Specified by:
isManagedPackageInstalled
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
- Returns:
- 'true' for everything EXCEPT namespaces you've added through
addManagedPackageNotInstalled(Namespace)
-
isSetupEntityVisibleToType
public boolean isSetupEntityVisibleToType(apex.jorje.semantic.symbol.type.SObjectTypeInfo type, apex.jorje.semantic.symbol.type.TypeInfo referencingType)
Deprecated.- Specified by:
isSetupEntityVisibleToType
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasConnectDeserializer
public boolean hasConnectDeserializer(apex.jorje.semantic.symbol.type.TypeInfo type)
Deprecated.- Specified by:
hasConnectDeserializer
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasRemoteAction
public boolean hasRemoteAction(apex.jorje.semantic.symbol.type.TypeInfo type)
Deprecated.- Specified by:
hasRemoteAction
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasRemoteActionPerm
public boolean hasRemoteActionPerm()
Deprecated.- Specified by:
hasRemoteActionPerm
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isGlobalComponent
public boolean isGlobalComponent(apex.jorje.semantic.symbol.type.TypeInfo type)
Deprecated.- Specified by:
isGlobalComponent
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
addManagedPackageNotInstalled
public TestAccessEvaluator addManagedPackageNotInstalled(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.Things isManagedPackageInstalled will say 'false' to.
-
addReservedNamespace
public TestAccessEvaluator addReservedNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.
-
addPermission
public TestAccessEvaluator addPermission(apex.jorje.semantic.compiler.sfdc.PlaceholderOrgPerm orgPerm)
Deprecated.
-
setHasInternalSfdc
public TestAccessEvaluator setHasInternalSfdc(boolean hasInternalSfdc)
Deprecated.
-
addValidPackageVersion
public TestAccessEvaluator addValidPackageVersion(apex.jorje.semantic.compiler.Namespace namespace, apex.jorje.semantic.compiler.StructuredVersion version)
Deprecated.
-
addSetupEntityVisibleToType
public TestAccessEvaluator addSetupEntityVisibleToType(apex.jorje.semantic.symbol.type.SObjectTypeInfo type, String typeName)
Deprecated.
-
setIsRunningTests
public TestAccessEvaluator setIsRunningTests(boolean isRunningTests)
Deprecated.
-
setHasPrivateApi
public TestAccessEvaluator setHasPrivateApi(boolean hasPrivateApi)
Deprecated.
-
setIsTrustedApplication
public TestAccessEvaluator setIsTrustedApplication(boolean isTrustedApplication)
Deprecated.
-
setHasLocalizedTranslation
public TestAccessEvaluator setHasLocalizedTranslation(boolean hasLocalizedTranslation)
Deprecated.
-
setIsSfdc
public TestAccessEvaluator setIsSfdc(boolean isSfdc)
Deprecated.
-
setIsReallyRunningTests
public TestAccessEvaluator setIsReallyRunningTests(boolean isReallyRunningTests)
Deprecated.
-
setAccessibleSystemNamespace
public TestAccessEvaluator setAccessibleSystemNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.
-
setHasApexGenericType
public TestAccessEvaluator setHasApexGenericType(boolean hasApexGenericTypes)
Deprecated.
-
allowPermGuard
public TestAccessEvaluator allowPermGuard(apex.jorje.semantic.compiler.Namespace namespace, String permGuard)
Deprecated.
-
setHasRemoteActionPerm
public TestAccessEvaluator setHasRemoteActionPerm(boolean hasRemoteActionPerm)
Deprecated.It appears that remote action is enabled by default in most orgs, at least test orgs. So we will behave the same.
-
setTypeWithConnectApiDeserializer
public TestAccessEvaluator setTypeWithConnectApiDeserializer(String typeName)
Deprecated.
-
setGlobalComponent
public void setGlobalComponent(String globalComponent)
Deprecated.
-
isSecondGenerationPackagingNamespace
public boolean isSecondGenerationPackagingNamespace(apex.jorje.semantic.compiler.Namespace namespace)
Deprecated.- Specified by:
isSecondGenerationPackagingNamespace
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
useTestValueForAnonymousScriptLengthLimit
public boolean useTestValueForAnonymousScriptLengthLimit()
Deprecated.- Specified by:
useTestValueForAnonymousScriptLengthLimit
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
hasNamespaceGuardedAccess
public boolean hasNamespaceGuardedAccess(apex.jorje.semantic.compiler.Namespace namespace, String arg1)
Deprecated.- Specified by:
hasNamespaceGuardedAccess
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
isNamespaceGuardNamespace
public boolean isNamespaceGuardNamespace(apex.jorje.semantic.compiler.Namespace arg0)
Deprecated.- Specified by:
isNamespaceGuardNamespace
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
doesLightningWebComponentExist
public boolean doesLightningWebComponentExist(String var1)
Deprecated.- Specified by:
doesLightningWebComponentExist
in interfaceapex.jorje.semantic.compiler.sfdc.AccessEvaluator
-
-