Package net.solarnetwork.central.dao
Interface SolarNodeOwnershipDao
- All Known Implementing Classes:
JdbcSolarNodeOwnershipDao
public interface SolarNodeOwnershipDao
DAO for helping with node ownership information.
-
Method Summary
Modifier and TypeMethodDescriptionLong[]nonArchivedNodeIdsForToken(String tokenId) Get the available non-archived node IDs associated with a security token ID.ownershipForNodeId(Long nodeId) Get the ownership information of a node.ownershipsForUserId(Long userId) Get all available node ownership for a user ID.
-
Method Details
-
ownershipForNodeId
Get the ownership information of a node.- Parameters:
nodeId- the ID of the node to find the ownership of- Returns:
- the ownership, or null if not available
-
ownershipsForUserId
Get all available node ownership for a user ID.- Parameters:
userId- the ID of the owner to find node ownership for- Returns:
- the ownerships, or null if none available
-
nonArchivedNodeIdsForToken
Get the available non-archived node IDs associated with a security token ID.- Parameters:
tokenId- the security token ID- Returns:
- the node IDs; never null
-