Class DenormalisedSidDao
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.user.dao.DenormalisedSidDao
-
public class DenormalisedSidDao extends Object
DAO for working with user/group sids Sid (security id) represents either user or group or "any authenticated user" or "anonymous" All denormalized records have references to sids- Since:
- 7.11.0
-
-
Constructor Summary
Constructors Constructor Description DenormalisedSidDao(org.hibernate.SessionFactory sessionFactory, com.atlassian.config.db.HibernateConfig hibernateConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
addNewSid(String name, DenormalisedSidType type)
List<Long>
getExistingSidIdList(Set<String> names, DenormalisedSidType type)
Retrieves a list of existing sid ids.List<DenormalisedSid>
getExistingSids(Set<String> names, DenormalisedSidType type)
Retrieves a list of existing sids.
-
-
-
Method Detail
-
getExistingSids
public List<DenormalisedSid> getExistingSids(Set<String> names, DenormalisedSidType type)
Retrieves a list of existing sids.- Parameters:
names
- list of users or groupstype
- sid type (for example, user or group)- Returns:
- list of sids
-
getExistingSidIdList
public List<Long> getExistingSidIdList(Set<String> names, DenormalisedSidType type)
Retrieves a list of existing sid ids.- Parameters:
names
- list of users or groupstype
- sid type (for example, user or group)- Returns:
- list of sid ids
-
addNewSid
public long addNewSid(String name, DenormalisedSidType type)
-
-