Class AclBinding
- java.lang.Object
-
- com.linkedin.venice.authorization.AclBinding
-
public class AclBinding extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AclBinding(Resource resource)
Creates an Access Control Binding for a given resource with empty AceEntries.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAceEntries(java.util.Collection<AceEntry> aceEntries)
Add a list ofAceEntry
to the existing list of Aces.void
addAceEntry(AceEntry aceEntry)
Add oneAceEntry
to the existing list of Aces.int
countAceEntries()
count the number of AceEntries in the AclBindingboolean
equals(java.lang.Object o)
java.util.Collection<AceEntry>
getAceEntries()
Returns an unmodifiable list of existing ace entries.Resource
getResource()
int
hashCode()
void
removeAceEntry(AceEntry aceEntry)
Remove oneAceEntry
from the existing list of Aces.java.lang.String
toString()
-
-
-
Constructor Detail
-
AclBinding
public AclBinding(Resource resource)
Creates an Access Control Binding for a given resource with empty AceEntries.- Parameters:
resource
- the resource for which this AclBinding is created.
-
-
Method Detail
-
getResource
public Resource getResource()
-
getAceEntries
public java.util.Collection<AceEntry> getAceEntries()
Returns an unmodifiable list of existing ace entries.- Returns:
-
addAceEntries
public void addAceEntries(java.util.Collection<AceEntry> aceEntries)
Add a list ofAceEntry
to the existing list of Aces.- Parameters:
aceEntries
- a list of entries to be added.
-
addAceEntry
public void addAceEntry(AceEntry aceEntry)
Add oneAceEntry
to the existing list of Aces.- Parameters:
aceEntry
- The entry to be added.
-
removeAceEntry
public void removeAceEntry(AceEntry aceEntry)
Remove oneAceEntry
from the existing list of Aces. If there are multiple matching entries only one will be removed.- Parameters:
aceEntry
- The entry to be removed.
-
countAceEntries
public int countAceEntries()
count the number of AceEntries in the AclBinding- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-