Skip to content

Commit c83ed3a

Browse files
authored
Merge pull request #226 from cesarParra/ignoring-unknown-file-paths
Ignoring unknown file paths
2 parents 4cabba2 + 6aa2fd5 commit c83ed3a

25 files changed

+2293
-1645
lines changed

examples/imported/docs/index.md

Lines changed: 2 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,5 @@
1-
# Apex Reference Guide
1+
# Reference Guide
22

33
## Miscellaneous
44

5-
### [BaseClass](miscellaneous/BaseClass.md)
6-
7-
### [MultiInheritanceClass](miscellaneous/MultiInheritanceClass.md)
8-
9-
### [ParentInterface](miscellaneous/ParentInterface.md)
10-
11-
### [ReferencedEnum](miscellaneous/ReferencedEnum.md)
12-
13-
### [SampleException](miscellaneous/SampleException.md)
14-
15-
This is a sample exception.
16-
17-
### [SampleInterface](miscellaneous/SampleInterface.md)
18-
19-
This is a sample interface
20-
21-
### [Url](miscellaneous/Url.md)
22-
23-
Represents a uniform resource locator (URL) and provides access to parts of the URL.
24-
Enables access to the base URL used to access your Salesforce org.
25-
26-
## Usage
27-
Use the methods of the `System.URL` class to create links to objects in your organization. Such objects can be files, images,
28-
logos, or records that you want to include in external emails, in activities, or in Chatter posts. For example, you can create
29-
a link to a file uploaded as an attachment to a Chatter post by concatenating the Salesforce base URL with the file ID:
30-
31-
```apex
32-
// Get a file uploaded through Chatter.
33-
ContentDocument doc = [SELECT Id FROM ContentDocument
34-
WHERE Title = 'myfile'];
35-
// Create a link to the file.
36-
String fullFileURL = URL.getOrgDomainURL().toExternalForm() +
37-
'/' + doc.id;
38-
system.debug(fullFileURL);
39-
```
40-
41-
42-
The following example creates a link to a Salesforce record. The full URL is created by concatenating the Salesforce base
43-
URL with the record ID.
44-
45-
```ape
46-
Account acct = [SELECT Id FROM Account WHERE Name = 'Acme' LIMIT 1];
47-
String fullRecordURL = URL.getOrgDomainURL().toExternalForm() + '/' + acct.Id;
48-
```
49-
50-
51-
## Example
52-
In this example, the base URL and the full request URL of the current Salesforce server instance are retrieved. Next, a URL
53-
pointing to a specific account object is created. Finally, components of the base and full URL are obtained. This example
54-
prints out all the results to the debug log output.
55-
56-
```apex
57-
// Create a new account called Acme that we will create a link for later.
58-
Account myAccount = new Account(Name='Acme');
59-
insert myAccount;
60-
61-
// Get the base URL.
62-
String sfdcBaseURL = URL.getOrgDomainURL().toExternalForm();
63-
System.debug('Base URL: ' + sfdcBaseURL );
64-
65-
// Get the URL for the current request.
66-
String currentRequestURL = URL.getCurrentRequestUrl().toExternalForm();
67-
System.debug('Current request URL: ' + currentRequestURL);
68-
69-
// Create the account URL from the base URL.
70-
String accountURL = URL.getOrgDomainURL().toExternalForm() +
71-
'/' + myAccount.Id;
72-
System.debug('URL of a particular account: ' + accountURL);
73-
74-
// Get some parts of the base URL.
75-
System.debug('Host: ' + URL.getOrgDomainURL().getHost());
76-
System.debug('Protocol: ' + URL.getOrgDomainURL().getProtocol());
77-
78-
// Get the query string of the current request.
79-
System.debug('Query: ' + URL.getCurrentRequestUrl().getQuery());
80-
```
81-
82-
83-
## Version Behavior Changes
84-
In API version 41.0 and later, Apex URL objects are represented by the java.net.URI type, not the java.net.URL type.
85-
The API version in which the URL object was instantiated determines the behavior of subsequent method calls to the
86-
specific instance. Salesforce strongly encourages you to use API 41.0 and later versions for fully RFC-compliant URL
87-
parsing that includes proper handling of edge cases of complex URL structures. API 41.0 and later versions also enforce
88-
that inputs are valid, RFC-compliant URL or URI strings.
89-
90-
* [URL Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_constructors)
91-
* [URL Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_url.htm#apex_System_URL_methods)
92-
93-
**See Also**
94-
* [URL Class](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_url.htm)
95-
96-
## Sample Enums
97-
98-
### [SampleEnum](sample-enums/SampleEnum.md)
99-
100-
This is a sample enum. This references [ReferencedEnum](miscellaneous/ReferencedEnum.md) .
101-
102-
This description has several lines
103-
104-
## SampleGroup
105-
106-
### [SampleClass](samplegroup/SampleClass.md)
107-
108-
aliquip ex sunt officia ullamco anim deserunt magna aliquip nisi eiusmod in sit officia veniam ex
109-
deserunt ea officia exercitation laboris enim in duis quis enim eiusmod eu amet cupidatat.
5+
### [MultiInheritanceClass](miscellaneous/MultiInheritanceClass.md)

examples/imported/docs/miscellaneous/BaseClass.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/imported/docs/miscellaneous/MultiInheritanceClass.md

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,4 @@
22

33
**Inheritance**
44

5-
[SampleClass](../samplegroup/SampleClass.md) < [BaseClass](BaseClass.md)
6-
7-
## Fields
8-
### `sampleEnumFromBase`
9-
10-
*Inherited*
11-
12-
#### Signature
13-
```apex
14-
public sampleEnumFromBase
15-
```
16-
17-
#### Type
18-
[SampleEnum](../sample-enums/SampleEnum.md)
19-
20-
## Properties
21-
### Group Name
22-
#### `someProperty`
23-
24-
*Inherited*
25-
26-
##### Signature
27-
```apex
28-
public someProperty
29-
```
30-
31-
##### Type
32-
String
33-
34-
## Methods
35-
### Available Methods
36-
#### `doSomething()`
37-
38-
*Inherited*
39-
40-
##### Signature
41-
```apex
42-
public void doSomething()
43-
```
44-
45-
##### Return Type
46-
**void**
47-
48-
### Deprecated Methods
49-
#### `sayHello()`
50-
51-
*Inherited*
52-
53-
`DEPRECATED`
54-
55-
This is a sample method.
56-
57-
##### Signature
58-
```apex
59-
public virtual String sayHello()
60-
```
61-
62-
##### Return Type
63-
**String**
64-
65-
A string value.
66-
67-
##### Example
68-
SampleClass sample &#x3D; new SampleClass();
69-
sample.doSomething();
5+
SampleClass

examples/imported/docs/miscellaneous/ParentInterface.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

examples/imported/docs/miscellaneous/ReferencedEnum.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/imported/docs/miscellaneous/SampleException.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/imported/docs/miscellaneous/SampleInterface.md

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)