> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: IPHXVersionedLibrarian2

**Package:** `com.phoenix_int.aserver.library`

**All Superinterfaces:**

* [`IPHXLibrarian`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/IPHXLibrarian)
* [`IPHXVersionedLibrarian`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/IPHXVersionedLibrarian)

**All Known Implementing Classes:**

* [`PHXCVSLibrarian`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/PHXCVSLibrarian)
* [`PHXLibrarianCombiner`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/PHXLibrarianCombiner)
* [`PHXLibrarianMounter`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/PHXLibrarianMounter)

***

**Declaration**

```java theme={null}
@Deprecated
public interface IPHXVersionedLibrarian2
extends IPHXVersionedLibrarian
```

**Deprecated**: It is preferred to use `IPHXVersionedLibrarian3` as this class supports methods that can cause file leaks.

This extends the [`IPHXLibrarian`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/IPHXLibrarian) interface to include version information about components.

## Method Summary

| Modifier and Type | Method and Description |
| - | - |
| `java.lang.String` | `getBranchesAndTags()` **Deprecated.** Fetches a list of all branches and tags. |

### Methods inherited from interface [`IPHXVersionedLibrarian`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/IPHXVersionedLibrarian)

`getComponentHistory`

### Methods inherited from interface [`IPHXLibrarian`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/library/IPHXLibrarian)

`cleanUp`, `describe`, `getQueues`, `initialize`, `instantiate`, `instantiate`, `listComponents`, `listDirectories`

## Method Detail

### getBranchesAndTags

```java theme={null}
java.lang.String getBranchesAndTags()
                             throws java.lang.Exception
```

**Deprecated.** Fetches a list of all branches and tags.

**Throws:**

* `java.lang.Exception` - If anything goes wrong
