com.spire.doc.collections
Class PermissionCollection

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.collections.CollectionEx
          extended by com.spire.doc.collections.PermissionCollection
All Implemented Interfaces:
java.lang.Iterable

public class PermissionCollection
extends CollectionEx

A collection of objects that represent the permission in the document.


Method Summary
 void clear()
          Removes all permissions from the document.
 Permission findById(java.lang.String id)
          Finds object by specified id
 Permission get(int index)
          Gets the at the specified index.
 Permission get(java.lang.String id)
          Gets the with the specified id.
 void remove(Permission permission)
          Removes the specified permission.
 void removeAt(int index)
          Removes a permission at the specified index.
 
Methods inherited from class com.spire.doc.collections.CollectionEx
getCount, iterator
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Method Detail

get

public Permission get(java.lang.String id)
Gets the with the specified id.

Parameters:
id -
Returns:

get

public Permission get(int index)
Gets the at the specified index.

Parameters:
index -
Returns:

findById

public Permission findById(java.lang.String id)
Finds object by specified id

Parameters:
name - The Permission id
Returns:

removeAt

public void removeAt(int index)
Removes a permission at the specified index.

Parameters:
index - The index.

remove

public void remove(Permission permission)
Removes the specified permission.

Parameters:
permission - The permission.

clear

public void clear()
Removes all permissions from the document.

Overrides:
clear in class CollectionEx